3 ms·
" i've long hoped for a decent language for writing low-level stuff." Have you tried Forth? It is great at low-level stuff.
by csmeder 17y ago
" i've long hoped for a decent language for writing low-level stuff."
Have you tried Forth? It is great at low-level stuff.
- allenbrunson 17y agowell, how am i going to compile forth into my iphone app? it usually comes down to something like that.
- jrockway 17y agoProbably the same way you compile C into an iPhone app. But you said low-level. iPhone apps are high-level.
- eru 17y agoForth isn't compiled most of the time. So go and write yourself a Forth interpreter in C or Assembler for your iPhone. It's (relatively) easy.
- allenbrunson 17y agoso my options boil down to dealing with c++'s warts or writing my own forth interpreter? heh! i think i can see why the status quo has persisted for so long. (not trying to be snarky. if you have written your own forth interpreter, then you are a lot more hardcore than me.)
- eru 17y agoI have written my own Forth Interpreter in Scheme. But it was almost meta-circular.
- silentbicycle 17y agoSeriously, it's not that hard. A hell of a lot easier than "dealing with C++'s warts". (And unlike writing a Scheme, you don't have to figure out how to implement continuations.) Here's the source to one (http://www.annexia.org/forth http://www.annexia.org/forth), it's great reading. If you're looking for a practical "low level but high level" setup, I'd recommend Lua + C first. I haven't done iphone dev, but if you can work with C, you're golden. Forth is fun, though.