Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment A (programming) game of Space(s) exploration (Score 1) 313

Explain:

https://github.com/BusFactor1I...

It's a Korn Shell script.

Check the readme above for a bit more of an explanation. It's fun. And really challenging, even though there's only 3 words and 3 bits to work with on the virtual machine, a 'Seed'. You combine the words together and see if the calculation computes correctly based on your assumption on a non-deterministic machine. It starts out easy, but it get's difficult quickly. Here's the start. Check the github for the rest: #!/bin/ksh DEBUG=t # expect - test your expectations # # BusFactor1 Inc. # 2017 # License: AGPL set +k tee () { echo -n "$1 " /usr/bin/tee $2 } function tri { # execute the next word if x is 1 x=$(

Comment Re:Editing changed the question, unfortunately (Score 1) 108

Thank you for the interesting response. Could you explain a bit more about what you mean by "using for example tree-pattern-matching replacement into a low-level form". What would you be replacing with what?

My goto performance sensitive problem has always been raytracing, so I think that's the next logical project to implement with this tool and see where it goes.

Comment Re:Asking Obvious (Score 1) 108

Unfortunately, the editors messed up a bit with the explanation of what sxc is and what it is good for. It's not about compiling your Lisp code to C, it's about writing C code using Lisp. With the S-Expression syntax of sxc, a whole world of macro programming and code generation become possible in a natural matter leading from the using of S-Expression and macros. This, so far, has been uncharted territory, although his type of project is quite popular to implement. It seems that nobody has actually used to it's full potential yet; hence the question.

What do you think that the combination of a high level language for the generation of a low level processing language would provide, if anything over the normal combinations of cc + cpp?

Comment Editing changed the question, unfortunately (Score 2) 108

I'm glad this story got posted and sxc is getting some press, but the real question I asked was:

It is unknown exactly what power might come about from this combination of low level processing with high level code generation. Can you think of any possible uses?

The idea of using pre-processors to generate C code is not new to programming; but the usage of the full power of Common Lisp in such a natural way is up to the question.

Slashdot Top Deals

My problem lies in reconciling my gross habits with my net income. -- Errol Flynn Any man who has $10,000 left when he dies is a failure. -- Errol Flynn

Working...