skysight-inc/HackerNews huggingface dataset:
Agree with not using mocks and following PRY especially. Oh man - it's so easy to want to make code so neat and clean with perfect reusable classes and tests, but honestly, its more effort than its worth in 99% of cases.
They don't really contradict. That FOO and BAR look similar, does not mean they share some "truthfulness". Prematurely reaching to deduplicate and abstract them may lead to issues when you realise they aren't actually as similar as you thought, then you end up handling edge cases that wouldn't exist if you just kept the things separate to begin with.
I wish there was a "fast API" for password managers. You can help them autocomplete by using `type` and `autocomplete` attributes in your login form, and there is a "well-known" URL to find the password change form, but I wish there was a way to bypass the HTML page entirely. This would get us 99% of the features of Passkeys I think, where the user only interacts with the password manager's UI.
And yes, it is now hard to believe, that all humanity consumed power could be used in such project, but if use extraterrestrial resources, could cover all Moon with Solar panels and combine their power into few huge ion thrusters, and this will give comparable effect.

Yes, this is not easy, but with current achievements with technologies (especially AI), looks like will become achievable to start such project in nearest decades.
Ask HN: What are your best Emacs tips?
Treating features as independent mutations may incrementally improve the software, but this approach can quickly lead to an incoherent codebase that is difficult to modify without introducing regressions. Proper domain modeling is done so we can organize around patterns.
Most people on weight loss drugs are spending less on restaurants and takeout
A big improvement in compile times with modern C++ can be had with C++20 standard modules.

This requires extremely bleeding-edge toolchains, though: VS 2022 17.10, Clang 18, and GCC 14.
I know a lot of developers who agree with you.

But how is make dependency free? You need to install make. Which version? GNU make, or FreeBSD make? What platform are you installing it on? What version? In my team we had to get all our devs to manually upgrade from 3 to 4 as we were using modern make features to make it a nicer task runner.

These are all things you've already had to deal with in the custom CLI, which is also a perfectly good entry point. You also have a lot more control of command line arguments, rather than just make targets ("just" has also added this as a feature)
That's not accurate for a final field, as final fields are initialized in a special way.

https://docs.oracle.com/javase/specs/jls/se21/html/jls-17.ht...

>An object is considered to be completely initialized when its constructor finishes. A thread that can only see a reference to an object after that object has been completely initialized is guaranteed to see the correctly initialized values for that object's final fields.

If you don't publish a reference to the object from within the constructor, you will not see a null value of the final field, even if the object itself was unsafely published across threads via a non-volatile field.
registration wall to read.
yuk
Of course. I thought Nvidia GPUs are pretty much a must have to play with DL models.
You can put an external monkey outside and lock the door if you have a door and your boss doesn't tell you you to allow the monkey. Some internal monkeys can be tamed with simple habits.
Don't tempt me with a good time!
In particular, the "summary" from the SumTree in this Zed article reminded me of the "metric" abstraction described in Raph's Rope Science.
> You might never get end up with the life you wanted when you were 15, but few people do. Does "getting exactly what you wanted when you were young and then never being challenged/learning/changing" sound like the recipe for a happy life well lived?

Easily yes
This is a snippet from OP site:

>SB 1047 creates an unaccountable Frontier Model Division that will be staffed by EAs with police powers, and which can throw model developers in jail for the thoughtcrime of doing AI research. It’s being fast-tracked through the state Senate. Since many cloud and AI companies are headquartered in California, this will have worldwide impact.

Of course that is scare propaganda, but when you put it with what the Federal govt is doing here[0], it makes it pretty clear that the real worry is people have access to "dangerous" information with no oversight. I can imagine policing agencies at every level getting very nervous with lone-wolf or tiny militia types getting access to information without any triggers flipping and alerting them and with no way to get any evidence if they do want to arrest them for something.

[0]https://www.msn.com/en-us/news/us/us-homeland-security-names...
We really took some things for granted. These things usually need to be taught from childhood to build intuition because no one would really be able to teach them all of these later, even themselves.
"Hope for the best, plan for the worst."
I’m sure I’ve read this as one of the success metrics in the Phoenix Project. Every time a ticket needs to go back to the original owner is a failure.
This is one of the most obvious headlines I think I’ve read.

As far as the profits of these companies, we shouldn’t keep a population unhealthy and overweight in the name of increasing profits.
The first major piece of code that I ever wrote was a publishing workflow management system for a major newspaper. It routed page images to presses and generated pdfs of each page in each edition of the newspaper and made pdfs of each day's newspaper editions and published them to a static website where they were archived.

I was only allowed to use perl 4 to write this software and I wasn't allowed to use a database, even though the datastructure for a day's publishing batch had tens of thousands of keys and values and required RDBMs style queries. It also features a configurable postscript parser that extracts all kinds of data from completed newspaper pages that informs the publishing system. When I wrote it I was told that it would run for a few months only while we figured out how to get a $5M commercial product to handle the work.

The whole thing was written in perl 4 style OO Perl and came in at about 16k lines of code in the end -- most of the code was for the postscript processor and tons of cruft that I had to write to made a relational DBMS in memory because I wasn't allowed to use mysql. It took me four months to write it. I launched it in January of 2002 and it runs to this day. I know this because I got a call about it last month where my replacement's replacement's replacement asked me a few questions about what OO Perl is because he wanted to make a few changes. Good luck! It still runs and is responsbile for about 80% of what it was originally built to do. It is used by hundreds of people daily, who by all reports absolutely hate it. There are people working at the newspaper today that use it regularly that were not born when I wrote it. I am twice as old as I was when I wrote it.

They have apparently tried to replace it several times over the last 22 years and have failed to do so... this is likely due to the blockheadedness of my old boss (who is still there) as much as the radically insane obscurity of my code, which is exactly how you'd expect 16k lines of 22 year old OO Perl 4 would be.
Neither Kafka, Joseph Heller, nor Huxley could conceive of technology-enabled ubiquitous, concealed brutality and extortion. The Western world is rapidly flirting with the specters of pre-crime and automated enforcement that puts the burden on the accused to prove their innocence with Hobson choices while extorting fees from average citizens as a profit-center.

And in Western countries with weak privacy laws, this class of technology also raises the specter of private "social credit" behavioral tracking to discriminates against and quantize people by grading their online and offline behaviors in totally opaque manners.
More improvement needs wild environment changes.
That notch looks ugly. Is it really needed?
Nice work making (and open sourcing) a notebook for Real-ESRGAN certainly will lower the barrier to entry for folks. I'd suggest adding some screenshots in the README and maybe make mention of how it compares with other options / tools.
That’d match the analogy from TFA if it only ran on, say, a 2014 mbp, so while it’s true Logic runs only on macs or ipads (I guess just pros for the latter though I don’t know), I think it’s quite a stretch to say that’s a certain make and model of computer.
I'm starting to believe that one static/shared library should be produced by compiling exactly one cpp file. Go ahead and logically break your code into as many cpp files as you want. But there should then be a single cpp file that includes all other cpp files.

The whole C++ build model is terrible and broken. Everyone knows n^2 algorithms are bad and yet here we are.
I would estimate that the percentage of the US population who goes off road even once in their truck or SUV is in the single digits at most (by which I mean anything more serious than parking in a grass field at the County Fair).
I think you miss the fine point here. Ontological truth =/= Good domain modeling. OP is not arguing against domain modeling, rather a likely common trap of creating an analog of 'the world' (however delimited) as foundation for the model. I know exactly what they mean because I am guilty as charged. I used to do this all the time in mid career.
That's a little contrived, no?

I don't compare my RS 5 with a Corolla, either. The Audi and BMW have brakes like that because they also are literally designed to spend some time on the track (mine has integrated laptimers and speed calculators for 0-60 times, etc., and shows me individual tire temperatures not just pressure, as well as component temperatures for drive train, transmission, differential).
After searching I usually press n for next and N for previous to move around, without having to use the mouse. But it does leave me occasionally baffled as to which function I am looking at when the functions are too long and it’s all the same get/list/update - looking at you Django Rest Framework.
And back when, Dubai's main industries were pearl fishing and smuggling gold to India.
Sometimes you'll have nested Options just because you're mapping a fallible operation over a fallible input. You don't want the resulting `Option<Option<T>>` to immediately collapse; then you wouldn't know which upstream operation failed. It's true that `Option<Option<T>>` is very generic (i.e. it doesn't inherently tell you what each None means), but flattening Options removes more information; it isn't a solution to the problem you're posing. At least you can post-process an `Option<Option<T>>` into a multi-variant, self-documenting result type before you pass the value off to some other consumer.

In other words, nested optionals might not be very readable, but they're a necessary product of having a highly modular, reusable toolkit, and you can always massage them into more informative, domain-specific types at whatever point that becomes appropriate.
Good! Textile waste is huge
what's the purported privacy risk/s to American citizens specifically with DJI's drones? or is this purely a matter of geopolitics? (TFA links to a paywalled NYT article on what seems to be this point.)
If you keep going long enough they'll probably turn into crabs.
I share your take, and I’ll even say that classes are an underused tool when applying functional principles in mixed paradigm languages. If you use a class as a struct (with value semantics), you get:

- A type

- A name for it

- A canonical way to build a value of that type

- A consistent way to reference its semantic meaning at runtime and in any static/build time/documentation format

- A singular, easily discoverable place to change it
Doesn't really scale well. What you're looking for is community-led policing combined with sensible, few surprises, high community-visibility and -participation legislative processes rather than revenue-led or self-led policing.
Is this really destroying evidence? It sounds like they avoided creating it.

If this was 50 years ago they would have just met in person, to avoid any kind of paper trail.
Can't believe the question of free will hasn't popped up yet.
The problem is people want to enjoy their lives and starting over means forfeiting many years of that life, as well as potentially closing doors they wanted to leverage. People often put their lives on complete hold for a phd. Discovering that was a waste is awful.
No, one source of truth of 'the state'. A "system of record" in db parlance. DRY is concerned with the code, i.e. algorithm.
so whats the optimal design?
I admit I’ve only ever used Hack, not vanilla PHP, but that one is a pleasure to use. I’m sure the vast majority of my colleagues will agree with that too
> There are synthetic viruses that have close to 100 percent lethality while still being as transmissible as SARS-CoV-2

I didn't know this. Terrifying.

> What an apocalyptic group would lack is the know-how to turn those tools into a biological weapon.

> Could they basically get graduate-level training from a digital tutor in the form of a large language model?

This is an interesting situation. Even if a model is "aligned", is its capacity to educate on general topics an indirect threat? Is this different from human-produced educational content on the Internet?
> Apple lets customers configure the 15-inch MacBook Air with 8, 16, or 24 GB of integrated RAM

I wish Apple wasn’t as stingy with RAM upgrade options considering this can’t be upgraded later. For all the talk on the part of Apple of being more sustainable and green, allowing more competitive memory options would help extend the useful life of these products.
What do you mean by safely?

Step 1) configure your zone(s) on the new server(s)

Step 2) update your configured dns servers at the domain registry (usually through an interface at your registrar)

Step 3) wait for as long as you feel is appropriate

Step 4) remove the zones from your old server(s)

Most tlds serve glue records with a ttl of 1-2 days. I'd wait at least that long after the tld servers update before dropping the zone on the old server. But you may want to wait much longer, because some DNS servers cache some records for an unreasonable amount of time. If you can change the NS records on the old servers to point at your new ones, that might help, but it might not. I don't know how much effort you want to put into keeping things working on servers that act unreasonable.
I suspect the "EA" label is author having an ax to grind or throwing red meat at people who already hate EA. Sam Altman is on record lobbying for "AI safety laws" which would have a similar effect of raising the bar of entry incredibly high using legal peril, and he was reportedly ousted from the board by EA-aligned folk.
Well being able to run these models on CPU was pretty much the revolutionary part of llama.cpp.
That’s a really incredible story. I’m not sure how much more you remember/are able to share, but I would kill to read a longer post about this.
No, this doesn't make sense in the context of Japanese.

One of these signs is written right to left:

https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQdiwLY...

https://auctions.afimg.jp/h1085974646/ya/image/h1085974646.2...

Which one is it? There is no way to tell unless you already know the characters. Unless someone could read the existing signs they would almost certainly assume they were left-to-right and make any new sign like that if they only had the characters to copy.
That’ll be because Facebook doesn’t use PHP as such, but Hack, which isn’t compatible with vanilla PHP. Hack isn’t really used much outside of Meta, so what’s the point of going through the extra work of open sourcing our stuff if nobody else will ever use it?
The evidence is the damage caused by their actions. No need to punish people for crimes that haven't occurred.
bob is such a swell guy, his crafting interpreter book is excellent and sometimes feels underrated. What a great colleague to have if you work on his team at google.
MIDI over CAN Bus. I like it.
I don’t qualify for a loan (mortgage) big enough to buy an apartment unless I put several hundred thousand dollars down. That’s why I save.
Ada had all of C++'s problems figured out in 1983. PIMPL as a means of boosting compiler performance is fundamentally braindead. We shouldn't be bending over backwards with broken tools to make them sort of work.
> There's a bunch of habits that I employ in my own work, and I feel that they pay off. To go into more detail would take more work than I feel like doing, now (I really need to get back to writing, but have gotten out of practice).

I'd really love to hear at least at a high level what sort of habits have helped you, if you have some time in the future
Ok this is insanity. The thing keeping people from making destructive devices is the difficulty in synthesizing white fuming nitric acid and similar required precursors. You can Google wherever shit you want if you use someone else's wifi and you should be able to at least Google whatever you want without the feds showing up.

The danger of ai has nothing to do with what the average Joe might try to do, it has everything to do with what soulless corporations are doing to you right now and how it enables them to be even worse in the future.

Right now your roof is being scanned by aircraft with cameras and AI is being used to determine how old it is and if there are tree branches nearby. They're also looking at and classifying objects in your back yard to determine safety risks. It's not horribly accurate but because of the scale it doesn't matter to the companies, you just get fucked. Accidentally bag something you didn't scan at the self checkout? They have AI for that too, there are multiple reports of people being hunted down and charged with theft for simple mistakes.

Your chances of having your life ruined of degraded because of AI are massively higher than your chances of being hurt by a random individual using it to build destructive devices.
That is essentially the same idea as PIMPL. You put the private parts of the class (e.g., the data layout) in some file that is held privately. I guess you could argue that there is extra syntax involved with PIMPL because C++ is more low-level than C#, but it's not so bad. The actual implementation of a class can be spread over as many files as you want in C++.
This is wonderfully naive. You can fairly easily learn to control Bob though articulated speech or just leave. Controlling the internal is the central focus of most world religions, and not being able to do it is responsible for most suffering on earth. We are mostly helpless cognonauts.
> You store all data in primitives or structs, and pass it along to functions

OK, so in global variables, like in C language. And you think this is better than OOP. Glad that's working for you!
If the title includes the name of the site, please take it out https://news.ycombinator.com/newsguidelines.html
“I pored over Linebarger’s personal papers at the Hoover Institution”

Of course, and if I was a conspiracy nut, I’d say: “And now you know the rest of the story.”
Yes, yes, and yes. Unfortunately it is all talk, they don't care a hat about environmental concerns.

All is about the bottom line, and that's why they're stingy with the ram as well.
https://www.msn.com/en-us/money/other/in-america-s-biggest-o....
One can rarely “schedule” flow so when a scheduled meeting interrupts flow it’s still an interruption.

Additionally, anecdotally, I don’t work for anyone if/when I’m developing but I still very much appreciate the moments of flow when creating. Why bash it altogether? Seems a strange take.
There’s no other option besides MANGA. Anything else is f-ing lame
Amen. Everything in software is about tradeoffs. The only sensible answers to software questions start with "it depends". Dogmatic shittalking of OOP, a paradigm that quite a few developers are happily using to produce successful software, only highlights a lack of perspective and an unjustified arrogance.
...I love Japanese culture, I just think it could be better by being more open minded.
Another option in the language design space which this article doesn't mention is to have different kinds of null indicating what kind of object this null value is intended to be a stand-in for. NULL is a generic non-value, but it's also possible to have null-number, null-string, null-character, etc. which can be handy for detecting certain kinds of type errors. In particular, a constructor for a class C can return a null-C if it fails, which can be very useful for debugging. One of the problems with generic NULLs is that it can be very hard to track down where they came from.
Yes, but your kids have a technical parent, so chances are they both have significantly above-average intelligence.
Neovim core has lots of bugs.
Interesting blog post, but it just underscores how truly imaginary and disconnected most user personas are from any real people.
Be real - those kind of people aren’t worth hiring!
Client Runs on Waterfall
I'm secretly loving it.

I got hired to migrate a client's existing excel spreadsheet internal tool over to a customized React SPA.

This is the first contract where I'm not rushing around every sprint trying to piece together half baked features and pushing them out the door. While not strictly waterfall (more kanban) I'm enjoying the heck out of the process either way:

• Everything is rigorously tested and documented.

• Nothing gets released until all the requirements are met. No sprints.

• We celebrate every release.

• Clients give feedback, we spend time talking about it internally, and then do proposal, design and then developers come up with architecture docs and we talk about it some more.

As a 34 year old dev I'm loving this.

Am I just getting old?
Yes, we are also looking at integrating MLX [1] which is optimized for Apple Silicon and built by an amazing team of individuals, a few of which were behind the original Torch [2] project. There's also TensorRT-LLM [3] by Nvidia optimized for their recent hardware.

All of this of course acknowledging that llama.cpp is an incredible project with competitive performance and support for almost any platform.

[1] https://github.com/ml-explore/mlx

[2] https://en.wikipedia.org/wiki/Torch_(machine_learning)

[3] https://github.com/NVIDIA/TensorRT-LLM
This story worries me.

When a nation has rich resources that require specialized extraction, the people are worth less than the resources, and it's easier/more profitable to license foreign interests to extract the resources while screwing the (worthless) people.

If you add in AI to do the thinking work, what can the people contribute? I know this can be a problem everywhere, but it will be a bigger problem in places where rich resources require specialized extraction.
That's truly impressive! Even though we're a startup of about 30 people with our own server room, our setup pales in comparison to yours. I'm going to take some time to seriously study how you've done it.
Most of my windows PC's boot time happens before my computer even starts loading the OS. If I enabled fast boot in my bios, I'm pretty sure my PC would boot in around 15 seconds.
I guess a turn based strategy game displayed on a CRT (storage display) is technically a video game...

https://youtu.be/wvHscto5J-4?si=908N1G99SiYeL3Y7
Yes, I connected claude 3 Opus with whatsapp and create functions that I use it as a support creating content to post on Instagram
They didn’t know the word which is different from not having any knowledge of how Chinese characters are written.

Chinese is not 1:1 with Japanese so that’s not surprising.