freenode/#sicl - IRC Chatlog
Search
4:33:02
no-defun-allowed
The language is up to Gnuxie, but the constraints are borderline nonsensical and it must compile to JavaScript of all things.
4:34:43
no-defun-allowed
For example, she is not allowed any other abstract datatypes other than arrays (we derived Racket-like streams from those though), the only concrete datatype is the floating point number (probably a kludge to keep JavaScript happy) and no macros are allowed (anonymous functions are an "extension").
4:35:28
no-defun-allowed
Were there strings? I forgot, probably because my CL transpiler was very forgiving.
4:42:30
no-defun-allowed
Just to check though, do you have to produce the syntax yourself or do you produce an AST?
4:44:47
beach
Gnuxie[m]: I am resisting the temptation to enter into a debate about what the goals of higher education in computing ought to be.
4:47:26
no-defun-allowed
I would highly suggest you use some other library to generate the output from an AST, since ASTs are easier to generate and the library might have less edge cases which cause it to fail.
4:49:33
Gnuxie[m]
#'no-defun-allowed: the deadline isn't far away and idk if I'd get rewarded for doing it properly
4:49:57
no-defun-allowed
(Do you remember when I showed you the logic for llvm-trees? JavaScript is less linear and annoying but you ideally shouldn't have to remake that.)
4:52:42
no-defun-allowed
Google's Caja has some JS generating code: https://github.com/google/caja/tree/master/src/com/google/caja
5:00:10
beach
I will say one thing about higher education in computing. In the past I would have hesitated mentioning Common Lisp, because of the reaction from my colleages. If it were now, I would have no problems stating that a course in Lisp (not necessarily Common Lisp) is an obligatory part of any university program in computing worthy of that name.
5:03:43
jcowan
Well, sure, you can say what you like when you know that no one is listening, surely.
5:04:49
beach
When I was in charge, I was apparently very dictatorial. But everyone agrees that my decisions were based on facts and good policy, so nobody complained too much.