Readit News logoReadit News
wint3rmute commented on Feather: A Rust web framework that does not use async   github.com/BersisSe/feath... · Posted by u/todsacerdoti
serial_dev · 10 months ago
Not a Rust expert by any means, but what does it bring that there is no async in the framework? Wouldn’t most of the libraries use async anyway, connecting to queues, databases, external services via HTTP? It’s hard to imagine a backend that still won’t need async, so I wonder if it is even worth trying… (please do let me know if it is)
wint3rmute · 10 months ago
This is especially true for newcomers, but async Rust has significant mental overhead. You quickly run into things like the Pin marker, Tokio runtime, complex compiler errors related to ownership, basically each "normal" component of the language get some additional complexity due to async.

If you're new to Rust and you want to "just make a web app", the view at the async Rust landscape could be a turnoff for novices. I speak from experience, having started a couple Rust projects in Python/C++ teams. After writing in Rust for 3+ years I can navigate async contepts without troubles, but for someone coming from the usual popular languages (Python/C#/Java/C++), there are simply too many new things to learn when jumping straight into an async Rust codebase.

IMO this framework is going in a good direction, assuming that it will only be used for small/educational projects.

For the async Rust landscape, things are improving every year, IMO we're around 5-10 years until we get tooling which will feel intuitive to complete newcomers.

wint3rmute commented on OpenBSD Innovations   openbsd.org/innovations.h... · Posted by u/angristan
commandersaki · a year ago
Really surprised that pledge / unveil isn't featured more prominently on this page.
wint3rmute · a year ago
Maybe I'm not getting something here, but I find the pledge/unveil approach confusing.

Why should I expect a program to set allowed syscalls/filesystem paths? Why would I trust that it will set itself the right permissions? What is allowed should be set externally from the program, similarly how I can map filesystem volumes and add capabilities to a Docker container [1].

I'm not familiar with BSD and I only used it a couple times out of curiosity. What am I missing?

[1] https://docs.docker.com/engine/security/#linux-kernel-capabi...

wint3rmute commented on Show HN: Interactive systemd – a better way to work with systemd units   isd-project.github.io/isd... · Posted by u/kai-tub
jonwest · a year ago
Maybe a bit of a gross simplification, but would you say this is analogous to something like k9s for Kubernetes? It looks handy, to say the least.
wint3rmute · a year ago
That was my first thought as well, seems to fill a very similar niche, just for systemd instead of kubernetes
wint3rmute commented on New LLM optimization technique slashes memory costs   venturebeat.com/ai/new-ll... · Posted by u/hochmartinez
prox · a year ago
I might have a go at installing one, what is a good source or install at the moment?
wint3rmute · a year ago
Ollama was the easiest way to set up local LLMs for me.

https://ollama.com/

wint3rmute commented on Ask HN: How can I grow as an engineer without good seniors to learn from?    · Posted by u/prathameshgh
ben30 · a year ago
A practical tip for self-improvement: If you're using JetBrains IDEs, make it a habit to never commit code without reviewing and addressing the IDE's soft warnings and code improvement suggestions. This built-in static analysis can serve as a basic code review mechanism and help maintain code quality standards
wint3rmute · a year ago
This, but also learn to configure other linters, not only things bound to a specific IDE. Learn from the errors that linters raise, their documentation usually has a "rationale" section for each rule.

Ideally you should also run those linters in CI/CD. When a new member joins the team, they will get CI/CD linting for free, which will save you a ton time for each new team member

wint3rmute commented on How to Work with GPT-Powered Apps on macOS   help.openai.com/en/articl... · Posted by u/wertyk
wint3rmute · a year ago
> Enabling ChatGPT to work with most compatible apps requires the macOS Accessibility API to query content.

I wonder if the AI boom could have an unexpected effect of improving accessibility features across applications, as a byproduct of integrating various AI solutions.

wint3rmute commented on Exploring Typst, a new typesetting system similar to LaTeX   blog.jreyesr.com/posts/ty... · Posted by u/judell
perlgeek · a year ago
Thanks! Are you using the json loading feature in typst at all?
wint3rmute · a year ago
Nope, didnt event knew such a thing existed :)
wint3rmute commented on Exploring Typst, a new typesetting system similar to LaTeX   blog.jreyesr.com/posts/ty... · Posted by u/judell
perlgeek · a year ago
In the near future, I'll have to program the document generation part of an invoicing system.

In the past, I've done generated PDF documents through latex, and didn't really like the process (for one, escaping is just so weird in latex, \ to \textbackslash for example).

I've thought about generating HTML and using a headless browser that can produce PDFs for me, but I don't know how well you can e.g. control page breaks with CSS these days.

Maybe typst is actually a good alternative here? Does anybody have experience with typst and multi-page tables?

wint3rmute · a year ago
I'm doing PDF document generation in typst, the format I'm generating is similar to invoices (specific to how the law in my country is, but that's a longer story).

Typst code generation was easy to automate with trivial python templates (jinja2). The core part of my document are multi-page tables, and typst splits them nicely.

I had to google around a bit, as there are multiple settings on how large tables are handled, I suggest that you give Typst a try, you can build a working prototype in no time

wint3rmute commented on Rebuilding my homelab: Suffering as a service   xeiaso.net/blog/2024/home... · Posted by u/xena
wint3rmute · 2 years ago
After running NixOS for 6+ months on my homelab and also re-using part of the configuration on my work machine, I feel the same way as Xe each time I'm interacting with a non-declarative OS. There's just no simple way to share configuration between machines or to automagically clean things up after making changes.

Ansible feels like a thin layer of ice upon a deep ocean of the OS state, hiding in a multitude of non-tracked configuration files. It is simply not enough to build a layer of YAML around an OS which is imperative by nature.

Unfortunately, I can see the downsides of NixOS as well, being radically different from what we usually expect in a Linux distribution, adopting it in a already established environment will no doubt be hard. Steep learning curve, idiosyncracies of the Nix language (although after reading parts of the Nix thesis[1], I find it much more understandable and deeply thought out), just explaining Nix to people who don't have much experience with the functional way of doing things, let alone taking the functional approach all the way to defining an entire operating system - all of this sounds like a tough barrier to cross.

And yet, the desire to keep things reproducible and declarative (not to mention going back in time) persists once you've had the taste of NixOS.

[1] https://edolstra.github.io/pubs/phd-thesis.pdf

wint3rmute commented on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim   neovide.dev... · Posted by u/frankjr
anpep · 2 years ago
Should I take this opportunity to switch to Neovim for once? I've attempted using vim/neovim/emacs, etc. many times but it's just so confusing to me.

Why would I go over the trouble of debugging my editor for simple stuff like having LSP completions and semantic highlighting? It's insanely difficult for me to wrap my mind around vim packages, configs, etc., when VSCode/GoLand/et al. do a pretty darn job being decent editors that you don't need to hack on and just work out of the box.

Don't get me wrong, I'm not throwing shade on vim/emacs, I'm just wondering what am I missing since everyone's been super happy and productive with vim for ages, and if I'm approaching these tools the wrong way...

wint3rmute · 2 years ago
I suggest you try something like LunarVim[1] or NvChad[2] for a ready-to use IDE-like neovim configuration.

I had the same problem with configuring (neo)vim, it's simply too much work to get a reasonable IDE experience. Using an already well tested and documented configuration helped me to make the switch.

[1] https://www.lunarvim.org/

[2] https://nvchad.com/

u/wint3rmute

KarmaCake day26July 15, 2023View Original