HackerTrans
TopNewTrendsCommentsPastAskShowJobs

omn1

no profile record

Submissions

Three Lessons from My Interview with Pieter Levels

wannabe-entrepreneur.com
2 points·by omn1·hace 4 años·0 comments

Zerocal – A Serverless Calendar App in Rust

endler.dev
154 points·by omn1·hace 4 años·58 comments

Static Full-Text Search in Next.js with WebAssembly, Rust, and Xor Filters

hackernoon.com
3 points·by omn1·hace 4 años·0 comments

Spet – Turing-complete programming language based on Spotify playlists

h313.info
3 points·by omn1·hace 5 años·1 comments

comments

omn1
·hace 4 años·discuss
Same. Used shuttle for https://endler.dev/2022/zerocal/ lately and was super happy with the experience. I no longer have to worry about hosting and can focus on the product instead.
omn1
·hace 4 años·discuss
True, but for others to resolve the calendar entries you'd need to serve that file somewhere.
omn1
·hace 4 años·discuss
Update: self-hosting works now. Added instructions to the docs. Have fun.
omn1
·hace 4 años·discuss
Got it. The generator logic is in Rust yes. I could have written it in JavaScript as well but it was just easier for me to do that part in Rust. Should have mentioned that. Of course you could host a static HTML with JS on Github pages, but Github pages also runs on a server. So to answer the original question, yes you do need some server for it unless you make it a command line app.
omn1
·hace 4 años·discuss
Good question. It depends on your definition of serverless. Strictly speaking there is no serverless, there's always some infrastructure somewhere.

However the calendar file gets created out of thin air from the GET parameters alone. There is no state or storage involved. Other calendar apps have a backend with a DB; this one doesn't. Now whether that counts as truly serverless is up to you I guess. It's as close as you could get with a calendar I'd say. Not easy to get the point across in a title. ;) Hope that helps.
omn1
·hace 4 años·discuss
You could do that but you'd have to create the ics file manually and not every platform allows you to share ics files. My original use-case was Github. Wanted to share invites for https://github.com/hello-rust/community. Github prevents sharing ics. Another thing is that people could edit a link in-place to e.g. update the time without creating a new file.
omn1
·hace 4 años·discuss
Not sure I understand because that's what it is basically. The Rust part is just for the routing; it decides whether to serve the form or the generated calendar file.
omn1
·hace 4 años·discuss
Thanks for the info. I thought I fixed that lately [1]. I don't have an iPhone to test it with but I'll see what I can do.

At least on the Chrome viewport emulator it looks fine to me...

https://github.com/mre/endler.dev/commit/bc1187d290d153455b0...
omn1
·hace 4 años·discuss
That's correct.
omn1
·hace 4 años·discuss
It's just Rust, so it can be. Will add a `main.rs` and some instructions, but PRs are welcome if someone beats me to it. ;) https://github.com/mre/zerocal/issues/9
omn1
·hace 4 años·discuss
Author here, had a lot of fun building this as it's just ~100 lines of Rust code + some CSS/HTML. If someone is looking for a fun thing to contribute to during Hacktoberfest, the code is on Github: https://github.com/mre/zerocal Will mainly use it for myself to send out event links to friends.
omn1
·hace 4 años·discuss
ripgrep by BurntSushi (https://github.com/BurntSushi/ripgrep)
omn1
·hace 4 años·discuss
Which is weird because the unicorn is an inlined image (png), encoded in base64. Seems like they broke it.
omn1
·hace 4 años·discuss
Even though the status page (https://www.githubstatus.com/) shows no issues, I'm still getting the occasional 500. It seems to be happening quite irregularly. They are possibly facing a lot of load.
omn1
·hace 5 años·discuss
They did actually. You can paste an image into a Markdown file with cmd/ctrl+v.