Earlier quoted context omitted.
You could run C that way... but scScript is a scripting language using C-like syntax with features designed for scripting. For example, it provides dual variadic parameter/arg lists. Turns out having "in" (pass-by-val) and "out" (pass-by-ref) parameters are more pleasant (at least to me) than trying to return N values out of a function (especially since script languages run away from pointers). Perhaps it is a testam…
No other language that does what? Have out parameters? Many have that, even Pascal.
scScript for Linux
11–19 of 19 posts
Re: scScript for Linux
#12Re: scScript for Linux
#13People should really put a few examples on their webpage when they introduce a language, like a hello world, making a http request, writing a ping/pong server, etc.
Re: scScript for Linux
#14Re: scScript for Linux
#15Combining mark-sweep with refcounting is bold. Most small VMs just pick one.
Mark/Sweep GC is easy, well contained, and simple to test. RefCounting affects everything, obviously does not work for circular refs, and is an incredible pain to test/debug. While RefCounting gives you generally continuous smooth performance, it can stop the world if a particularly large/complex data structure is being collected. So all in all, I would skip RefCounting next time. (scScript does have a compile option to turn it off.)
Re: scScript for Linux
#16Re: scScript for Linux
#17Re: scScript for Linux
#18congrats, but Tcl is enough for me.
Re: scScript for Linux
#19congrats, but Tcl is enough for me.
Seeing a lot of mentions of Tcl over the past couple days. Why so much love? When do you reach for it?
proc a {} { puts "a"}
proc b {} { puts "b"}
set c a
$c ;# prints a
set c b
$c ;# prints c