HNHacker News
TopNewBestAskShowJobs

ameixaseca

261 karma · joined June 7, 2018

submissionscomments
ameixaseca··on French Appeal Court affirms decision that copyright claims on GPL are invalid
You are talking about GPLv3, of course.

In any case, this was posted along the discussion here, and you might find it interesting: https://www.gnu.org/licenses/translations.en.html

ameixaseca··on French Appeal Court affirms decision that copyright claims on GPL are invalid
It was a single province, which at the time had around a third of the population indeed.

Their signature was not required for the constitution to enter in effect. It was desired (it still is) but since the refusal was (and still is) mostly political, it is not regarded as a major impediment.

Keep in mind two-thirds is a qualified majority.

ameixaseca··on French Appeal Court affirms decision that copyright claims on GPL are invalid
Not sure if naïveté or innocence, but I think you are overestimating the GPL efforts by a lot.

RMS may not be a fool but he is still American (and not a lawyer). I don't think he was focused in solving licensing/copyright issues in the rest of the world in the early 90s - and even late efforts for GPLv3 didn't change it that much.

ameixaseca··on Friendship ended with the garbage collector
You can implement a linked list in safe Rust (even a doubly linked list if your prefer), there are a number of examples available if you google for it - for instance:

https://gist.github.com/matey-jack/3e19b6370c6f7036a9119b79a...

In fact, the Rust book explicitly mentions doubly linked lists when discussing Pin:

https://doc.rust-lang.org/std/pin/index.html#example-intrusi...

The ownership system might make it less trivial to implement, but the statement that you cannot implement it in safe Rust is incorrect regardless.

ameixaseca··on The “bugs are 100x more expensive to fix in production” study might not exist
Bugs are infinitely more expensive to fix in production. The best example is 737 Max - how do you quantify monetarily the lost lives? The reputation damage? The lawsuits? The future contracts that were lost?

But you don't have to go to that extreme. For instance, I just heard today of a lost contract from a coworker: the client was fed up with a call management system that was dropping calls like crazy and nobody was able to fix since you could not even replicate the system (the last time they tried it, the test system pulled stuff from the production db and it basically brought everything down).

How do you calculate the cost of this? Cost of debugging, lost revenue, lost referrals, brand damage, and the toll on developers and everyone doing crisis management.. I'd say 100x is a very optimistic estimate. It can very well cost much more than that.

Trivial bugs are trivial bugs, and not all the bugs are the same. A misaligned table is nothing compared to a monolith/blob of 50Mb (either a binary compiled from C or minified JavaScript) that crashes with "segfault" or "undefined" but runs fine in debug mode.

Bottom line: bugs in production, especially on complex systems, can be very hard to identify and fix - and sometimes can cost you your business.

ameixaseca··on Schizophrenia linked to marijuana use disorder is on the rise, study finds
Anything can be a trigger, including alcohol:

"Researchers have mostly studied the effects of cannabis and nicotine on people with schizophrenia. But they’ve also found that other things that alter your nervous system and mood (called psychoactive substances), like alcohol, can trigger first-time psychosis."

Source: https://www.webmd.com/schizophrenia/features/alcohol-schizop...

IOW, if you have predisposition to schizophrenia (family history, previous psychotic episodes), you should avoid mind-altering substances.

Edit: word

ameixaseca··on Tokio-uring: io-uring support for Tokio
Check the article from Scylla again: it's 5% difference between linux-aio vs io-uring, and 42% between sync vs io-uring.

Tokio benchmarked io-uring vs epoll with synchronous I/O, so "up to 60%" is within the expectations.

ameixaseca··on Golang: Know Your 'Nil'
> Have we learned nothing?

I suppose not, if you are considering "we" as "the set of people that designed languages like Go or justify the design decisions made by such group".

If you are considering "we" as humanity, in general, I'd say that no, "we" actually learned a lot and "we" already know better. But you still have some building rockets to try to prove the earth is flat, unfortunately.

ameixaseca··on Drop millions of allocations by using a linked list (2015)
I mentioned 3 points, you addressed one for a very specific scenario. In any case, even if you say your list has adjacent elements, the other two points still apply.

I don't know why you keep bringing this algorithm to the discussion, everything that was mentioned applies to any linked list. It's a fundamental property of linked lists, period.

Seems like you're completely missing the point: the discussion started on performance properties of data structures. That's what's being pointed out, and it's going to be a fact regardless of how you want to apply it.

ameixaseca··on Drop millions of allocations by using a linked list (2015)
Everything you mentioned can be done with statically allocated arrays - if you have known bounds - or lists of large arrays, as mentioned before.

Lists will eventually become a problem since your next/prev pointers may not be pointing to adjacent memory positions, now your linear iteration over elements will not be cache friendly. Not only that but you need to retrieve pointers and dereference them, more pressure and worse for the cache again. You also add a "load" dependency between all elements so you can't easily break processing between multiple cores.

Lists may be conceptually elegant but they are not the most suited for performance or efficiency.

ameixaseca··on 2020 at OCamlPro
Since when is a complement a replacement?
ameixaseca··on 2020 at OCamlPro
Rust is not mentioned as a replacement but as a complement to OCaml in the article.
ameixaseca··on Software engineering topics I changed my mind on
About the first point, remember you might have to maintain or refactor code you wrote 5-10 years ago. You will have a different experience level from your past self and likely won't remember why you did a number of architectural decisions.

IOW: typed languages are better, period.

ameixaseca··on CAPTCHAs don’t prove you’re human – they prove you’re American (2017)
I think he already knows the answer, since googling this exact expression gives a very clear response. It looks more like an exclamation of "this doesn't mean anything to me", which I understand and partially share as well.
ameixaseca··on Rust 1.48
I don't want this to sound like a criticism, but I would like to understand your point of view: do you really consider this a reason for choosing a language over any other?

Even if you had to use notepad to program - or had very basic syntax highlighting - wouldn't be what the language provides a more compelling point to make these choices?

ameixaseca··on Memory safe ‘curl’ for a more secure internet
I like how the comment referenced in the article with the description "Rust itself can't even properly clean up its own memory" was answered today saying the restriction of unwinding on oom is going away; it's not a fundamental issue, just something that wasn't implemented that way the first time.
ameixaseca··on Vitamin D, part 2: Shannon's story
Five years taking 5000 UI daily. This goes on to show that short-term usage is likely a benefit.
ameixaseca··on Deschooling Society (1970)
It doesn't look like he is criticizing welfare per se, but the fact that the welfare system is built in a way to punish the poor even more. Or even the health system, which treats the poor but puts them in huge debt. The critique seems to be on the institutions that only serve the present structures of power.

To be honest, it's hard to disagree with him on this, even being in favour of welfare and/or socialized healthcare systems.

ameixaseca··on Trump suspends H1B, H4 visas till year end
This is what Google has to say about "H1B minimum salary":

"The H 1B also requires that the H-1B employer pay the H-1B employee the prevailing wage or the actual wage, whichever is higher. The prevailing wage is the salary paid to workers in similar occupations in the geographic area of the intended employment. The actual wage is the wage that the employer pays employees in similar occupations at the location of the intended employment.. Since the procedures and record keeping required for the H-1B are complex, an attorney or other trained person will be necessary to complete the paperwork."

https://internationaloffice.berkeley.edu/h-1b_faqs

ameixaseca··on The Next Step for Generics
Which code is not meant to be correct?
ameixaseca··on New MacBook Air
I've been buying Asus for some time and have nothing to complain: very good laptops, twice the specs of a Macbook for half of the price and with the choice of AMD processors.

Apple has a strong name in North America, but I find that to be mostly based on a perceived image, rooted more in a distant past (or on pure marketing) than in reality. I understand when this happens with the general public but it puzzles me when technical people buy into this.

ameixaseca··on Programming trick questions
Interview questions should be trivial examples so you can see if the candidate know what programming is or how to program on the language, not what libraries he/she knows. Ideally nothing that depends on any particular OS std libraries as well. Of course this does not apply if you are hiring someone for a position where knowledge on a particular library is a requirement, but in my experience that is usually not the case for either junior nor senior positions, maybe only for in-between.

If you need anything more advanced you should do an assignment to allow time for proper design and reasoning, otherwise you'll never be able to fully evaluate what the candidate really can do and how he/she approaches problems.

ameixaseca··on Multicore OCaml: Feb 2020 update
Please see [1]. Around 28:45 the talk moves to effect types. At around 29:25 the proposed mechanism (with throw) is literally described as "checked exceptions".

AFAIK, this is all part of the roadmap.

[1] https://www.janestreet.com/tech-talks/effective-programming/

ameixaseca··on TOML for Modern C++
Low level programmers dislike exceptions because cost, high level (and some low level) programmers dislike exceptions because they make any reasoning about behaviour, resource leaking, etc impossible without looking at the full code, and even then the analysis is exponentially more difficult.

This all applies regardless of the C++ standard, of course.

ameixaseca··on The missing semester of CS education
Metaprogramming has an actual meaning and it means something completely different from what it is used for on this website:

"Metaprogramming is a programming technique in which computer programs have the ability to treat other programs as their data." [1]

i.e.: it's a programming technique and not something related to any process related to building code.

I understand the idea of giving some more practical side of using computers in a "missing semester", but please pay attention to the nomenclature. It can be really confusing for someone studying CS that does not yet grasp the concepts that well.

[1] https://en.wikipedia.org/wiki/Metaprogramming

ameixaseca··on Alpine makes Python Docker builds slower, and images larger
This post is actually reversing cause and effect: Python wheels are slower on anything that is not glibc or x86(-64). There's nothing wrong from Alpine side or anything that is not x86(-64) but with the mechanism used by Python.

This is a problem I have with Python: everything is assumed to be a standard GNU/Linux/desktop environment, you are assumed to always have to have the latest versions of everything (or to have "up to" a certain version, which then breaks everything else that relies on the latest), and all becomes sub-optimal if you deviate a bit from the expectations.

Now this is fine for some people but you can't blame the ones that have different environments. This is why most people doing actual embedded cringe when someone suggests using Python, because the experience is not usually pleasant.

ameixaseca··on Building all of our new mobile apps using React Native
React Native sounds like a mistimed bet now. Maybe 3-4 years ago, but at this time? There are a number of better alternatives.

I spent some time working on a RN project, and even though the whole idea of declarative interface, state update, etc is interesting, it is not exclusive of RN - and there is the whole rest of the story: RN libraries are a mess and usually buggy, there is virtually very little compatibility between native and web, and.. have anyone ever tried updating a RN codebase?

I remember we had to recreate the full project and copy the files manually because everything was broken beyond any hope, this after spending a full week trying to fix the build.

For Shopify seem that even a PWA could fit, and would be much more compatible, reliable, etc.

By the way, one of their justification is "in-house know-how", which I heard so many times before... This is usually how you justify crappy decisions by using inferior technology and then spending 2x the effort to try to fix it. I hope it doesn't happen with them, but it does like like that's the way they are heading to.

ameixaseca··on Ask HN: How to implement “office hours” as a software engineer?
Had the same problem. Not just me, all sw engineers, but it was more of a problem for the ones that actually were working on bigger projects involving a lot of coding.

A coworker tried using an availability light but.. good luck trying to get people to respect it. Either people will miss it, forget it, or ignore it (specially if they are above you on the org chart).

I tried mufflers a few times, but it didn't work that well. Same issue as availability light, plus the fact that everyone looks weirdly at you and initiate conversations when you have the mufflers on..

So what I did was push working from home more and more until I went to working 1-2 days from the office per week. Now I have a much better productivity, ability to focus throughout the day, etc, besides all the advantages of not having to commute 5 days per week.

ameixaseca··on Drinking 1% rather than 2% milk accounts for 4.5 years of less aging in adults
Just opened the study and read a bit about the methods and I wonder why they didn't include people that do not drink milk so the telomere lengths could be compared.

We cannot know if milk (in general or 1%) is causing aging or protecting against it, cases which point for very different conclusions.

This table also has something interesting that corroborates with this idea:

https://new.hindawi.com/journals/omcl/2019/1574021/tab4/

Note how the ones that rarely drink any milk have the same telomere lengths, same as the ones that drink full fat or 2% milk. SE is also so big for 1% and non-fat on the "rarely" row that telomere lengths can be considered to be the same for all the columns (on this row).

It makes me wonder if it's the milk or if there is any other covariable that is playing a role here. In fact, they themselves cite this in the study ("Discussion" section):

"However, it is possible that other dietary differences account for some of the biological aging differences among the milk fat categories."

Therefore, I'd take this study with a grain of salt. If anything can be concluded by these numbers is that 1% milk may be protective, not that full-fat milk promotes aging.

ameixaseca··on Deepl Translator
This is my preferred translator when the translation does not involve English (for instance, German to French or Portuguese). Google is generally not very good in these cases and it tends to be pretty terrible (ie, wrong) in general.
← PreviousPage 3 of 4Next →