5 ms·
1991: A server-side web framework written in Forth
- dang 4y agoRelated: 1991 – a server-side web framework written in Forth - https://news.ycombinator.com/item?id=19146767 https://news.ycombinator.com/item?id=19146767 - Feb 2019 (67 comments)
- metadat 4y agoIs there a web-framework with equivalent or greater functionality defined in fewer characters than this?
- quickthrower2 4y agoAn APL One? https://github.com/Dyalog/MiServer/blob/master/SampleMiSites/MS2/mortgagems2.dyalog https://github.com/Dyalog/MiServer/blob/master/SampleMiSites...
- adg001 4y ago> Okay. But Fredric Jameson establishes that in postmodernism we have experienced a weakening sense of historisity such that what is, what was, and what will be all exist as presents in time. 1970, 1991, 1992, and 2017 all happen simultaneously. Okay with the postmodernism, but relying on a memory unsafe language to implement a server-side web framework in 1970, 1991, 1992, and 2017 is equally anachronistic. That being said much love to Forth! – Or, as the post-modern philosopher Slavoj Žižek is used to say: "and so on and so Forth".
- tluyben2 4y agoMaybe a nitpick, but > memory unsafe language That's the implementation thing, not the language. You can implement an ANSI Forth standard like GForth in a memory safe way without a lot of issues. Even the memory allocation words[0] are easily implemented in a garbage collected language. Of course that makes it useless for embedded purposes which is where Forth usually works well, but that's not an issue as you are not doing that here. [0] https://forth-standard.org/standard/memory https://forth-standard.org/standard/memory
- astrobe_ 4y agoHalf correct. It's true that you can improve the safety that way, but what proponents of memory safety consider a no-go is pointer arithmetic and crafting - basically not what C allows. You can forbid yourself to do these things and implement a "safety layer" for string handling, array handling with bound checking etc. but at the end of the day, it's more a a cultural thing than a technical thing. IMO this era wants to build reliability from lots of unreliable parts, and that include developers; cowboy programmers who could make reliable things by themselves have been retired. Well, you see the result: smartphones that can't make emergency calls when you need it etc. But hey, it's written in a memory safe language and our bus factor is 0.00004 !
- tluyben2 4y agoYou can do fake pointer arithmetic which won't hurt this use case (server-side web framework); if you implement Gforth as an interpreter on the JVM/CLR or running it with Emscripten, there is no issue for server-side web frameworks like this while being safe. That's been done for C a few times (this [0] and there are a few others); if you don't depend on the actual physical memory addresses you are using (which, in embedded, you often are counting on, but not in a server-side framework). > it's more a a cultural thing than a technical thing. I agree with that > IMO this era wants to build reliability from lots of unreliable parts, and that include developers; cowboy programmers who could make reliable things by themselves have been retired. Not sure what this means? [0] https://chrisseaton.com/plas15/safec.pdf https://chrisseaton.com/plas15/safec.pdf
- adg001 4y agoAbsolutely, the same can be said about C – And how many succeeded in doing so in the latest 30 years of Web history? I am reminded about a quote attributed to Keith Martin (mathematician): "Theory is important, at least in theory"
- inferiorhuman 4y agow3m comes to mind
- jedberg 4y agoWow that is the most un-googleable project name.
- treve 4y agoDidn't have too much trouble: https://www.google.com/search?q=1991+forth https://www.google.com/search?q=1991+forth
- ramchip 4y agoIs it much worse than Phoenix, Rails, Buffalo, Spring...?
- quickthrower2 4y agoIs their a Railway from Phoenix to Buffalo I can take this Spring?
- graderjs 4y agoWhere can one find Forth work?
- astrobe_ 4y agoIf you are asking this question, this means that you are very unlikely to pass the interview.
- graderjs 4y agoOh you're the Forth expert? Well you wouldn't know if I were one or not, nor how likely. But what a little clique you make it sound like; a very exclusive club.
- astrobe_ 4y agoI'm no Forth expert, yet I know which type of company is more likely to use Forth, and also who to try to talk to in the community. For a niche language which is not taught in schools, it is unavoidable to getting to know the community because it provides part of the material you need to teach yourself the paradigm; at some point you know better places to ask this question than HN.
- graderjs 4y agoStill, if I'm asking and you know--why not just reply, with that information? Rather than some elitist snobbery, like "If you even ask that you wouldn't be good enough" or pretend you're somehow better or some bs that you made up. That's not very nice, not to mention not in the spirit of HN, to respond to curiosity with a low-effort, low-info response. Disappointed in you! :) but you can still do better
- astrobe_ 4y agoGratz, you have the last word.
- zeckalpha 4y agoIf you want to do something like this that is more maintained and a more modern postfix language, there's furnace which comes with factor: https://docs.factorcode.org/content/article-furnace.html https://docs.factorcode.org/content/article-furnace.html