Author Topic: kode.pas  (Read 4767 times)

0 Members and 1 Guest are viewing this topic.

Offline axon

  • ZX 81
  • *
  • Posts: 23
  • Karma: 4
  • "solve et coagula"
    • View Profile
    • blog...
kode.pas
« on: December 29, 2014 »
i've been quite busy with my various bands and musical projects, but now i'm getting back to my favourite activity - coding.. there's been lots of progress the last few days.. (couldn't get embedded images/videos to work, so, just links :-\)

modular system, work in progress:
https://www.dropbox.com/s/1eo7adxx9b0eatr/graph2.gif?dl=0

various other tests/prototypes/experiments, using the same code-base:

kode.pas, the (ever-growing) codebase/library/framework:
http://www.dropbox.com/s/gk1sdywl3wc749p/kode-pas.png?dl=0

'modern' opengl, glsl:
https://www.dropbox.com/s/8f3u7py0cx6kihf/glsl.png?dl=0

gui / plugin framework:
https://www.youtube.com/watch?v=3QAts66evfY

syn_thesis005, semi-modular phase/waveshape-modulation synth:
https://dl.dropboxusercontent.com/u/41070669/skei.audio/syn_thesis_005.png

s4k, an older project (4k intro tool) of mine, in c (msvc), that i will 'steal' many ideas and concepts from:
https://www.youtube.com/watch?v=5vMJU5YMknk

---

2015 is soon here, and i'm planning/thinking about/considering doing something to 'celebrate' that it's 20 years since my first demoscene related release (as 'axon' from 'xenon development' and early 'excess').. a demo or something.. or perhaps a 'modernized' remake/remix of an old intro/demo..

http://www.pouet.net/groups.php?which=4523
http://www.pouet.net/prod.php?which=3848

https://www.youtube.com/watch?v=5VBWgMhHUtk

maybe it could be interesting to try to gather a few people, and form a (new) demo-group or something?

Offline axon

  • ZX 81
  • *
  • Posts: 23
  • Karma: 4
  • "solve et coagula"
    • View Profile
    • blog...
Re: kode.pas
« Reply #1 on: January 04, 2015 »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: kode.pas
« Reply #2 on: January 06, 2015 »
Nice one axon :)

Offline axon

  • ZX 81
  • *
  • Posts: 23
  • Karma: 4
  • "solve et coagula"
    • View Profile
    • blog...
Re: kode.pas
« Reply #3 on: January 09, 2015 »
thanks!

related to this, i just did some experiments.. tried to make as small a exe file as i could, with freepascal.. yeah, i code in pascal! shocking, i know :-) .. a do-nothing exe, compressed with bero's exe packer: 1061 bytes.. a test-exe, with opengl, texture generation, a rotating textured quad, minimal synthesizer and audio playback, and some very simple runtime (executable) code generation: 2286 bytes..

now i'm converting most of the s4k stuff (my never-used 4k framework in c, https://www.youtube.com/watch?v=5vMJU5YMknk) to pascal.. a tree/graph based thing, which is almost like a language itself (nodes, conditionals, flow control, sub-routines, callbacks, stack for passing variables between nodes, etc), and a simplistic forth-like language/expression-evaluator.. things are looking good.. the goal is to get the "engine" below 2k.. and use the graph/node tool for making (and exporting) size-optimized data structures for this "engine"..

update: just shaved off almost 200 bytes, so that a do-nothing exe is now 864 bytes.. :-)
« Last Edit: January 09, 2015 by axon »

Offline Canopy

  • Atari ST
  • ***
  • Posts: 208
  • Karma: 20
    • View Profile
Re: kode.pas
« Reply #4 on: January 29, 2015 »

lots of nice bits in there :)  you have a lot on the go!

Offline axon

  • ZX 81
  • *
  • Posts: 23
  • Karma: 4
  • "solve et coagula"
    • View Profile
    • blog...
Re: kode.pas
« Reply #5 on: January 30, 2015 »
thanks ! :-)

yeah, been coding and developing my  own libraries for years now, slowly but steadily, and all the different pieces are starting to fall into place and fit well together.. everything is coded from scratch, and quite low-level, so i had to learn a lot of things during the process: gdi/xlib, vst/ladspa, cairo/opengl, etc.. and then make sensible and portable wrappers on top of all that, so i seldom (if ever) have to touch that low-level stuff again :-D

got rid of another 100 bytes or so from the 4k base/framework, by using crinkler.. 753 bytes.. and i haven't really gone very deep yet.. it's still pure pascal, no assembler.. yet..

update: do-nothing exe (just calls ExitProcess), pure pascal, compressed with crinkler.. 443 bytes..
« Last Edit: February 02, 2015 by axon »

Offline axon

  • ZX 81
  • *
  • Posts: 23
  • Karma: 4
  • "solve et coagula"
    • View Profile
    • blog...
Re: kode.pas
« Reply #6 on: February 09, 2015 »
i don't know how many are interested (if anybyody at all), but there's been a quite interesting thread at pouet.net about fpc and exe size optimization:

http://www.pouet.net/topic.php?which=10199&page=1

886 bytes for an exe with opengl/shader.. which is, according to some of the posts in that thread, smaller than using msvc or gcc for the same thing..

not bad..