IRC channel logs
2017-09-10.log
back to list of logs
<dustyweb>I didn't type in all the examples but I read most of it ;) <dustyweb>happy_gnu[m]: do I remember that you write your own html templating language in that? <dustyweb>happy_gnu[m]: if that's actually what it's outputting, your code must not be rendering elements? because that looks pretty sparse <dustyweb>happy_gnu[m]: sounds like what you should try to do is not render the whole application, but play with trying to get smaller bits of html to spit out <dustyweb>happy_gnu[m]: this sounds like an opportunity for a REPL debugging session ;) <dustyweb>great! then you should try to render little html snippets at the repl <happy_gnu[m]>Is just Firefox doesn't render it just shows plain text and I don't know how the HTTP/1.1 200 OK <dustyweb>it's just an http response saying that things are not broken <happy_gnu[m]>Ah what I mean is that the example needs this 200 to work but I don't know where to put it <dustyweb>oh I see, it just relies on the extreme forgivingness of web browsers in this <dustyweb>doesn't even mention how to do a proper response really... <happy_gnu[m]>Yes :/ but Firefox doesn't work anymore so I went to the forum and there someone had a similar problem and they said to add the 200 OK and a blank line <dustyweb>"HTTP/1.1 200 OK" goes on its own line, as do all the other headers. In general, you should end the lines with "\\r\\n" though many browsers let you get away with just "\\n" <dustyweb>happy_gnu[m]: probably also want Content-Type, and maybe even Content-Length (I don't know if it'll let you get away without that one) <happy_gnu[m]>dustyweb: thanks :) sorry for bothering you, I didn't know who else to ask <dustyweb>happy_gnu[m]: np! btw you may also want to join #lisp and #scheme <happy_gnu[m]>dustyweb: do you have any book suggestion for that type of web/server stuff? <dustyweb>happy_gnu[m]: I don't have a book suggestion; Mozilla Dev Network is great though <amz3`>does anyone have pure implementation of 'read' and 'write'? <janneke>amz3`: mes has most of it's read and write in scheme... <amz3`>it's something that is also needed by guile fiber IIRC <amz3`>nice I will have a look at it <amz3`>janneke: where can I find the source? <janneke>...but that's not (directly) usable with Guile, of course <janneke>mwette: your 0.81.0 prompted me to see if I could prepare a new Mes release, really happy with your progres! <stis_>sorry folks for working with a python to scheme compiler, but it's fun and it makes me appriciate scheme the more <stis_>tonight I will hack in try except I think. <stis_>if only I could use guile at work, we want to standardize on a functional language on an open platform. <stis_>but it looks again that programmers in general can't handle the parens - acording to the execs <amz3`>a collegue at work, is convinced you can't write a database in guile <amz3`>I did not even bother try to explain him what was true <amz3`>I should have, but I lake energy <amz3`>for that person in particular <stis_>I tend to say my meaning but in practice have little influence. Scheme is so insanly well designed and not even on the radar of what people see as viable <amz3`>I love this quote: “inteligence is not what you do when you know, it's what you do when you don't know” <amz3`>stis_: yes, in particular this persons knows I am/was working on database in Guile but instead of asking how it was possible he rejected the idea in bulk <amz3`>at the very least, he could have said, that's dynamic language, it will be slow. <amz3`>that argument I can understand <amz3`>but that doesn't make guile useless <amz3`>afaict Guile is on a good track, even if it will take time to have all this packaged in a nice box <amz3`>I mean to have all the thing I want in stable master <amz3`>like fiber, guile-js and ffi helper <stis_>Yes, and this is what exciting. <stis_>I would actually want guile to compile towards the jvm as well in case oracle will open source it <stis_>mwette: sure I know about kawa, but I tend to like the guile flavor of scheme thiugh and if it can get to jsm why not jvm <janneke>mwette: supporting Nyacc's new asm-expr alongside the old version is trivial, great! <janneke>mwette: now mescc compiles tinycc into a somewhat functional C compiler; we're getting real close to a proper C compiler. <janneke>mwette: sent patch to update nyacc to 0.82.0 to guix! <mwette>janneke: How about a scheme version of lightning? <janneke>mwette: yeah, i've been thinking about that... <janneke>my problem currently is that i want to use a rather minimal Guile feature set for the Scheme C compiler <janneke>because it needs to run on a Scheme [interpreter/compiler] that can be written in assebly (currently Mes)