A few hours spent with Perl in order to write a simple text server. It does just that: it serves text, and it allows you to change text because I think the read/write web is important. In a way it's a bit like #gopher without menus. You can have link extraction in the client, I think!
As this is basically just #gopher text files, and since @solderpunk's gopher client VF-1 allows us to extract URLs in text files in order to create a temporary menu, we can already use VF-1 to navigate site consisting of nothing but interlinked, simple text files. For now, the only URL scheme we can use is the Gopher URLs with a prepended 0 item type (for text files), but who cares? At least for now, this is good enough.
Anyway, do you have recommendations, experiences?
I was shown a tutorial for implementing something in Rust and generating WebAssembly. https://rustwasm.github.io/book/game-of-life/implementing.html
Now I'm looking at this "list of languages that currently compile to or have their VMs in WebAssembly(wasm)"
Intriguing! And I feel sad for the many unpopular languages with descriptions like "… is a general-purpose programming language designed for robustness, optimality, and maintainability." Like all of them, initially, hopefully.
I feel tempted to try WebPerl! Oh my, what have I done.
So now that I know this will require server-side code, I might as well use Perl 5. 😜
OK, here's a simple web app in Perl 5. 😃
This is not a full gopher client. You could say it's "only gopher text files" plus some Markdown and link processing. Thus, as long as there are URLs in those text files, these links should work. If those links go to a Gopher menu, however, it doesn't work any more. Only text files!
Biwascheme is fun to toy with but is extremely slow. (Not a super useful info but that's all I know! :-)
@kensanata If you like lisp and want to do a web thing... have you considered writing WASM directly? :)
The "readable" form is lispy.
@cathal Hahaha, now there's a thought! Perhaps I should just write in whatever and find a to-wasm thing!
@kensanata what's the point of using gopher if it's still in a JS-ridden web browser?
@Wolf480pl I want to read gopher on my iOS devies. What's the quickest way to get anything done on a phone? I think it's a web app. What would you do?
@kensanata I'd stop m having an iOS device, or stop wanting to read gopher on a defective device like that. But I guess I'm weird.
@kensanata coffeescript is pretty fun, but a bit "magical" language. If you like elisp, why not trying commonlisp for a change? I've heard they are pretty close :D
@alexcleac Remember that I need a programming language that produces a web app at the end. Are you recommending EdgeLisp, Parenscript, or JSCL?
@kensanata you want to have a server-side web app or a client-side web app?
@alexcleac I would prefer a client-side web app in order to avoid my server acting as a proxy for all requests.
@kensanata yeah, then commonlisp and much others are not applicable to you.
@alexshendi Sadly, Java and JDK are a no-go for me because it reminds me of my day job! 😆
@kensanata Actually you don't need a JDK, just an JRE for the binary version. Alternatively you can try to compile it to machine code via C, but you will have to tinker with the source code to make it work with current versions of bigloo.
@julienxx "something with WebAssembly" sounds intriguing, but I wonder where I'd learn more.
@kensanata for Rust there is some good doc https://rustwasm.github.io/book/game-of-life/implementing.html
@julienxx This looks very interesting, thank you very much!
@kensanata Basically, yes 😄
@mdallastella I tried for a while to get things going but I realized that I don't understand how I'm supposed to write the web app using fennel, lua, and fengari. All I managed to do was print stuff to the console. 😔
@kensanata Fennel community is pretty small and there's not a lot of documentation at the moment... I agree that is hard to start something with it today... 😔
@kensanata for the horrific thing I was working on I was planning on using electron. It can do tcp sockets in theory
@tomasino Haha! Well, for my laptop I'd probably be writing either some Python command-line tool like VF-1 (using some other Macross-themed name, I guess), or an Emacs mode… But for my phone, I need something that I can access with a browser.
@gcupc "Always two there are!" Emacs just keeps on giving. I was adding features to https://github.com/msnyder-info/gopher.el#gopherel