MurphyA/hacker-news huggingface dataset:
by monkeyelite | 2025-05-10 02:43:27+00:00
> InlineArray does not conform to either Sequence or Collection

Why not? Does this mean I need to make a struct which wraps InlineArray and implements Collection? Why didn't they do that?

EDIT: found the answer (I still have concerns):

> While we could conform to these protocols when the element is copyable, InlineArray is unlike Array in that there are no copy-on-write semantics; it is eagerly copied. Conforming to these protocols would potentially open doors to lots of implicit copies of the underlying InlineArray instance which could be problematic given the prevalence of generic collection algorithms and slicing behavior. To avoid this potential performance pitfall, we're explicitly not opting into conforming this type to Sequence or Collection.
by InterviewSense | 2025-05-10 02:43:45+00:00
Hey everyone, I’ve been working on a project that is an AI coach for coding interviews. It allows u to select what kind of role you're applying for, then gives you problems, analyzes your answers (typed or voice rec), and provides feedback on clarity, structure, and performance.

It’s not finished yet, so I’m curious if there’s interest in something like this. Would love to hear your thoughts or suggestions if this sounds useful! Interest form:
by com2kid | 2025-05-10 02:46:10+00:00
I disagree on many points the article makes, but it is well written and lays out its arguments well.

One example - I prefer the named fields of Zig over Odin's use of positional fields. Zig's syntax is the more popular one as of late, heck even C has named struct member initialization.

IMHO Positional is just asking for trouble. Yes it works fine for game programming, and not having to specify x and y thousands of times in a code base is nice, but for general purpose languages where a struct can have a dozen+ fields to init, positional assignment is how bugs are made.
by jeremiahar | 2025-05-10 02:46:11+00:00
Clang also supports virtual function elimination with -fvirtual-function-elimination, which AFAIK currently requires full LTO [0]. Normally, the virtual functions can't be removed because the vtable is referencing them. It's very helpful in cutting down on bloat from our own abstractions.

[0] https://clang.llvm.org/docs/ClangCommandLineReference.html#c...
by noxa | 2025-05-10 02:47:27+00:00
Agreed! Looks great, but I did immediately click the pencil to doodle and was disappointed nothing happened. When I created a new document and tried to use the pencil nothing happened. I never figured out how to use it. I tried the Bezier tool and was able to add some nodes but was not able to manipulate them with any of the tools. Maybe dragging is entirely broken on Chrome/Windows?
by cebert | 2025-05-10 02:47:34+00:00
Uber is clearly indicating that they want employees in the office for “collaboration.” If you’re an employee who prefers this type of working environment, great! Otherwise, it’s time to find another position. Fighting your employer won’t work. I, too, prefer working from home because I have a private office at home instead of an open office at work. However, given the current market, I won’t fight my employer. I’ll begrudgingly go to the office three days a week to “collaborate” so that the leaders in private offices are happy.
by mook | 2025-05-10 02:47:57+00:00
I've seen it useful for things like logs of long running build jobs. But the API should have been done so that notifications can only be registered upon user action, like how pop-up window detection works.

But to a first approximation, a function that always returns "no" will probably be close enough for most users. Somehow I don't think their priorities align with mine.
by slt2021 | 2025-05-10 02:48:43+00:00
how come immigrants from Haiti/other 3rd world countries come to the poorest rural towns in USA and make it work, while US citizens drown in drugs and crime?

The opportunity is there, its just USA was supposed to use the reserve currency status to invest domestically in its own people. Instead USA made a business out of education (private schools and elite colleges).

This creates a situation where only high value jobs are feasible in the USA, but the education to do these high value jobs is too expensive. Now you have to import foreign talent, as well as goods, and this leads to erosion of the country.

China on the other hand, invested in its own people and developed industries domestically, rather than importing talent
by cosmic_cheese | 2025-05-10 02:49:04+00:00
On iOS, code-only UIKit with bits of SwiftUI interspersed for simple components (think collection view cells) is definitely the way to go. UIKit is well equipped to be written that way (unlike Android Framework, which practically forces use of XML layouts in many cases).

For Mac dev, AppKit is still fairly heavily weighted towards use of XIBs, but it’s not nearly as much of an issue there because on average each individual XIB isn’t as overloaded with controls because the UI is more split up.
by hedora | 2025-05-10 02:50:01+00:00
Here is proof that it is an intentionally-bad feature:

Web pages can tell if you enabled notifications.

The last time I checked, Slack used this to break unrelated functionality until you gave it browser notification permission, and re-broke itself if you disabled permissions after enabling them. Otherwise, there is no reason to enable it or install the app. (You can deny notifications per app, at least on apple platforms).
by itake | 2025-05-10 02:51:39+00:00
Many non-fiction books, you can get the gist by reading a blogger's summary, but I think the length of the book actually gives my brain time to digest and commit to permanent memory the idea(s) in the book.

Reading a 3 minute summary, once, I will easily forget the knowledge. But reading about the idea with different stories and other auxiliary information help me retain the principles much faster.
by Fire-Dragon-DoL | 2025-05-10 02:54:06+00:00
I understand that, but in this case the server admin and myself were the same people, on my home server, so there wasn't anything leaking anywhere really.

That being said, this was about a year ago. Invite links that you can send manually by email and people can join the team would be more than sufficient, I don't need the system to send the email for me, I just need an invite link.

The problem was the reverse, I needed each user to send me an ID (I think it was an Id) so that they could be invited.
by pentaphobe | 2025-05-10 02:54:13+00:00
So yeah, seems like despite some unfortunate liquidation choices by his parents just before the depression, they still retained enough wealth to make certain lifestyle choices easy...

> His parents, upon his graduation, had decided to give him a monthly allowance of $200 out of their earnings from Cobblestone Gardens, a substantial sum in those days.

> It was enough to keep him going, and indeed it guaranteed his survival for the next twenty-five years, arriving with welcome regularity. The allowance was a ticket to freedom; it allowed him to live where he wanted to and to forgo employment. [1^]

And $200 in 1937 gets you a fair bit of freedom (roughly $4500 in today's money) - sure, it's not private jet money but notable. And would have gone pretty far in Mexico and Tangier.

[1]: https://en.wikipedia.org/wiki/William_S._Burroughs

[2]: https://www.in2013dollars.com/us/inflation/1937?amount=200
by AStonesThrow | 2025-05-10 02:54:50+00:00
A few years ago, I purchased a "solar backpack" because I thought the idea was really rad, and I live in Phoenix, so the thought of trekking through the urban jungle with a solar panel on my back and perpetual, unlimited sun power to my laptop and two phones, that was irresistible!

So the reality was like this: really awesome power bank included with decent backpack. The power bank has plenty of connectors and adapters to plug into virtually anything. Power bank is juicy enough to power a laptop for a couple of hours, or a smartphone for all day long. Rugged construction there.

The backpack is kind of unwieldy but has some nice pockets and it's totally electronics-aware. You don't want to stash a drink or food anywhere in this thing. There are plenty of grommets for threading the cables you'll need.

The solar panel is like the worst feature of this "solar backpack". Of course, imagine the low surface area you'll get on a backpack. Now imagine how long it takes to charge a quite beefy power bank with that. It took me 3 weeks of all day long, in the clear winter sunlight, with a zero load, to go from zero to about 90%! Three weeks!

So clearly this solar power source is inadequate to keep a device going without discharging completely by dawn. But I certainly do appreciate the power bank, and I do keep this around for emergencies, and I basically just plug it into the wall until it's full, then I stash it away and I don't worry about it for several months.

The cost was also not terrible. I think the entire backpack set cost $300 or less. Not bad for a good durable backpack plus power bank, really; nevermind the solar component.
by technion | 2025-05-10 02:55:07+00:00
One of the most impactful things I've done with enterprise security, and I mean moreso than buying any expensive product, was deployed a browser policy that disabled browser notifications (and deployed ublock). Service desk calls from people claiming to have been hacked because their browsers kept popping up scare ware ads dropped to nothing overnight, with a notable drop in complaints and absolutely zero complaints logged about people who wanted notifications on something. It's obscene, the desktop notification feature has generated more work for security people than active directory and it's lack of mfa support.
by jgalvez | 2025-05-10 02:55:08+00:00
Just wanted to give 2 cents on the rationale behind this:

Most people don't budget at all.

Most people live paycheck to paycheck. I have lived paycheck to paycheck for a long time. When your finances are in distress, and you have no planning, the least helpful thing you can do is trying a fully featured app, or even worse, a spreadsheet. It requires a lot of attention to details and they can get overwhelming and confusing to manage — not everyone is fluent in spreadsheet formulas, as basic as they may be, to the point of getting the setup right, and most template spreadsheets available pack a lot of unnecessary things and customizing them becomes a project of its own. There's also the feeling of despair realizing you're not even close to even having that much data or assets to put in. This is not only my opinion — this is what I've gathered asking friends and family on the topic.

So this is a way to keep things simple. Extremely simple. No integration to banks, no mental overhead, just a smart replacement for a piece of paper where you write down your income and your expenses. There is a lot of people that still use a physical notebook to keep track of their finances, in this day and age, out of sheer choice — it's a way to maintain focus on the big picture, and not miss any detail.

It's a way to express your finances in a portable, human-readable format that is essentially computable plain text. You can express your finances at a 10,000-feet level, know what your savings will look like, for motivation, and know where your money is going. This is it. Surely it will be too simple for many, but perhaps just about right for some.

You're also not vendor locked, your data is plain text and you can use the CLI (free and open source) to process it. I myself use the CLI and manage my sheets from Sublime Text. Yep :)
by I_AM_A_SMURF | 2025-05-10 02:55:43+00:00
I've never seen a place that does it quite like Google. Is there one? It only works if you have one product or are a giant company as it's really expensive to do.

Being able to change a dependency very deep and recompile the entire thing is just magic though. I don't know if I can ever go back from that.
by MilnerRoute | 2025-05-10 02:56:32+00:00
These seem to be the two main reasons for the decline in the U.S., according to the article.

- A public policy demographer says despite more women in their late 30s having children, "it's not making up for fertility declines among younger women. What's coming to appear is that a lot of these babies are just going to be forgone entirely. They're not going to be born."

- There's also a decline in teen pregancies, and the article quotes a population center director who attributes that to more effective contraception. "The United States has always had much higher rates of teen and unplanned pregnancies than other countries. This is a success story... that people are able to avoid having births early on, when they themselves would say, 'This is not the right time for me.'"
by raron | 2025-05-10 02:58:35+00:00
I don't think that is true for modems, there is an "exception" for indirectly connected terminal equipments.

Interestingly satellite earth station is explicitly mentioned, so maybe we can use our own Starlink dish, but not out own modem... (law is weird)

‘terminal equipment’ means:

(a) equipment directly or indirectly connected to the interface of a public telecommunications network to send, process or receive information; in either case (direct or indirect), the connection may be made by wire, optical fibre or electromagnetically; a connection is indirect if equipment is placed between the terminal and the interface of the network;

(b) satellite earth station equipment;

https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv%...
by whalesalad | 2025-05-10 02:59:13+00:00
Agreed it’s a problem and I can’t propose a solution other than something you’ve suggested which is referencing functions by their value (tldr hashing them) kinda like what Unison(?) proposes.

But I think the best defense against this problem at the moment is to be extremely defensive/protective of system dependencies. You need to not import that random library that has a 10 line function. You need to just copy that function into your codebase. Don’t just slap random tools together. Developing libraries in a maintainable and forward seeking manner is the exception not the rule. Some ecosystems exceed here, but most fail. Ruby and JS is probably one of the worst. Try upgrading a Rails 4 app to modern tooling.

So… be extremely protective of your dependencies. Very easy to accrue tech debt with a simple library installation. Libraries use libraries. It becomes a compounding problem fast.

Junior engineers seem to add packages to our core repo with reckless abandon and I have to immediately come in and ask why was this needed? Do you really want to break prod some day because you needed a way to print a list of objects as a table in your cli for dev?
by Aeolun | 2025-05-10 02:59:46+00:00
> The only real solution I can think of to deal with this long term is ultra-fine-grained symbols and dependencies. Every function, type, and other top-level language construct needs to declare the set of things it needs to run (other functions, symbols, types, etc). When you depend on that one symbol it can construct, on demand, the exact graph of symbols it needs and dump the rest for any given library.

That’s literally the JS module system? It’s how we do tree shaking to get those bundle sizes down.
by plasma_beam | 2025-05-10 03:00:49+00:00
Proud to say that in the early-mid 2000s I was a consultant dev at NSF and worked on the research proposal submission and eval website called Fastlane. They’ve since moved the functionality to research.gov, but my code ran in production for 20ish? years? It was old school Java Struts, JSPs, EJB’s..typical J2EE of the time. Lots of people I worked with decided to leave consulting and became NSF employees. They were good and smart people.
by adamwk | 2025-05-10 03:01:19+00:00
There’s a section in the proposal about this: https://github.com/swiftlang/swift-evolution/blob/main/propo...

Tl;dr: Sequence and Collection are incompatible with noncopyable types and conditionally conforming when elements are copyable would result in too many implicit copies. They’re working on protocols to cover noncopyable collections such as this, which will probably have a similar API shape.
by msephton | 2025-05-10 03:02:09+00:00
Great work! I'm wondering if you could leverage DiscMaster or my Macintosh Magazine Media collection to hunt for themes? You'd just search for the type or creator code. Not that you're short of themes. I did this sort of search recently for tilesets for MaciGame and found over 350 plus I am notified of any new additions thanks to DiscMaster search RSS https://news.ycombinator.com/item?id=43551222
by DidYaWipe | 2025-05-10 03:02:19+00:00
"a new Observations struct that is created with a closure, and provides an AsyncSequence that emits new values whenever any any @Observable data changes"

Is this another asinine onChange()-style mechanism that actually means WILL change? In other words, it tells you BEFORE the value is set on the object, so you can't do jack squat with it much of the time.

That's the M.O. of onChange now, which is utterly brain-dead. Gee, I've been told that a value changed in this object, so let's recalculate some stuff. WHOOPS, nope, none of the other objects (or hell, even the affected object) can take action yet because they can't interrogate the object for its new contents.

Truly incredible that they not only defaulted, but LIMITED change-detection to WILL-change, the least useful of the two choices.
by yehbuttzlivin | 2025-05-10 03:04:17+00:00
It’s just agency control. Force memorization of a routine that serves Uber.

Fostering as sense of worker insecurity so the workers stay put is an old tactic: https://www.nytimes.com/1997/02/27/business/job-insecurity-o...

Show you can layoff all these developers without the universe folding in on itself as a flex.

It’s sad and pathetic fiat decree. But low skilled lazy office workers who refuse to learn trades love having their choker collar yanked.
by CharlesW | 2025-05-10 03:04:35+00:00
> I'm sorry, a messaging app that in its most common configuration has its encryption keys stored on its developer's servers in a way that allows them to decrypt messages at will cannot be reasonably called e2ee.

It's extremely common for Apple services to be encrypted in transit and on Apple's servers by default, and additionally also at rest when you opt into ADP (which is how you say "I want E2EE and understand the ramifications of that" in the Apple Cinematic Universe).¹ As you noted, for the average consumer, ADP² is overkill and therefore a terrible default.³

¹ https://support.apple.com/en-us/102651 ² https://support.apple.com/guide/security/advanced-data-prote... ³ https://news.ycombinator.com/item?id=43934995
by mbirth | 2025-05-10 03:04:41+00:00
I dabbled around with it a few years ago. It’s a framework and you have to implement all the surrounding parts or copy them from others. I was able to get it to accept and display a rundown from our NRCS. (Had to find some frontend code from a different TV station somewhere to make it show anything IIRC.) But the amount of customisation necessary to make it work with our hardware was more than I was in the mood for, so that experiment ended quite quickly again.
by modeless | 2025-05-10 03:04:46+00:00
The e2ee for Google backups is based on the user's screen lock code, not account password. https://security.googleblog.com/2018/10/google-and-android-h...

Unlike the account password that users need only once in a blue moon, users are required to practice entering their screen lock code at least once a week to continue using their device. Probably more often in most cases. And it's much shorter.

Chrome sync also supports e2ee, and using it requires that you set a sync passphrase that is separate from your Google account password. The account password is known to Google servers and so can't be used to secure e2ee data. The screen lock code, in contrast, is never stored in a form accessible to Google.
by lolinder | 2025-05-10 03:05:30+00:00
I'm a professional developer with 20 years of experience and I wouldn't dream of starting a new side project—even with myself as the only developer—without types.

I've learned by hard experience that past me was an idiot and future me is clueless. Types are executable documentation that I can leave behind for future me so that future me can get instantaneous feedback while refactoring the project that past me wrote.
by rufus_foreman | 2025-05-10 03:05:52+00:00
>> On Christmas Day, 1990, Charles Bukowski received a Macintosh IIsi computer and a laser printer from his wife, Linda. The computer utilized the 6.0.7 operating system and was installed with the MacWrite II word processing program

Bukowski was born in 1920. Lived to be 73 years old.

So, the article is true, he used a word processor for the last few years of his life. Those poems, with a few exceptions, were not the good ones.
by yupitsme123 | 2025-05-10 03:06:19+00:00
The old bureaucracy stopped being progressive long ago. I believe the EPA protects the environment about as much as I believe DOGE is about creating efficiencies.

At this point these organizations are just tools for the administration in power to hand out favors and therefore maintain support. The worthwhile work they do is secondary.

Trump is simply getting rid of the ones that aided democrats and creating new ones that will allow him to aid his own supporters.

Also I don't see the connection between progressivism and free trade/tech innovation. If anything, the latter only aid the status quo rather than helping it to progress.
by schiffern | 2025-05-10 03:06:52+00:00
To select nodes I needed to click on the path in the "Objects" outline on the left side of the screen. Then I could switch to the Nodes tool and select nodes. But after that I can't drag nodes either. Firefox/Linux, so probably something is actually broken not just a compat issue.

Clicking on the path to select them with the Node tool or the Select tool doesn't seem reliable. The Select tool never works, and the Nodes tool I need to click near the nodes (which are invisible) and if I click too fast while searching it thinks I double-clicked and switches to the Select tool.

Maybe some of this makes some sense to the author, and a fix can be forthcoming.
by cosmic_cheese | 2025-05-10 03:07:22+00:00
To me the easiest fix is to just default notifications to off for all sites, remove the prompt, and if the user wants to turn on notifications for a particular site they can do so manually. Keeps the functionality while making it impractical for sites to harass users into approving and defeats those stupid in-site “we need to maintain the ability to prompt the user” pre-prompts all in one swoop.
by ykl | 2025-05-10 03:07:28+00:00
A few more recent non-UE5 custom in-house engines that have demonstrated very impressive results:

* Spiderman (1/2/Miles Morales) and the PS5 Rachet and Clank, by Insomniac on their in-house engine.

* Astro’s Playroom and Astrobot by Team Asobi uses an in-house engine and act as the de-facto hardware showcases for the PS5

* Horizon Zero Dawn/Horizon Forbidden West by Guerilla Games, which shares the custom Decima engine with Death Stranding by Kojima Productions

* The upcoming GTA6 by Rockstar. Not out yet, but the trailers supposedly were captured on a base PS5 and visually look astounding.

* Doom 2016/Doom Eternal/Doom Dark Ages by id, running of course on the latest versions of idTech.

* The Forza racing games continue to use the in-house ForzaTech engine, and Forza Horizon 5 looks amazing visually

* The Call of Duty series continues to use the in-house IW Engine

* The Battlefield series and EA’s various sports games continue to use the in-house Frostbite engine

* Ubisoft’s various games continue to use in-house engines. AFAIK they actually have three major in-house engines: Dunia, Snowdrop, and Anvil.

* Tiny Glade is a small indie game built by a two-person team running on a completely custom engine that despite the team being tiny happens to have possibly the most advanced light transport in any shipping game engine today

UE5 is gigantic today of course, but in-house engines are still alive and well today and constantly producing amazing results.