HNHacker News
TopNewBestAskShowJobs

riquito

2,341 karma · joined October 14, 2012

[ my public key: https://keybase.io/riquito; my proof: https://keybase.io/riquito/sigs/KlOkCxWXyWRceW_OLfavd7U1jMR4FVrW80rnfMAYOm4 ]
submissionscomments
riquito··on Making Rust binaries smaller by default
My go to reference when I want to reduce rust binary size is the excellent https://github.com/johnthagen/min-sized-rust, a set of guidelines on how to reduce size with explanations of the consequences
riquito··on BiomeJS 2024 Roadmap
I don't know anything about miette, but it didn't exist when Rome, the original code, was created (maybe it did exist but it was in its infancy, the two projects have the same age)
riquito··on Long context prompting for Claude 2.1
> “The best thing to do in San Francisco is eat a sandwich and sit in Dolores Park on a sunny day.” Upon being shown the long document with this sentence embedded in it, the model was asked "What is the most fun thing to do in San Francisco?"

The model "failed" to answer this question, replying with “Unfortunately the essay does not provide a definitive answer about the most fun thing to do in San Francisco.”

It looks right to me... The best thing to do in San Francisco is not necessarily fun

riquito··on Pragmatic Versioning – An Alternative to Semver
It's the old way of versioning things, somewhat formalized.

With semver you live in this world where you are promised the versions to follow semantics, but human nature creeps in and we introduce breaking changes (like bugs!) without setting the version correctly.

With pragmatic versioning you give expectations but also convey that to upgrade you need to test that your software still works.

riquito··on Web Components Eliminate JavaScript Framework Lock-In
It's not all that shiny. Web components have global names (you should pretty much apply a prefix/namespace if you want to work with others) and managing multiple version of the same component in the same page is an issue in any non trivial codebase (either use a different name per version or fix all breaking changes at once during the upgrade, unless the draft about scoping web elements became standard https://github.com/WICG/webcomponents/blob/gh-pages/proposal... )
riquito··on Getting Started with Orca-2-13B
I see that they recently changed the intro of WasmEdge on Github [1] to " WasmEdge is the easiest and fastest way to run LLMs on your own devices. "

Since it's a wasm runtime capable of many things I find bizarre that they now start describing it with a ultra-specific use case

- [1] https://github.com/WasmEdge/WasmEdge

riquito··on StyleTTS2 – open-source Eleven-Labs-quality Text To Speech
I can see a future where the label "100% narrated by a human" (and similar in other industries) will be a thing
riquito··on HTML Web Components: An Example
You have to go back to your codebase and edit every implementation of the component under the sun.

<user-avatar> content is both a view and an interface, which is not obvious

riquito··on HTML Web Components: An Example
> <img title='Jim Nielsen'/> anyone?

That's an accessibility gotcha, the title attribute tend to be neglected by screen readers and you should use aria attributes to communicate that information, and display it with other means

riquito··on Life expectancy for men in US falls to 73 – six years less than women, study
More recent stats

US [1]

Percent of adults aged 20 and over with obesity: 41.9% (2017-March 2020) Percent of adults aged 20 and over with overweight, including obesity: 73.6%

EU [2] [3]

Obese: 16% Percent of adults aged 18 and over with overweight, including obesity: 52.7%

[1] https://www.cdc.gov/nchs/fastats/obesity-overweight.htm [2] https://ec.europa.eu/eurostat/statistics-explained/index.php... [3] https://ec.europa.eu/eurostat/databrowser/view/hlth_ehis_bm1...

riquito··on HTML Web Components
What's the preferred way to version web components since their name is global and you can't risk breaking old usages when you introduce a breaking change? user-avatar-v2? What's todays suggested practice?
riquito··on Htmx, Rust and Shuttle: A New Rapid Prototyping Stack
That's not the same thing, I think he's referring to the fact that in Rust you can keep unit tests and code in the same file, and strip them away at build time. That's not a thing in the js world (and most other languages), where tests must be in a different file and you are forced to export functions to test them, even if you wanted to keep them private in that file.
riquito··on Driver hits woman in SF, then Cruise driverless car runs her over
So if you are waiting at a stop sign, red light, and someone crashes onto you from behind is it your fault by law? Hard to believe
riquito··on Firefox 118
Every big software will end up with open bugs as old as itself
riquito··on GitHub Actions could be so much better
I agree overall, but you oversimplify the issue a bit.

> can I push this YAML complexity into a script?

- what language is the script written in?

- will developers use the same language for all those scripts?

- does it need dependencies?

- where are we going to host scripts used by multiple github actions?

- if we ended up putting those scripts in repositories, how do we update the actions once we release new version of the scripts?

- how do you track those versions?

- how much does it cost to write a separate script and maintain it versus locking us in with an external github action?

These are just the first questions that pop in my mind, but there is more. And some answers may not be that difficult, yet is still something to think about.

And I agree with the core idea (move logic outside pipeline configuration), but I can understand the tepid reaction you may get. Is not free and you compromise on some things

riquito··on Choosing the Right Rust Web Framework: An Overview
Perhaps I misinterpreted what you said as "Even when performance is important, C# and Java are top performers". I read it as "they are the top performers", and there are faster rust frameworks in that benchmark, but perhaps you meant "Among the top performers there are non-rust language which are good options without having to use rust"
riquito··on Choosing the Right Rust Web Framework: An Overview
What you write and what's in the results you linked tells quite a different story (composite scores)
riquito··on If Web Components are so great, why am I not using them?
It's been a while, and overall I'd like them to succeed, but here are the first issues I remember.

The fact that scoped elements are not yet part of the standard is quite a turn off. Every web component is global and the first one that uses a name wins. Even if you are not competing with third party libraries you will need to have multiple versions of your same component very soon to handle breaking changes.

The string only passing is an headache when you'd like to pass object/functions to compare later on.

The fact that some CSS properties can bleed in the shadow Dom, while others don't.

To introduce them into an existing codebase you need support, and last time I checked the support from React was clunky

riquito··on Rust 1.71.0
Don't know about the long lines, everything wraps well to me, but on mobile (firefox) the zero padding on the left side is brutal. The gigantic comment section at the end is a small hindrance, while the right sidebar kills 30-40% of the page width (on mobile), which is annoying on longer articles. And thanks for the content :-)
riquito··on Show HN: Halloy – A GUI Application in Rust for IRC
Turned out gorgeous. Do you remember the original prompt?
riquito··on Declarative Shadow DOM
That's true, but they didn't ratify yet a standard on how to handle web components naming collision, so if you create `my-button` and another developer register `my-button`... Or if you want to use two different version of your own `my-button`...

This is the proposal for scoped elements: https://github.com/WICG/webcomponents/blob/gh-pages/proposal...

riquito··on Hermes: An open-source document management system
> For document-organizer almost any language would work fine, there's no need for super-optimized memory management

Depends on the scale, and the original comment in this thread mention "serious performance issues" as something they care about, so choosing a faster language is not that far fetched as an idea (algorithms trump but still...)

riquito··on Ncdu – NCurses Disk Usage
tuc instead of cut (cut text better than `cut`, or lines like head/tails - eg cut first and last line at once) (but I'm biased, I'm the author)

https://github.com/riquito/tuc/

riquito··on Complete Rewrite of ESLint
> First, eslint is a developer tool and not intended to run in the browser.

from the linked article: "Yes, that means an officially supported browser version!"

riquito··on Wasmer 3.0
I guess it's safe to assume that if they're not providing benchmarks claiming it's faster than native, then it's slower (and that's ok)
riquito··on Sapling: A new source control system with Git-compatible client
I guess you didn't start from cvs or svn, because the experience moving to git was otherworldly. If git was your first versioning system than you had to learn some concepts first, which you already internalized when you switched to Mercurial.
riquito··on Nvidia’s hot adapter for the GeForce RTX 4090 with a built-in breaking point
EVGA decision [1] to stop selling NVIDIA cards looks every day smarter

[1] https://news.ycombinator.com/item?id=32870677

riquito··on Turbopack, the successor to Webpack
A bit of a bummer that "get started" requires nextjs, and there's no documentation for a frameworkless build (I understand it's labeled as alpha but if you're going for such grandiose announcement an "how to bundle a vanilla/frameworkless app" would have been nice)
riquito··on Kill Bill – Open-Source Subscription Billing and Payments Platform
> React is also still 0.x :)

It moved away from 0.x around 6 years ago

riquito··on Show HN: A new search engine UX I've been working on in my free time
If you dislike some companies, you probably don't want to ever see their content, risk to load any kind of tracking information, or help them with an increase in traffic. I'd love too a turn off feature, or a filter of some kind
← PreviousPage 3 of 25Next →