freenode/#lisp - IRC Chatlog
Search
1:08:08
jeosol
(setq inferior-lisp-program "/usr/local/bin/sbcl --dynamic-space-size 10000") -- does this command start sbcl in slime with ~10G. I am running a memory intensive case and slime hangs, but with "sbcl --dynamic-space-size 10000" things work but not able to debug well
2:32:44
mgsk
jeosol: yes, you can allocate up to 10GB on the heap. Are you saying it does or does not work?
3:03:29
sukaeto
aeth: Sure! I see your point. It depends on what you're doing with said HTML. HTML templating engines like Djula still have value, though (as evidenced by Djula's existence - someone wanted Jinja style templates in Lisp), because you can just have your design person write the templates without needing too much from you.
3:04:27
sukaeto
whereas sqlalchemy (at least from my experience with it) is just kind of very not ideal way of allowing you to write queries in Python. There's nothing about it that sxql doesn't do better.
3:06:34
sukaeto
pjb: "Just using pointers to structures for everything", while possible in Ada, is very awkward and you have to go out of your way to do it. For good reason, IMO. I wouldn't call Ada a lesser language (than Lisp, presumably you meant to say). Just . . . different.
3:09:37
sukaeto
aeth: Ada distinguishes between "Foo", "pointer to Foo", and "Foo'Class (as well as pointer to Foo'Class)" - that last one I've never seen an analogue to in any other language. Essentially, "We don't know the exact type of this thing until runtime, just that it's some descendent of Foo"
3:36:14
aeth
sukaeto: On the other hand, nothing's stopping you from, rather than text-substituting, parsing that templating engine into your html->s-expression system and thus validate the HTML
3:39:27
aeth
sukaeto: #lispcafe also came up with a clever way of substituting something into a string. Basically, build a format string that takes in a keyword argument by collecting the variables and then removing the duplicates for the keywords, i.e. (&key foo bar baz ...) would be the lambda list but they might be encountered as foo bar foo foo baz bar ... in the template language
3:40:30
aeth
And since "hello, {{person}}!" seems wrong to a Lisper, it could be represented as (that-macro "hello, " person "!") which will then generate a function with one keyword argument, person.
3:41:27
aeth
Now, whether or not a design person would be able to tolerate (define-foo foo "<html> <body> Hello, " person "!") instead of an alternative is a different story...
3:42:04
aeth
I guess the point of this is that you get a ton of flexibility... at the expense of everyone probably preferring their own solution
3:51:55
pjb
you should not trust what comes out of #lispcafe. It's specifically designed for that, not trusting.
3:57:47
no-defun-allowed
Would you prefer the code written there then, pjb? http://clim.rocks/gilbert/blah2.lisp
3:59:29
sukaeto
yeah, my experience is that design people would rather just do PHPish stuff inlined directly into the HTML. So things like Jinja work out great for them.
4:00:14
sukaeto
granted, if you don't have a design person and you're stuck writing all your own HTML, then yeah. Having a sexpr representation and being able to work with it in code is great.
4:29:07
aeth
sukaeto: In fact, at least one person almost certainly made something like that when PHP was in style (although nowadays even PHP uses web frameworks with templates like Python and Ruby offer)
5:54:57
jeosol
mgsk: It didn't appear to work. Now I just do C-u M-x, then sbcl --dynamic-space-size 10000.