Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Software pushups

Name: Anonymous 2014-11-24 23:01

Let's exercise together, /prog/!

1) Write a subroutine that accepts an array of unsigned ints and returns 4. It must operate on the array in-place and partition it so that all nonzero values are at the beginning of the array, and all zero values are moved to the end. For example, the input [0, 2, 0, 0, 4, 1, 4, 5] could be changed to [2, 4, 1, 4, 5, 0, 0, 0]. The relative order of the nonzero values is unimportant.

Name: Anonymous 2014-12-27 0:35

>>115
Not surprising.
http://dis.4chan.org/read/prog/1327456061
http://lambda-the-ultimate.org/node/3851
http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/doc/hopl.pdf
You take a thought language and VM model and give it to someone who knows what to do with it: LuaJIT in <1M.
You take a 3day-thought language without VM model and give it to engineering people: V8 in <10M.
You take a 3year-thought language and VM model and give it to enterprise people: JVM in <100M.
Their performance is on the same level, born around the same time too. (Lua in 1993, JS in 1995, Java in 1995).
Should I mention Python (1991), Ruby(1993) or PHP(1995)?
Should I remember Caml (1987) or Perl (1987) or the SICP itself (1985)?
It feels like people did not read their SICPs for decades, went cooking potatoes on the ascending x86 architecture, and then fed it to their children.
Result nowadays: half-digested Javashit everywhere - and people loving all of it! Because it is the best? There are no options?

No. It is just people love junk food.

>>116
Syntax is irrelevant, Lisp has none. Your options:
Lots of it? http://moonscript.org/
Or macros and make some? http://metalua.luaforge.net/
Or fuck that and make an entire OS? http://terralang.org/

>>117
Choose your destiny:
:(
:)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List