HNHacker News
TopNewBestAskShowJobs

molyss

814 karma · joined November 5, 2013

submissionscomments
molyss··on Log4j 2.16: Certain strings can cause infinite recursion
You didn’t move the IF. you literally removed it.

If (a) DoExpensiveStuff());

Becomes

When modifyA() RecompileIfWithNewAValue();

As long as you call the initial if more often than you modify (a), you’re fine (and the JVM was able to see that you called your if 10k times without modifying the value of (a) even once)

molyss··on Autism affects the microbiome, not the other way around
those 3 links are effectively from a single source, Dr Natasha Campbell-McBride, who hasn't practiced as an MD for what looks like 20 years. She makes a living out of that miracle diet. She's anti-vax and hasn't published any research about GAPS.

I think her whole scheme is dangerous and would recommend everyone who's considering this diet to look at the negative press around the diet and its proponent. You'll have to look pretty deep into google results to find those, but they're there. I'm not linking them because I'm not qualified to judge their quality besides superficially.

molyss··on FDA wants 55 years to process FOIA request over vaccine data
They approved the vaccine. The general expectation is that they released the approval after reading relevant information. They have 329,000 pages of information, so it can only go 2 ways : They either had enough people to already go through those documents, analyse them and conclude the vaccine was safe in about a month. In which case, they could reallocate those people for a month to redact said documents. The alternative being that they reviewed a small portion of said documents, which would render their argument completely moot, since they would only need to release the documents they actually used during their decision

I would expect the redaction to be way less involved than their review and analysis.

Worst case, they could hire the same number of people for a month to do nothing but redact those documents. In the unlikely case their whole agency was busy reading and analyzing all 329k documents, and redactors would be paid on average the same amount as the average FDA employee, it would cost the FDA 10% of its annual 2020 HR budget, which would be $600M, or $2,000 per page, which sounds absolutely ludicrous.

on the other hand, it seems general population vaccination should be at the top of their priorities. Releasing those documents should only help them fulfilling that goal. So they should invest in said release.

No matter how you're looking at it, "shenanigans" seems to be the most appropriate term here.

molyss··on ACLU Comment on FBI Raid of Project Veritas Founder
I couldn’t find any info about that leak of veritas’ privileged info. Any sources? I looked at the NYT’s article and everything seemed to come from veritas themselves…
molyss··on Show HN: Cedille, the largest French language model, released in open source
which looks like a grammatical error "Moi, la mer, elle m'a pris" should have been "prise" if the narrator were a woman.

And even in the generated sentence, some verbs imply a male narrator (emporté and ramené)

molyss··on Lawrence Livermore claims a milestone in laser fusion
While everyone is focusing on the picosend part of this, I’m more impressed by the neutron detection. Electrically charged particles sound much easier to detect, let alone with any kind of temporal precision
molyss··on Show HN: SQLite-S3-query – Python function to query a SQLite database on S3
Looks pretty similar to https://github.com/phiresky/sql.js-httpvfs My first instinct is to wonder why not giving them credit, but maybe you’d never heard of it before…
molyss··on Zillow, Other Tech Firms Are in an ‘Arms Race’ to Buy Up American Homes
I have come to see house flipping as a horrendous scam that kills the economy and is all but sustainable. And real estate agent are complicit and making the problem worse because it’s making them money

One of my accountances is a professional house flipper. They claim to regularly make over 100k of profit on a single house in less that 3 months. Keep in mind they contract out all the manual labour.

The 1st step is obviously to find a house, preferably before it hits the market. Then, contact the seller’s agent and promise them that if they sell you the house for a good price you’ll go through them when you sell the house after having flipped it. At this point, the agent’s incentive is disconnected from the seller’s: If they can convince to sell off market, they’ll sell quicker, make the commission on a lower price but expects to make a much higher commission on the 2nd sale than what the 1st one would have fetched. The seller gets fucked.

Then, the flipper finds the cheapest contractor with immediate availability. cheap+available is usually a bad sign in term of quality. They have them do the minimal work to make the house “look good”. No deep electricity, certainly no plumbing, rooftop or foundations.

After a couple of months. Put on the market. At this point, you want to put it on the market at (original price paid+original agent’s fees+second sale agent’s fees+remodel cost+your sizeable margin) that ends up easily increasing the original pricd by 30%, sometimes more.

The buyer gets fucked too because they pay extra for shitty work. They’ll have to do more work on the house, both short term and long term.

But the ones who get really fucked are the other potential buyers : it’s super hard to find a house that wasn’t flipped, prices go up because everyone wants whatever the neighbors house got sold for, there’s even less contractors available

I’m convince flippers have a negative impact on society at large.

molyss··on 'Miraculous' mosquito hack cuts dengue by 77%
Looks like it’s also an interesting area of research for malaria control.

Both diseases are transmitted by mosquito bites. Malaria is a parasite while dengue is a virus. There seem to be twice as many dengue infection a year than malaria cases, but 10x more death from malaria than from dengue.

The fact that the « hack » transmits through generation is pretty amazing too

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6237385/

molyss··on GitHub repository for Sedgewick's Algorithms is taken down
When someone “swears under the penalty of perjury” something that is inaccurate, and the legal system does make it simple to apply that penalty, there’s something wrong with the legal system.
molyss··on Lost 72 hours worth of research data to forced update
If you have enough ram to keep the current state of your computation, you probably have enough disk to push it to, several times over (for obvious reasons, you should never overwrite your latest snapshot with the most current data). If your computation was on a self-managed windows version, you definitely have enough disk.
molyss··on Wix and Their Dirty Tricks
I don't understand how the inability to export data complies with GDPR. If a EU citizen decides to use wix and creates a site there, aren't they entitled to all of the data they created, and then one should be able to do anything with that data, including converting it to wordpress data ? What am I missing ?

The only GDPR related FAQ I could find is mostly focused of wix's customer's customers (IE the site's visitors) getting access to their data, but there's nothing about Wix's customers accessing their data...

molyss··on Lucid Motors agrees to go public with $24B valuation
you mean versus having a product that loses money ?

Uber was losing between $1B and $5B a quarter when they IPO'd. In the last quarter of 2020, Uber lost close to $1B, and they're still valued at $108B, with no real long term plan for survivability. The way I see it, risks include legislative changes WRT driver status, bad press, self driving cars, a post pandemic world where more people own a car, and less people are in cities. And we're talking about a company that is primarily marketing and software, where the wind can change very quickly, and assets are mostly intangible and untransferable.

car manufacturing is much harder to get into, so having a factory and an almost-complete design is already a huge milestone. Obviously, they'll need to sell _some_ cars, but they could even make money if they were to sell cars at a loss, through carbon credits.

molyss··on Lucid Motors agrees to go public with $24B valuation
I'm having a hard time understanding why investing later would be more expensive than investing now.

Unless you're taking into account the opportunity cost, I would expect the cost of investing in an electric infrastructure to be lower once the kinks have been worked out by early adopters.

On top of having a brand new set of expertise to shop for, the traditional automakers also will have to modify their existing factories. They'll have to do that eventually, but there might be some massive cost associated with adapting factories to the wrong tech.

molyss··on What If OpenDocument Used SQLite? (2014)
Does that still apply if the DB is in WAL mode ? according to https://www.sqlite.org/fileformat2.html I'd say "no", because it sounds like the journal file might be necessary if the DB dies unexpectedly
molyss··on Ross Intelligence is shutting down after lawsuit from Thomson Reuters
As a non lawyer, what really gets me annoyed is the fact that lawyers never seemed to be punished for bringing totally frivolous claims. Rarely do the plaintiffs, but I don't think the lawyers ever do. I think that would push said lawyers to make sure they have the full info before they actually take a case to court, and in tern reduce the number of frivolous litigation and the cost on the public system.

I have personally been sued frivolously. After 6 months of stress during which the plaintiff decided to fire a lawyer and started to harass my attorney and expect them to spend time explaining the law (time for which I eventually was billed), we decided to settle. The plaintiff was supposed to pay me $6000, but decided to reduce that amount to roughly half. I just didn't have any energy to go to small claims court arguing that she still owed me the rest of it.

Had their initial lawyer been on the hook for a frivolous lawsuit, the whole thing would probably have never happened. Rather than getting all of the info, they were more than happy to only get one side of the story (truncated email threads, not preparing them to answer to a discovery packet and so on) and to get their money, only to find a way to bailed once they realized it was not going to be worth it.

Another thing that I found absurd is the fact that "reasonable attorney fee" doesn't seem to cover more than half the reasonable fees. My lawyer suggested filing motions to compel and/or motions for sanctions, but also warned me that it would cost me more than what the judge would award me for the fees. And of course, nothing for my time...

molyss··on Pennsylvania Election Officially Contested
What stops any heavily democratic state file a similar lawsuit against Texas and a few other "swing states" that voted republican ? (I'm putting swing states in quotes because I think the meaning of the words changes depending on who you ask.)

It seems to me that at least 2 points raised in the lawsuit, while they might be technically valid, were also used by various local governments in Texas (non-legislative bodies amending election laws, favoring the party of the local government's party).

The 3rd point could easily be argued the other way around, given the global lack of evidence for election mishandling on all states.

The real problem here is that attorneys don't get punished for bringing frivolous lawsuits, even though they have a significant cost to society. I think that's a massive issue with the US judiciary system. In this case, qualified immunity would probably protect the AG of Texas from being personally liable, which is another issue with the current system IMO.

molyss··on SQLite now allows multiple recursive SELECT statements in a single recursive CTE
The thread is here : https://fossil-scm.org/forum/forumpost/bacf8cf88c?t=h&unf
molyss··on Toward an API for the Real Numbers
I was replying to the sqrt and log of negative numbers. For undefined functions, I'd throw an exception
molyss··on Toward an API for the Real Numbers
I think the intended simplification is : (sin⁻¹(cos⁻¹(tan⁻¹(tan(cos(sin(9))))))−9)⁻¹ -> (sin⁻¹(cos⁻¹(cos(sin(9))))−9)⁻¹ -> (sin⁻¹(sin(9))−9)⁻¹ -> (9−9)⁻¹ -> 0⁻¹ -> 1/0
molyss··on Toward an API for the Real Numbers
you can just represent those as a pair of real numbers, one for the real part, and one for the imaginary part. As long as you only (recursively) apply exponential and trig functions on those numbers, I believe you'll stay within the realm of complex numbers.
molyss··on Roughly 2000 blogs running on a $7/month dyno
Dunning-Krueger effect maybe ?

Seriously, there’s been literally hundreds of blog-hosting websites. If you really thought none of them were backed by a DB, I’m not sure what to say. It’s not like “optimizing DB calls” is an original idea. It’s probably something 50% of all software engineers have spent some time on. Whether one works for google, facebook, amazon, apple or microsoft, I can guarantee you that if they’ve been on the job for long enough, at some point in their career they had to “optimize expensive calls”

Now, I don’t want to just be an asshole. I think it’s really cool to start something from scratch and push it out there. I, for one, never really got myself to do it. And I think the grit is harder to acquire than the technical skills. Just be careful of not overestimating your real skills, it can be a great turn-off for any half-competent professional who might be considering joining you in a future venture

molyss··on The EmDrive just won't die
I have a similar question. How can a system be truly closed ? It’s always interacting with the stars and galaxies through their gravitational fields. Similarly, and closer to your question) the spent energy can only be Generated through a chemical or nuclear reaction (both of which should lead to a loss of mass, which will be impacted by the gravitational fields, making it a non-closed system), or by gathering energy from outside The system (solar panels or other technologies), thus making it a non-closed system

What am I missing here ?

molyss··on Be wary of functions which take several parameters of the same type
While it's not a perfect example or solution, this illustrate a fairly common issue with modern code. He also mentions too many parameters. Other commonly frown upon constructs include unclear names (java "filter" or "compareTo" easily come to mind), boolean parameters (One should use named enums instead). Some add to the list out parameters (passing a to-be-modified list as a parameter), functions returning their modified input parameter, even though they certainly have their usefulness (like being able to handle memory management outside of the callee). I'd personally like to add String parameters to the list, but modern language make such restrictions often too cumbersome.

I the given example, I'd love to see a language with optional named parameters. For the function copy(String fromFileName, String toFileName), instead of calling copy (file!, file2), one would have the possibility of calling copy(from:file1, to:file2)

molyss··on A high-speed network driver written in C, Rust, Go, C#, Java
That's a very interesting experiment in many levels. Haven't taken the time to look at the paper yet, but I'm curious of how you got your number of pps vs Gb/s in the README :

"full bidirectional load at 20 Gbit/s with 64 byte packets (29.76 Mpps)". sounds like 20Gb/s should be closer to 40Mpps than to 30Mpps. Did you hit CPU limits on the packet generator, or am I missing some packet header overhead ?

Did you try bigger that 64-byte packets ? I'm curious how various runtimes would handle that.

And how long did you run the benchmarks ? I couldn't really figure it out from the github or the paper. Mostly wondering if java and other Gc'd language showed improvement or degradation over time. I could see the JITs kicking in, but I could also see the GCs causing latency spikes.

molyss··on A predicted superconductor might work at a record-breaking 200° Celsius
And that attitude is in my opinion what will increasingly get in the way of science being disregarded
molyss··on A predicted superconductor might work at a record-breaking 200° Celsius
Can we please change the meaning of “high temp superconductors” to “material that start being super conductors and high temperature and low pressures” ? Everyone agrees that these records don’t mean anything in term of direct applications. I agree that they give us a way to check our theoretical models, which might help getting to usable stuff, but all the “record shattering” language is really not making science look very smart IMO.
molyss··on A predicted superconductor might work at a record-breaking 200° Celsius
I think it’s literally tightening a few bolts : https://en.m.wikipedia.org/wiki/Diamond_anvil_cell
molyss··on Pronunciations for hexadecimal numbers (1968)
I think you’re missing the point. Soixante-dix becomes 6A, since 6x is « soixante » and A is « dix » Then, 7x becomes septante. For example, 7A becomes septante-dix
molyss··on Pronunciations for hexadecimal numbers (1968)
A=ten, 10=onety, 11=onety-one, 1A=onety-ten, etc ?

Edit: Or as suggested in the original link, A=Ten, 10=annty, 11=annty-one and 1A=annty-ten

← PreviousPage 2 of 4Next →