News for hackers. Stuff that matters.

chx

Re:How to Make LLMs Shut Up on Sunday December 22, 2024 @04:16PM (#42489182)
uck you all for flagging this comment, so I repost it: >I would quit the day you set an AI to review my code. Not the day, no, sorry. The very second. Miss me with that noise. I need insightfulness on my code reviews, not an automated bullshit generator plagiarizing past reviews, badly.

if you flag this too then I will repost it on every HN post.

Try me.

I already asked dang to delete my account weeks ago.

Until he does I will try to be the voice of reason in a world gone mad from drinking too much LLM koolaid.

Re:Show HN: NoSQL, but it's SQLite on Sunday December 22, 2024 @04:09PM (#42489121)
fuck you all for flagging this comment, so I repost it:

>I would quit the day you set an AI to review my code. Not the day, no, sorry. The very second. Miss me with that noise. I need insightfulness on my code reviews, not an automated bullshit generator plagiarizing past reviews, badly.

if you flag this too then I will repost it on every HN post.

Try me.

I already asked dang to delete my account weeks ago.

Until he does I will try to be the voice of reason in a world gone mad from drinking too much LLM koolaid.

Re:Show HN: NoSQL, but it's SQLite on Sunday December 22, 2024 @06:45AM (#42485785)
> Built with o1.

Yes, yes, database with AI written code. NoSQL with a database that can't be trusted with your data? I. have. seen. this. before. To quote a classic:

> I suggest you pipe your data to devnull it will be very fast

In defense of the database that video was about, I worked as a software architect for the company which became the first commercial user of it, Eliot hilariously didn't want to accept money for support at first. Good old days. However, around 2015 when all three large open source SQL databases --- SQLite, PostgreSQL, MySQL -- added JSON support I felt there was no more need for these NoSQL systems, though.

Re:How to Make LLMs Shut Up on Saturday December 21, 2024 @06:16PM (#42483109)
I would quit the day you set an AI to review my code. Not the day, no, sorry. The very second. Miss me with that noise. I need insightfulness on my code reviews, not an automated bullshit generator plagiarizing past reviews, badly.
Re:Want to book a Ryanair flight? Prepare for a face scan on Thursday December 19, 2024 @07:44AM (#42460913)
> If the airline knows your name, and their attendants see and verify your face when boarding anyway, then are we losing anything through the use of face scans?

Your face scan is now online waiting for the next data breach.

I have seen neobanks requiring such 3D face scans but not Ryanair yet.

had

WPEngine (and a horde of Emanuel Urquhart lawyers led by Rachel Kassabian) are taking him to the cleaners. This won't be pretty. A preliminary injunction is not easy to get, it's really likely WPEngine will win at least something.

Re:Limbo: A complete rewrite of SQLite in Rust on Tuesday December 10, 2024 @02:08PM (#42380211)
And it never will

The first 90% is easy, it's the second 90% that is very hard.

> I was more awed by Stonehenge than Notre Dame.

Recommended reading: Dawn Of Everything.

This brings up a very old memory: the readme of Volkov Commander said the author of it is some nuclear institute in Kyiv. Yup.

(Also, I uploaded Volkov Commander to SIMTEL 31 years ago and the ignorant asshole running that site reported me to the university for pirating Norton Commander and they banned me from the university VAX leading me straight to Linux. Funny how that worked out.)

This is a popular narrative but really, those nukes were a burden on Ukraine and nothing more -- the forces possessing and maintaining those weapons reported to Russia and any launch needed authorization from the Чегет the Russian head of state held, whoever that was. Sure, they were on Ukrainian land but that was all. That is why Ukraine so easily surrendered all those weapons for extremely weak reassurances. If you were to read the text https://policymemos.hks.harvard.edu/files/policymemos/files/... you would notice how there's no real security guarantee whatsoever. Basically it says if someone nukes or threatens to nuke Ukraine they will "seek immediate United Nations Security Council action to provide assistance to Ukraine".

Sure, there are words saying "the Russian Federation [...] reaffirm their commitment to Ukraine [...] to respect the Independence and Sovereignty and the existing borders of Ukraine" but what if they don't? tough luck. No one promised help, there's no built in penalty mechanism, nothing.

Re:Intel Announces Retirement of CEO Pat Gelsinger on Wednesday December 04, 2024 @10:37AM (#42318476)
Yes, yes, yes, of course, the infamous CPU released just so Intel middle managers can get their bonus. GPU disabled, CPU gimped, the whole thing barely worked at all. Let's call it the 0th iteration of 10nm , it was not real, there was like one laptop in China, the Lenovo IdeaPad 330-15ICN, which paper launched.
Re:Intel Announces Retirement of CEO Pat Gelsinger on Tuesday December 03, 2024 @02:34AM (#42303793)
Most of the stock buybacks happened under Bob Swan though. Krzanich dug the grave of Intel but it was Swan who kicked the company in there by wasting forty billion. (No wonder he landed at a18z.)
Re:Intel Announces Retirement of CEO Pat Gelsinger on Monday December 02, 2024 @07:55PM (#42302011)
The first iteration of Intel 10nm was simply broken -- you had Ice Lake mobile CPUs in 2019 yes but desktop and server processors took another two years to be released. In 2012 Intel said they will ship 14nm in 2013 and 10nm in 2015. Not only they did fail to deliver 10nm Intel CPUs but they failed Nokia server division too, nearly killing it off in 2018, three years after their initial target. No one in the industry forgot that, it's hardly a surprise they have such trouble getting customers now.

And despite this total failure they spent many tens of on stock buybacks https://ycharts.com/companies/INTC/stock_buyback no less than ten billions in 2014 and in 2018-2021 over forty billions. That's an awful, awful lot of money to waste.

The essence of being senior, I feel is "I have made the mistake you are about to make". This echoes in language learning. When I was learning Go I could easily pinpoint what language design decisions were made because of lessons learned from this language or that. (I do not want to suggest schismogenesis applies to programming languages but ... it kinda sorta does?) Teaching with this in mind needs a very different curriculum.

Also, basic exercises are boring because we did them ten thousand and one times already just with slightly different syntax.

Re:A summer intern once saved Valve from a near-fatal lawsuit on Monday November 25, 2024 @05:23PM (#42240759)
hopeless AI cultists everywhere

as I said above: I already asked dang to delete this account, I do not want to be here anymore

That's not the next thing that's the same thing
Re:A summer intern once saved Valve from a near-fatal lawsuit on Monday November 25, 2024 @09:36AM (#42236615)
I listed like half a dozen things that could go wrong and the only reply is "look this particular one in this singular case the bullshit is accidentally correct".

Hopeless, as I said.

Re:A summer intern once saved Valve from a near-fatal lawsuit on Monday November 25, 2024 @09:11AM (#42236434)
Y'all are hopeless. I already asked dang to delete this account.
Re:A summer intern once saved Valve from a near-fatal lawsuit on Monday November 25, 2024 @07:50AM (#42235841)
Yeah but this is where a human is indispensable.

Suppose the source language has words which could be translated into multiple English words -- look at all the power banks which are advertised as charging treasure for example. One can see how bank vs treasure are close, after all. Further, even in English multiple phrases could be used "don't preserve" "bin it" "throw it away" and countless others. Even worse, it could be a company specific phrase which would only stand out as odd "apply procedure 66 to it".

If given a little thought this is exactly the kind of task where a native speaker would shine and LLM might just miss or if given a wide enough net produce a million false positive.

Re:Charset="WTF-8" on Monday November 25, 2024 @04:00AM (#42234479)
Yes but GP said

> Where I live, you can only select from a central, though frequently updated, list of names when naming your child

I was born in such a country too and still have frequent connections there and I can confirm the laws only apply to citizens of said country so indeed immigration creates exceptions to this rule even if they transliterate their name.

Re:How the ZX Spectrum became a 1980s icon on Saturday November 23, 2024 @06:19AM (#42220347)
In 1985, my parents went to West Germany with an organized tour and smuggled a ZX Spectrum for us. At the same time, they sent me to a computer - focused daycamp at a community center. Yes, of course, we played games, I was ten but I learned ZX Spectrum BASIC, too.

Jump forward twenty years and I got my first Western programming job for the then-unimaginable 5000 USD a month. This company also happened to be headquartered in Vancouver where I decided to immigrate to and they helped me doing so. And when this company got acquired four years later, I got a salary high enough to buy my own apartment on the beautiful seashore of Vancouver.

Thanks Speccy for what my life could become.

Re:Oncall shift should be Tuesday to Tuesday on Saturday November 23, 2024 @02:23AM (#42219647)
Not only that but if you have a multiple continental team then no one needs to be waken by an emergency meow. (My PagerDuty is set to a meow sound. So we practice meow driven development: I don't want to hear my phone meowing piteously.) Say, you have someone on the US west coast they can do 10am-10pm while someone else in continental Europe being nine hours ahead can do 7am-7pm.
If you want to know the differences between Express One Zone and normal, check https://www.vantage.sh/blog/amazon-s3-express-one-zone this blog post. I had no idea this even existed. tl;dr: it's x7 expensive.
Re:PHP 8.4 on Thursday November 21, 2024 @10:23PM (#42210859)
Zend offerings are confusing. https://www.zend.com/services/php-long-term-support only lists 8.0 and earlier, https://www.zend.com/products/zendphp-enterprise does have a chart showing 8.3 into 2029 but once again the text only mentions 8.0. What gives?
Re:PHP 8.4 on Thursday November 21, 2024 @12:16PM (#42206425)
oooo

variable-length lookbehind assertions are now supported.

yay! I needed that so many times.

Re:PHP 8.4 on Thursday November 21, 2024 @07:02AM (#42203469)
If we hitched language development on Wordpress we would still be on PHP4 as they refused to join gophp5 some seventeen years ago.

Again, an ancient enough codebase which contains a library using array_find will need enough upgrades to run on PHP8 much less PHP8.4 the change from array_find to something else is the least of your worries.

Re:PHP 8.4 on Thursday November 21, 2024 @07:00AM (#42203454)
> Does `$this->country =` use the setter even if it's in a hook (but not a `country` hook)?

To me it is obvious hooks won't use other hooks because that could lead to an infinite loop in a hurry

> Does reading `$this->countryCode` use the getter hook, even it's from a `countryCode` hook?

same

> If not, is there a way to call the `countryCode` getter from this setter?

There is although it's a bit tricky and not intuitive but I feel this falls under the "it is enough this is possible, there's no need for it to be easy": "Be aware, the detection logic works on $this->[propertyName] directly at compile time, not on dynamic forms of it like $prop = 'beep'; $this->$prop. That will not trigger a backing value." Using dynamic properties in what should be simple code should be rare enough this is not a problem. It's like a bridge convention, the benefits vastly outweigh the drawbacks.

Re:PHP 8.4 on Thursday November 21, 2024 @06:36AM (#42203282)
That would be some really old library. Already in 2012 when Composer was released there was PSR-0 and today almost all libraries are Composer managed and using a namespace following PSR-4 which itself is ten years old. A library that old would almost surely not run on PHP 8 unchanged anyways.

Surrendering the global namespace to the language is not so bad an idea.

Re:PHP 8.4 on Thursday November 21, 2024 @06:14AM (#42203125)
> Property hooks mean that some language magic will turn a property access into a call to methods.

__get / __set was doing that already and some frameworks very heavily rely on those.

> It implies that `$this->x` has a different meaning if it's inside a hook or outside hooks.

this is a valid critique but hopefully hooks will be super short and this won't be a major issue. Indeed, if your get is not an arrow function -- which only allows one statement -- then it needs a good thinking over whether this is indeed the best solution. Ie if your get is so complicated then perhaps a helper method is best and then you have get => $this->foo($this->thing) and that's the only place where $this->thing is special.

> if there is any possible way to do that without "boots on the ground"

Of course there is but the Western allies are slow to arm Ukraine because they fear the Russian nuclear retaliation.

To recap, Ukraine received very few , around a hundred ATACMS missiles with severe restrictions on targets. They got less than two dozen F-16 jets. This is just nothing compared what the US might be able to send if they wanted to, they have over 300 Falcons at Davis-Monthan AFB (aka Boneyard) to begin with. There are near four thousand ATACMS missiles manufactured so far. And so on, with tanks etc.

If the "tap" were to open full stream instead of dripping, the war would be over very fast. The question is, which end would we get.

Older »