TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Systems Programming with Racket

164 pointsby r_szalmost 2 years ago

5 comments

neilvalmost 2 years ago
Instead of that `xml` library and format, many people use the SXML format defined by Oleg Kiselyov:<p><a href="https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;sxml-intro&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;sxml-intro&#x2F;</a><p>SXML became the de facto standard in the Scheme community after Oleg and others developed some powerful libraries for it, starting with Oleg&#x27;s SSAX parser. SXML is also better-suited to efficient manipulation of large HTML&#x2F;XML when using immutable lists.<p>Also, if you&#x27;re looking at code examples in TFA, and thinking that, even when composing HTML using lists rather than strings, it&#x27;s still susceptible to injection programming errors, then one SXML-ish improvement is:<p><a href="https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;html-template&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;html-template&#x2F;</a><p><a href="https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;rws-html-template&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;rws-html-template&#x2F;</a>
评论 #36560996 未加载
评论 #36579530 未加载
alexottalmost 2 years ago
Almost 20 years ago I worked at company that developed a commercial product on top of MzScheme (prior to DrScheme and Racket). There was an article about it in Russian, unfortunately now only available via web archive <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20210506123442&#x2F;http:&#x2F;&#x2F;fprog.ru&#x2F;2009&#x2F;issue2&#x2F;alex-ott-using-scheme-in-dozor-jet&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20210506123442&#x2F;http:&#x2F;&#x2F;fprog.ru&#x2F;2...</a>
nighmialmost 2 years ago
I&#x27;ve been working on porting golang&#x27;s net&#x2F;http and gorilla&#x2F;websocket libs to Racket for the past few months (I don&#x27;t like the servelet model.) Does anyone have insight into how that model might not be optimal in a Scheme enviroment or how to better optimize it?
评论 #36557445 未加载
评论 #36556627 未加载
_aaedalmost 2 years ago
Looks like Lisp&#x27;s back on the menu boys
评论 #36557514 未加载
评论 #36558715 未加载
philboalmost 2 years ago
Realistically, how much data is it practical to stash inside these continuations? It seems like it could get out of hand quite quickly for non-toy examples.<p>If you were propagating e.g. game state, you&#x27;d still want to stick that in a db, so the continuation would just be a session id?
评论 #36559440 未加载