HNHacker News
TopNewBestAskShowJobs

pierrebai

1,310 karma · joined October 13, 2011

submissionscomments
pierrebai··on “P = NP” Polynomial-Sized LP Models for Hard Cops
The problem with the challenge is that one must provides a solution to the problem along with the problem. IOW, you must have a solver that can solve your input problem.

Their challenge is a weaker equivalent to: there is a problem that have two types of example: solvable and unsolvable. Their claim is that their program can solve all, including unsolvable! To disprove our claim, provide an input that is unsolvable, along with its solution, and show that we do not find the given solution. The catch is, a problem that is not solvable has by definition, no solution.

In their case, the issue is not that the problem to be submitted has no solution, but that its solution is NP-hard to find. They are basically asking submitters to first find a solver for a NP-hard problem.

pierrebai··on Frost Flowers on the Windows (1899)
Yes: Pareidolia: https://en.wikipedia.org/wiki/Pareidolia
pierrebai··on An AI lawyer was set to argue in court – real lawyers shut it down
Another instance of the irreconcilable dichotomy of: "no one shall ignore the law" and "only lawyers can understand the law".
pierrebai··on Tell HN: From $200/mo to $18k in 5 years as solo founder
Congratulations!

Things I've noticed: no way to get back to nocodeapi landing page once logged in.

I am surprised that the list of big-names you give on your landing page rely on this because all users of nocodeapi have to trust you with their security tokens and API tokens. We have to trust the are properly encrypted, that no one could decrypt and use them... I would have thought most companies legal coding guidelines would prevent them from trusting a 3rd party with such tokens.

pierrebai··on The Mystery of Richard Posner
Reading about his thoughts and opinions, it really makes it seems as if Posner only cared about his own opinion about matters, and not the actual laws.

> As for text, Posner had little compunction about slipping around it. He took a dim view of laws and legislatures. Statutes, he believed, are generally indeterminate, contradictory, and even counterproductive. They’re “written in haste by busy people who often are neither able nor conscientious.”

pierrebai··on Noulith: A new programming language by the current Advent of Code leader
You are merely very hung up on nomenclature. They had to choose a keyword, they chose const. It's very common: people have mental models and pre-conception about what word means. From that point, when in a specific context where their innate expectation are not met, they can have one of two reactions: adapt to the specific meaning in that specific context (mental flexibility) or reject and rant that things are wrong (mental rigidity).

Different people will have different breaking points about when things have been stretched too far, meaning they are not willing to compromise on. Working with people who have not the same level of flexibility or rigidity or differ in different contexts can be a day-to-day pain.

pierrebai··on Noulith: A new programming language by the current Advent of Code leader
The problem, as far as AoC is concerned, is that Lisp tend to produce lisp-like DSL, so won't match AoC specs. Then again AoC specs are simple enough that you can still get away with using Lisp.

Obviously, the OP targeted their language for AoC because, come on, whoever would want to have the ability to swap the precedence and meaning of operators? That would be a fresh hell that would make early-90s abuse of operator overloading in C++ seem like a joyful time.

pierrebai··on Alpha. Bravo. Cyrillic
The flaw in your argument is the implied presumption that Latin preserve all information for languages that have always used the Latin alphabet.

For some language it is closer to truth, like Spanish and German, which mostly are pronounced like they are written

English and French, identical spelling represent varying sounds. English example: lose, rose, tone,... all different "o" sounds, yet they all use the same written "o".

The point about Cyrillic having more letters is also misguided: you can make sounds with letter combinations. French has dozens and dozens of letter combos for various sounds, let just list a small subset: au, eau, eu, ou, ui, oi, euil, ouil, un, an, in, en, oui, ui, sh, ch, cl, cr, tr, ....

pierrebai··on The Roof Always Caves In: Why there is nothing wrong with being doomed
I'm going to be a contrarian here, but I felt really annoyed reading this piece about an extremely privileged person, living in a privileged country, with an expensive education, holding a prestigious job at a famous journal listing her woes, while exposing how high-cultured she is by name dropping Kierkegaard, de Beauvoir and de Toqueville... meanwhile people freeze in Ukraine [1] and get killed and raped in their own home in Port-au-Prince [2].

Yes, you can accuse me of what-about-ism. I still think and have always thought that while one's very allowed to gaze back at themselves, it is better done in private or amongst friends. Doing so in public never elegant, IMO.

[1] https://www.bbc.com/news/world-europe-63868158 [2] https://www.bbc.com/news/world-latin-america-63707429

pierrebai··on Why hasn’t Sam Bankman-Fried been arrested yet?
Spending your customer deposit that are legally off-limits, and that he said were off-limit, on things like houses, properties, etc for your own self and family is not a straight-up admission of wrong doing?

Since when breaking and entering a looting a house can be defended with "well, I thought all was fine"?

He admitted numerous times doing things that are straight up illegal.

pierrebai··on Optimizations can have unexpectedly large effects when combined with caches
So.... they could have mostly fixed it by increasing the cache timeout?

No code changes, just increase the timeout. The real lesson is to really know your system and how it behaves. They ran a profiler, but in the call stack they did not see the computation was triggered by a cache miss...

pierrebai··on Resolving the great undo-redo quandary
This doesn't solve the problem of wanting to redo from another "do history branch" while preserving the changes you've done in your current history branch. Using the notation of the article, you have done:

A -> B -> C -> rewound to B -> D -> E

Now at that E point, you'd want to have C too. (I'm assumikng there is no conflict between C and E.) There is no point in the linear history where you have both E and C. Sure you can go back to C, or go back to E. Or go back to C then decide to go back to E again. But you can't have both.

In vim, I use the fact that the yank buffers are not part of the undo/redo history, only changes to the file are. So I undo to the point I had the change I want back, yank them in a named buffer, redo and put the yanked buffer. You cannot go to an alternate history, but at least you can get back stuff you've deleted.

In git, what I describe is pretty-close to cherry-pick from a commit in a branch you deleted that you find using the ref-log.

pierrebai··on Idiot Proof Git
Squash commit will squash everything done into a single commit, so reverting it is easier.

Also when you have to cherry-pick fixes into an older release branch, you get to fully appreciate squashed merges. If you did not squash, you need to cherry-pick all commits from the merge. If the feature branch was not rebased and the dev merged main into the feature branch multiple times, then the branch commits are inter-mingled with main commits and it is so easy to mess up the cherry-picking. Just imagine if the dev had to fix conflicts...

All that makes squash commit a time-saver.

pierrebai··on Idiot Proof Git
I fail to see what anything you state has to do with rebasing.

Rebasing ensures all commits from a feature branch are contiguous. Rebasing + squash ensures the main branch is not polluted with a myriad of useless intermediate commits no one is interested in. It also allows combining multiple commit message into a more coherent explanation of what changed instead of multiple tid-bits.

pierrebai··on Lisp as the Maxwell’s Equations of Software (2012)
Syntax and layout ware worth yet a few more orders of magnitude of words. But that argument has slipped past LISPers forever. I'll just let them keep scratching their heads why Python got so popular when LISP was around for so long and is /clearly/ superior.
pierrebai··on In 2021, FTX had a funding round of $420.69M
You're saying this as if VC were some natural phenomenon and not people. VC are people, VC i one of those things that are mostly only people. Those people choose to use financial vehicules and strategies that are not ethical.
pierrebai··on Is Turbopack really 10x faster than Vite?
You are claiming that if your product A does not have feature X that could make it faster, it is okay to claim that your product A is faster than product B by hampering B under the impediment of not using X?

"My database A is is faster than B! (When B is not using indexes, because my database A does not have indexes, so it would be unfair to let B uses indexes..." is the equivalent here.

pierrebai··on Our conscious experience of the world is a memory, says new theory
I don't know how they reconcile this theory with everyday activities.

When I'm reading, my eyes movement scanning the page must be in sync with my perception and reading or the words. I'm not reading words that my eyes scanned half a second ago. Otherwise I'd be "reading" the last word of a line when my eyes are already at the start of the next line?

To take another example, when I'm cooking, my hands movement are certainly in real-time sync with what is happening at that very moment in the real world, otherwise I'd have few remaining fingers after cutting a few vegetables.

I'm no claiming that perception is instantaneous, but clearly we do many activities successfully that implicitly require perceptions to be near real-time.

If the theory is correct but the timing difference is small enough that these objection go away, then I feel the theory is just a change of nomenclature. What they call memory is just the perception delay.

pierrebai··on FaCT: Constant Time Programming Language
I do wonder if it is possible to truly be certain code runs in constant-time. The problem is that modern CPU translate their instruction set into internal micro-code. For example, the x86 CMOVE instruction (conditional move) could potentially become a branching path once translated to microcode. There are other instructions like multiplication or division that may end-up having different run time depending on input.
pierrebai··on A database without dynamic memory allocation
I don't get your characterization. The statically sized arrays can never be fully used? That is doubtful. I suppose that if data X and only ever used 1:1 with data Y and you got a Y, then you are guaranteed to have an X, but that requires complete static analysis of the code base and certainty that no future code change will ever affect that 1:1 relationship. That seems fragile.

I mean it's not like memory exhaustion is a common occurrence nowadays. These kind of compromises, where one trades an almost non-existent failure mode for a fragile assumption-ridden code base does not sounds like a wise choice.

I mean, if the particular process is so tightly-integrated that you can know that you have a 1:1 relationship between X and Y, you can also tie those together with dynamic allocations. I find it hard to believe that you can easily statically show that X and Y allocations are tied in a static allocation scheme but that it would not be so under dynamic allocation?

pierrebai··on A database without dynamic memory allocation
One of the first claim of the article is plainly false. Static allocation does not avoid use-after-free. It just avoids accessing freed memory. You can still have bugs and access dead data in those static arrays that are really dead object but your buggy code still references and access them.

Most benefits listed have nothing to do with memory allocations. For example "having a client open too many connections" can be limited by... limiting the number of open connections. Where and how that check is done might differ, but it's not related to memory allocations.

There are BIG downfalls to static allocations:

   - You cannot support varied workloads. If one workload needs a lot of X and another needs a lot of Y, well, you already decided the maximum numbers of X and Y and cannot re-balance it.

   - If you run out of anything you thought was "sufficient" enough, your programs just fails.
And I know, because I've worked on program that did static initialization at startup, and they failed in just that way. I also did test the performance benefits: it was around 12%. So you do get some performances out of it, but the added complexity of having things fail out where in a normal program it would just chug along, having to deal with these failures and the usual have-to-roll your-own data structures or libraries is not worth 12%. Because, remember, if you go out of your way to have static allocations, that means all 3rd-party libraries have to do it too, otherwise the benefits is wasted. Is that worth 12%? IMO, no.

I mean, sure, your program is easier to analyze statically, just like if you gave up dynamic threads and instead just pin different parts of your program to different CPU core. Sure that solves some concurrency problems, but most programs don't do this for obvious reasons.

pierrebai··on Stripe is PayPal circa 2010
There are many suit and claims against Paypal. Most of them are settled out of court. Many are exactly about account freezing. The fact that one went to court but was dismissed does not prove that Paypal does not engage in bad bahaviour.

It's not merely the cost of doing business, it's the cost of avoiding judgements against bad practices.

Do note that Paypal did lose some suits, notably in Quebec for example, where customers protection laws are stronger and arbitration clauses in user agreements cannot force you to forfeit rights you have under the law, in particular to sue.

https://lastattorney.com/paypal-class-action-lawsuit-settlem...

pierrebai··on Stripe is PayPal circa 2010
Just as a contrary standpoint, I personally like to see the Paypal logo and the fact that it is Paypal processing my payment and not some I-roll-ed-my-own just-wait-for-me-get-hacked random system.

I also learned to loathe stripe (and square) due to those PoS system that have ridiculously high tipping options even for transactions that really ought not to be tipping situation. No, I do not want to give 20% tips when buying bread over the counter at the bakery, thank you very much. (This may not be stripe fault, but the store owner. I resent both just to cover all bases.)

pierrebai··on Hypnerotomachia Poliphili and the Architecture of Dreams
> namely the simultaneous invocation of multiple temporalities

Some authors really strives to use words of maximum length to portrait themselves as intellectual. That quoted sentence could not have simply said "evoked various time periods", as that would have been too comprehensible.

Or shoudl I say...

The extravaganza of the extremophilic concentrate of longtitude of specimen of the vocabulary transpose an egoistical tendency to externalize the profundity of desirability of irradiating one's intellectualism.

pierrebai··on Why car wheels are so flat these days
One question I've had: why are car brakes inside the wheel at all? Is it only ease of servicing? Putting the brake disks on the shaft before the suspension would make wheels lighter and allow positioning the kingpin much further out.

I tried to google for an explanation, but only found hits about brakes problems.

pierrebai··on Why public chats are better than direct messages
You really taking a strawman extreme example I've never met in 30 years as a counter-point to "discussion should be in public as much as possible"? The article even mention that /some/ communication can still be private, but the default rule is to be public.

Your counter-point is "there are a miniscule contigent of people who can't function at all in a team". Weak.

pierrebai··on Useful engineering metrics and why velocity is not one of them
> velocity metrics from your project management tools is like looking for your lost keys under the streetlamp because that's where the light is brightest

That's not just a poor analogy but wrong. I can't even start to identify what aspect of velocity is the key and the street lamp or searching. Velocity is a tool to assess the amount of work you do per cycle and to help plan how much work to take in a given cycle.

It has nothing to do with losing key,, searching or only looking where there is light.

As usual, for any process, haters will just trade jabs and nod appreciatively and how much it all suck. Assessing how much work you team does every cycle is a useful metric, and people higher up like to have at least a small glimpse of how much work and and much time it will take to finish a feature.

One useless metric though, is snark.

pierrebai··on Commit Messages Don’t Matter
I grep commit history from time to time to find when something was done. It is not useless. I also compose the pull request description from concatenation and editing of the multiple commit messages. Good PR description is essential for... good code reviews. So that the reviewer knows where you are coming from.

Sure, there is also code comments, but have a good PR message preps you to read the code., And that good intro comes from commit messages.

pierrebai··on Soft deletion probably isn't worth it
The author claims pruning soft-deleted entries requires a complex query, but hard-deleting an entry would have required the same complexity. So it's really not an argument.
pierrebai··on Bouvier Affair
So, use arbitrage to make money is fraud when you're dealing with billionaires?

I've investigated it, and it turns out I paid my cellphone vastly more than it cost Samsung to build! I was defrauded!

As others pointed out, it is pretty surreal that it is a Russian oligarch who ripped off the entire Russian population to enrich themselves with the complicity of top Russian officials and those in powers that is complaining.

← PreviousPage 3 of 15Next →