HNHacker News
TopNewBestAskShowJobs

ameixaseca

261 karma · joined June 7, 2018

submissionscomments
ameixaseca··on CS SYD – Nix does not guarantee reproducibility
The article conflates several concepts about what is and isn't expected from a reproducible build system.

This comment sums it up pretty well: https://github.com/NorfairKing/nix-does-not-guarantee-reprod... (https://archive.is/KKx0V)

Additionally, I find the author's response of "PRs welcome" somewhat unsettling. It comes across to me like a poor-taste joke: someone writes an opinion piece with misleading information, then expects those pointing out the errors to do the work of correcting them.

I would be remiss if I didn't mention Brandolini's law.

A few references:

- A more nuanced interpretation of reproducibility vs repeatability: https://discourse.nixos.org/t/nixos-is-not-reproducible/4268...

- Reproducibility rates on Nixpkgs: https://arxiv.org/abs/2501.15919

ameixaseca··on Heavy chatbot usage is correlated with loneliness and reduced socialization
The article leaps from correlation to causation while trying to make an argument.

Correlation is not causation. They might reinforce each other but the problem is likely more complex.

ameixaseca··on No good deed goes unpunished: can we now be sued over software we give away?
The word "product" has been used in all citations, though the author did not provide the definition of "product".

In my opinion, this would likely clarify the intent behind the text.

ameixaseca··on Nix – Death by a Thousand Cuts
I've used too many Linux distributions to list here, last one before NixOS being Arch.

No disto ever came close to giving me what NixOS gives:

- I can try to rebuild my system as many times as I want and it doesn't matter if it fails, as long as I get one to succeed I can switch to it;

- Once I get the system the way I want, I can reproduce the same setup with a single command across a number of different machines;

- I can reuse different parts of the config with different machines and update things incrementally, revision, etc, and every time I improve my shared config on one machine, the improvements are automatically transferred to the other machines upon gir-pull and rebuild.

I've now transfered most of my previous configuration to Nix, and not only that but I have tons of services I never bothered configuring on all machines enabled since it was all this trouble of moving configs back and forth.

I've got my share of issues with Nix, from trying to use submodules with Flakes (nixos-install does not work with it) to tons of headaches when trying to play with specializations - most of the time issues were caused by not understanding how the evaluation works or how to properly abstracting modules - but I cannot imagine myself going back to a regular Linux distribution ever again.

ameixaseca··on When Zig Is Safer and Faster Than Rust
A few notes:

1) Lack of a garbage collector does not make your program faster, it makes the performance more easily predictable in terms of latency.

It also makes it more friendly for memory bandwidth, CPU cache and to overall memory usage, which in turn results in better performance in real-case scenarios vs synthetic/toy benchmarks. This is particularly noticeable in constrained environments (like embedded systems).

2) Zig was never about memory safety, and it is not a memory-safe language.

It might have better plumbing than C, it might add better way to implement and abstract concepts.. but so does C++, for instance.

The more striking differences between C++ and Zig, IMHO, are syntax and the ability to use the same language instead of a separate one to do meta-programming (templates vs comptime).

3) Aliasing enforcement in Rust is there for a reason.

Two examples I quickly found on Zig's issue tracker:

* https://github.com/ziglang/zig/issues/3696

* https://github.com/ziglang/zig/issues/5973

ameixaseca··on EU-wide maximum limit of €10K for cash payments
Please read the article and avoid the spread of more misinformation. Donor names were NOT provided by the RCMP. The frozen accounts were holding funds that were donated:

> In a statement released Monday, the RCMP said it only provided banks with the names of convoy organizers and the owners of trucks who had refused to leave the protest area. The RCMP said it did not release an exhaustive list of every donation made.

> "At no time did we provide a list of donors to financial institutions," the statement said.

The only reports of accounts being indiscriminately frozen came from hearsay:

> Some Conservative MPs have said constituents have reported that their bank accounts were frozen after they made donations to the convoy protest through one of its crowdfunding campaigns.

Most of the reports were fictitious constituents that "lost bank account access to buy groceries". Nobody was able to independently confirm any of these claims.

ameixaseca··on The economics of Costco rotisserie chicken
How many chickens you raise on average? I wonder if scale would help bring the costs down (not down to $5, obviously).
ameixaseca··on Obsidian 1.0 – Personal knowledge base app
I installed Obsidian and did some initial testing, but two things completely threw me off:

1) Basic synchronization is a paid feature and you cannot (or at least could not) set up a private synchronization server.

2) Synchronization depends on the cloud. I simply cannot trust all important information of my life going to an unspecified location in the cloud for synchronization, even if it promises end-to-end encryption. The fact that the source is closed and it is a small company aggravates that immensely.

Which is why I'm using Trilium now. It's a bit more limited (no app) but has a web clipper extension and it is open source, so I can do changes or quick fixes if needed. I also synchronize with my own server, running behind a VPN.

For mobile, I'm pulling all tabs using adb and a couple of scripts, and it has been working nicely for my use case (mostly archival/planning).

ameixaseca··on Rust 1.64.0
Please note the programmer needs to implement "IntoFuture" and has full control on what and how it would be translated into a future. The example is implemented like this, but it does not have to be.

And yes, the example is not the best.

ameixaseca··on Building a Tiny Mutex
Please stop this madness of spinlocks in userspace.

They are inefficient and conceptually incorrect for the absolute majority of applications. If you are..

* not writing a kernel;

* not running your tasks with SCHED_FIFO and not running individual tasks pinned to individual cores;

.. then you should not even think about spinlocks. They will waste resources and perform very poorly.

Linus' rant [1] is not a rant but a detailed explanation of how real world process scheduling works, and should serve as a good reminder of what happens if you disregard basic computer science knowledge when writing software.

[1] https://www.realworldtech.com/forum/?threadid=189711&curpost...

ameixaseca··on The relationship between plant-based diet and risk of digestive system cancers
From the study:

> The vegetarian diets (12) include vegan (eats only plant-based foods but no red meat, poultry, fish, dairy or eggs), pesco-lacto-ovo-vegetarian (eats fish, dairy and eggs without red meat or poultry), lacto-ovo-vegetarian (eats dairy and eggs without red meat, poultry or fish), pesco-vegetarian (eats fish, but no red meat, poultry, dairy or eggs), ovo-vegetarian (eats eggs but no red meat, poultry, fish or dairy), lacto-vegetarian(eats dairy, but no red meat, poultry, fish or eggs) and semi vegetarian (eats dairy, eggs and some red meat, poultry and fish ≥1 time/month but only 1 time/week).

So plant-based diet also includes "eats eggs, dairy, some read meat, poultry, fish".

What's the conclusion?

> The correlation between vegan and other plant-based diets was compared using Z-tests, and the results showed no difference.

IOW: being a vegan or being an omnivore that eats some red meat has no difference in risk.

ameixaseca··on Ladybird: A new cross-platform browser project
Unless sibling is sideways (same level of the tree) and children is downward (one level closer to the leaves).

I haven't looked at the code but that's my first impression given the nomenclature.

ameixaseca··on Game Jam 2 Results
Not sure which lens you are using for coming to this conclusion. In my experience, most people writing Rust code have no "moral superiority" and treat Rust as a "better tool", not as a religion per se.

However, what I've seen in the discourse of several programmers that claim to prefer Zig is the assumption that Rust is "not really that big of a deal". There's a constant minimization of the advancements both the ownership system and the safety approach provide, and a lack of recognition for the fact that the language is a "game changer" in the industry.

Overall, this looks a lot like rationalization of an emotional choice, which for me is much more close to religious zealotry.

ameixaseca··on Saskatoon Freezing Deaths
Funny you said that. Slavery, for instance, was abolished in Canada ~30 years before the USA.

I guess it can go both ways.

ameixaseca··on Effect of cheese intake on cardiovascular diseases and cardiovascular biomarkers
> France kind of screwed up their idea of "healthy diet is crucial to longevity"

Actually, no; it screwed with the preconceived notion that fat and "fatty foods" are automatically unhealthy.

ameixaseca··on Ask HN: How much would you pay for a 50/50 chance to win $1B?
Less than $1B
ameixaseca··on Every Sufficiently Advanced Configuration Language Is Wrong
What do you mean by "state-oriented"?

Also: complex cases will likely result in complex code. Do you have a viable alternative for this?

ameixaseca··on Ford’s electric pickup can power a house for days
I can buy a tri-fuel 10/8kw+ generator for ~$1k, which can run all the standard stuff at home - and some extras, depending on fuel. How's a Powerwall competitive with that?

Sure, no seamless transition and a bit of light maintenance. It all depends on how many times per year you need it and for how long.

To be honest, I'd love to have a Powerwall - but with the huge cost difference it is unfortunately a no-no.

ameixaseca··on Ask HN: Learn C++11 or Rust in 2022?
FYI, the fact that you can do poor software engineering in safe Rust (or any memory-safe language) and still do not have memory safety issues completely disproves your statement.
ameixaseca··on Ask HN: I whant to Learn C++ not Rust!!
I've been programming in C++ for the past 15+ years, from some toy UI applications to things like a fully-featured software DSP for a telecom gateway.

I don't want to discourage you, and I think everything I did during this time was a good experience and taught me a lot. If you feel that's important for you, go ahead.

My point of view, which comes from my personal experience: even though Rust has some limitations, a number of areas for further development and a few rough edges for lower-level development, at this point in my career I don't want to touch C++ anymore unless I have no other choice.

Modern C++ is much better but it is not a paradigm shift (safe by default), the same way "labelled goto" (ie, C) is better than "numbered goto" (ie, BASIC) but it is still not a while/for.

You might reach a similar conclusion, or you might not. I just want to leave this here for you to reflect upon.

Regarding material, it all depends on the platform and what you would want to use C++ for. There are many references here already, so my advice goes to focus on C++ concepts and techniques and not too much on specific libraries - since they can be unavailable or impractical for certain environments/platforms.

ameixaseca··on College Was the Biggest Mistake of My Life
This is not an argument against college, this is an argument against how college works in the US.

There are universities - and I mean well-renowned universities - all across the globe where people can get a degree without necessarily having to go into an obscene amount of debt.

A degree may not be for everyone indeed, but we don't have to assume these issues have to necessarily be part of the process.

ameixaseca··on Five major Canadian banks mysteriously go offline in hours-long outage
BMO had issues with its Global Money Transfer. RBC had issues with its online banking system (and acknowledged it). Other banks seem to have had mostly no or only minor issues.

This is pure speculation based on anecdotal reports. Most of the reports started on twitter and the numbers - except for RBC - are negligible.

Check this link [1] from the article itself: it's clear that the numbers from RBC (3k+ reports) are the only ones that cannot be considered noise or a minor issue.

[1] https://t.co/NRjPWlG0GE

ameixaseca··on Case against OOP is understated, not overstated (2020)
Interesting collection of point of views.

A language like Erlang indeed seems to align more closely with the spirit of the OOP goals - especially regarding encapsulation and avoiding shared state.

I would argue one of the best implementations of OOP is found in OCaml, where a nominal type system lives side-by-side with a structural type system, the latter which is used for objects and classes [1]. You still can use shared/mutable state, but functional styles are usually preferred - including a pattern known as "functional objects" [2], which allows the use of OOP but avoids shared mutability and its associated shortcomings.

[1] https://en.wikipedia.org/wiki/Structural_type_system#Example

[2] https://ocaml.org/manual/objectexamples.html#s%3Afunctional-...

ameixaseca··on A viable solution for Python concurrency
Sorry, you're right - I missed that part. I had a few assumptions in mind that obviously break down with a bit of reasoning.

The algorithm from the paper you posted in another comment indeed looks more complicated than it needs to be and prone to bad performance.

Judging by the design, it appears they were trying to avoid the local thread to touch the shared counter in any circumstance on the hot path, but I wonder if it would not be much simpler for the owner thread to just check a flag set by the non-owner thread and perform the unbiasing/freeing right away without going through all the queuing mechanism.

ameixaseca··on A viable solution for Python concurrency
I couldn't find this in the design document but the only obvious solution is to track globals via the shared count. Since a global reference is part of all threads simultaneously, it cannot be treated as local.

If you follow this reasoning, the operations above result in local=0/shared=0 after the last assignment.

ameixaseca··on Transmission torrent client ported to C++
Cache-friendliness; applies to any platform.

And it's "optimize for size", by the way.

ameixaseca··on Kanye West AI in JavaScript (React and TFJS)
I would be interested in a more "fishy" mode.

For reference: https://www.youtube.com/watch?v=XPYgtVHa8NI https://www.youtube.com/watch?v=5FFGWYALAIg

ameixaseca··on Linus Torvalds: “GitHub creates useless garbage merges”
For anyone that haven't tried this yet, please have a look at 3-way merging. A number of tools support it, including simple ones like `meld`. I've been using it for a while and it has been a huge help on complicated merges.
ameixaseca··on The Winners of Remote Work
Yes but you also have a number of other issues to take into account: timezones, language barriers, cultural differences, ability of an engineer to get on a plane/car/train/boat and meet face-to-face in a reasonable amount of time, and so forth.

Remote work within borders is one thing, but remote work from different continents is an entirely different beast.

Not to mention the sheer difference in labour-related laws and conventions across the world and how little recourse you may have if - let's say - your employee decides to take your source code with them and resell. Or take the idea and start a product themselves. Or anything similar that you could very easily sue locally. How much trouble would you go to sue? Translate and certificate every document? Comply with local laws regarding representation? Can you even sue?

You may think these are extreme examples, and yes it all tends to work out in general, but even with local employees people sometimes get burn so you need to take these into account when jumping into something uncertain. It's becoming more common for sure but there are risks and they are not null.

ameixaseca··on French Appeal Court affirms decision that copyright claims on GPL are invalid
A number of US states did not ratify some constitutional amendments and they still entered in effect. Minimum requirement is two-thirds of the states not unanimity.

I meant "political" in the sense of "it's a gesture designed to cause some political effect or to be used in the future for political negotiations" - maybe not the best word but couldn't think of a better one when writing that.

← PreviousPage 2 of 4Next →