***cluck` is now known as cluck
<sneek>Welcome back nalaginrut, you have 3 messages. <sneek>nalaginrut, ArneBab says: I now created the last release before the SRFI, so I’d be very interested in your comments on the parts you already read! <nalaginrut>ArneBab: yes, something like that, but may I expect more? ;-) <nalaginrut>you know, as a template, there'd be code embedded in, and should be eval when rendering <nalaginrut>dunno if it's possible to be added into wisp, maybe I should modify its reader? <nalaginrut>ArneBab: how can I do (display (format #f "asdf: ~a" (1+ 99))) ? <nalaginrut>I mean, the second expr contains two more sub expr <ArneBab>nalaginrut: wisp expects indentation by spaces <ArneBab>nalaginrut: first line: display (no indent), second line format #f "asdf: ~a" (some indent), third line 1+ 99 (more indent) <ArneBab>or you can simply use `display : format #f "asdf: ~a" : 1+ 99` on one line (but the inline-colon only works for the last expression in the line) <nalaginrut>ArneBab: is it possible to run code in the sxml? <ArneBab>nalaginrut: I defined the sxml with quote. If I had used quasiquote, I could have simply run code with ,(code) <nalaginrut>hmm...I think I have to add quote for users, but it's easy to do <ArneBab>or you could provide templates as the “message” in the second example <ArneBab>message is replaced when going from template to template2 by match <nalaginrut>I want to provide the template as a independent file <ArneBab>I guess it could either be a module or it could be a script to run <nalaginrut>the template should be eval on the fly (rendering) <ArneBab>it should be easy to create markup for running code <ArneBab>it actually is: I’m doing that in the example ,(map loop a) <ArneBab>that example could also run all code in a <nalaginrut>I just think if it's possible to reduce , or ` or , or ,@ <nalaginrut>since the designer may not comfortable with them <ArneBab>you can spell ` as quasiquote, that already makes it look easier <ArneBab>but for the template, the match I’m using shows that you don’t even need that <nalaginrut>yes, I will add (quasiquote ...) after I read the template as a s-expr <nalaginrut>I prefer the template looks similar to plain html <ArneBab>like this? define-template <name> body ... → define name : quote body <ArneBab>and then use match to replace (scheme body ...) by ,(body)? <nalaginrut>I think it's `(quasiquote ,(call-with-input-file "xxx.tpl" read)) <ArneBab>doesn’t that mean that the template is read from disk on every run of the code? <ArneBab>so you want it to always reload automatically when the template is changed? <ArneBab>that should be doable with both methods (match or including the tree directly) <ArneBab>I’m a bit wary about including the code directly, because that could breed closer coupling. <nalaginrut>I've already done it with SXML and php like template <nalaginrut>ArneBab: no, although it's possible to include the code, it shouldn't allow <ArneBab>I guess you can experiment with it - it’s a design question not a language question. <ArneBab>nalaginrut: I don’t know enough about the larger structure so my input can mostly be shooting into the blue… <ArneBab>(shooting into the blue is a germanism) <nalaginrut>ArneBab: yes, it's design question, I'm just not familiar with wisp at present, or my idea maybe clearer <ArneBab>nalaginrut: you could just use (wisp-scheme-read-file name) instead of (with-input-file ... read) <nalaginrut>you'll like it if you want to build dynamic site <ArneBab>(I’m mostly building static sites nowadays, because I realized that I no longer have enough time to maintain my sites well enough that they are safe against crackers) <nalaginrut>ArneBab: one of the aims of Artanis is to make it safe, and easier <nalaginrut>but it's fine, since static sites is popular these days <cky>ArneBab: As I mentioned in my comment: 1. decent Scheme implementations (including Guile, thankfully) will also return true for `(= (#e0.1 #e0.2) #e0.3)`. 2. exact numbers are awesome when you need more than 53 bits of precision for stuff: http://stackoverflow.com/a/24101699/13 (pure-Scheme implementations of SHA-2). <ArneBab>the code in the link did not work at all in Python, but works really nicely in Guile (because intermediate numbers are huge) <cky>Yeah, the things that exact numbers enable are amazing. <cky>ArneBab: Wow, you have a pretty low userid on Stack Overflow. Nice! <ArneBab>cky: that’s coincidence on when someone finds a site :) <cky>ArneBab: Hehehehe. (In my case, my userid is not coincidence. ;-)) <cky>ArneBab: During the Stack Overflow private beta, you needed a special password to get onto the site. I found a way to bypass that password check, so I was able to create an account ahead of others. <ArneBab>that’s a well deserved low ID then :) <sneek>Welcome back Chaos`Eternal, you have 1 message. <sneek>Chaos`Eternal, nalaginrut says: Even errno is thread-safe now (because of TLS), it may not be safe in a specific thread, since it's global in a thread. If you can't guarantee to fetch errno value immediately after any possible change, then safe issue is suspended. That's why I said "errno is still a problem in a thread". Anyway, just for a mention. ;-)