MurphyA/hacker-news huggingface dataset:
by CyberDildonics | 2025-05-13 15:00:15+00:00
These are not very good arguments and Casey Muratori is hugely biased against RAII and C++ techniques for some reason, probably familiarity with C.

He thinks that every RAII variable is a failure point and that you only have to think about ownership if you are using RAII, so it incurs mental overhead.

The reality is that you have to understand the lifetime and ownership of your allocations no matter what. If the language does nothing for you the allocation will still have a lifetime and a place where the memory is deallocated.

He also talks about combining multiple allocations in to a single allocation that then gets split into multiple pointers, but that could easily be done in C++.
by LegionMammal978 | 2025-05-13 15:00:43+00:00
"Crafting an email" in the format required by many email-based projects is hardly easy for the average user, who's most likely using a webmail service that does not have much control over line wrapping and the like. Accepting patches in attachments (instead of the email body) helps with this, but naive users can still easily get caught by using HTML email, which many project maintainers love to performatively turn up their noses at.
by billfor | 2025-05-13 15:00:44+00:00
I made a vendor run their buggy and slow software on a Sparc 20 against their strenuous complaints to just let them have an Ultra, but when they eventually did optimize their software to run efficiently (on the 20) it helped set the company up for success in the wider market. Optimization should be treated as competitive advantage, perhaps in some cases one of the most important.
by PhilipRoman | 2025-05-13 15:01:18+00:00
In theory you're correct, but by that logic you'd also have to add ssh (probably by far the most common way of connecting to a remote terminal today). I guess you'd end up with something like mobaXTerm which is a valid approach for sure, but doesn't compose as well.

Personally I live by the maxim "if it can be separated without significant drawbacks, then it should be separate" but GNU tends to see it differently.
by psadauskas | 2025-05-13 15:01:34+00:00
I think of AI like a Junior Engineer.

If I understand the problem well enough, and have a really good description of what I want, like I'm explaining it to a junior engineer, then they do an OK job at it.

At my last job, we had a coding "challenge" as part of the interview process, and there was a really good readme that described the problem, the task, and the goal, which we gave the candidate at the start of the session. I copy/pasted that readme into copilot, and it did as good a job as any candidate we'd ever interviewed, and it only took a few minutes.

But whenever there are any unknowns or vagaries in the task, or I'm exploring a new concept, I find the AIs to be more of a hindrance. They can sometimes get something working, but not very well, or the code they generate is misleading or takes me down a blind path.

The thing for me, though, is I find writing a task for a junior engineer to understand to be harder than just doing the task myself. That's not the point of that exercise, though, since my goal is to onboard and teach the engineer how to do it, so they can accomplish it with less hand-holding in the future, and eventually become a productive member of the team. That temporary increase in my work is worth it for the future.

With the AI, though, its not going to learn to be better, I'm not teaching it anything. Every time I want to leverage it, I have to go through the harder tasks of clearly defining the problem and the goal for it.
by eochaid | 2025-05-13 15:01:39+00:00
This is a fun concept, and I love the name!

I’m curious why you didn’t use multiple choice for the exercises? I feel like those would be easier than typing out full answers and be closer to MOOC style homework. Maybe have a longer written question at the end of a section.

The exercises work pretty well, I like the highlighting red wrong vs. green right. It does feel a bit like the MOOC-style discussions. The tutor doesn’t just tell you the answers which is cool, but something about talking with the tutor feels a bit flat. And the flashcards weren’t very helpful for the course I picked.

I could see myself doing some courses like this with some more gamification. Being able to filter by course provider (Ycombinator, or MIT) would be cool too.
by fragmede | 2025-05-13 15:01:49+00:00
Looking at the Ryzen 7 9800X running at 5.2 GHz, if you chopped off 99.999% of that, you'd get a 52 kHz CPU, with 6.6 megaflops vs the original 6.6 gigaflops.

For reference, the original 4004 Intel CPU from 1971 ran at 740 kHz, so 52 kHz isn't even enough computing to do a secure TLS web connection without an excessively long wait. The 4004 did not do floating point, however, and it wouldn't be until between the 486 (1989) and the Pentium (1993) that we see 5-10 MFLOPS of performance.
by rcMgD2BwE72F | 2025-05-13 15:01:50+00:00
Curious to know what phone you got. A Pixel 9 with GrapheneOS is so much better than any iOS devices from my experience. But since users you have more freedom on Android, this will depend on what you do with it (e.g me, I use Syncthing to locally sync all my files and photos with several devices -- no cloud / subscription needed).
by thanatos519 | 2025-05-13 15:01:57+00:00
It's a great feature! I have used it in training sessions by giving each student their own login on my laptop, with the ssh shell restricted to 'screen -x <specific user's window>' - the only window that user could use based on screen's ACLs. Then during exercises I (as the owner of the screen) could switch to each student's screen on the projector so the class could see what they had done.

Not surprised to hear it's full of security holes. :)
by gms7777 | 2025-05-13 15:02:06+00:00
Null hypotheses are often idealized distributions that are mathematically convenient and are often over-simplifications of the distributions we'd expect if there were truly no effect (because the expected distributions are either intractable to work with, or irregular and unknown).

So for example, suppose you want to detect if there's unusual patterns in website traffic -- a bot attack or unexpected popularity spike. You look at page views per hour over several days, with the null hypothesis that page views are normally distributed, with constant mean and variance over time.

You run a test, and unsurprisingly, you get a really low p-value, because web traffic has natural fluctuations, it's heavier during the day, it might be heavier on weekends, etc.

The test isn't wrong -- it's telling you that this data is definitely not normally distributed with constant mean and variance. But it's also not meaningful because it's not actually answering the question you're asking.
by bwfan123 | 2025-05-13 15:02:37+00:00
these 100 rules are missing an important one. step back, and simplify. these rules are a result of overthinking which is something to avoid.

far simpler rules have been laid out numerous times in the classics.

such as: the golden rule of ethics, ie, dont do unto others what you dont want done to you, and the serenity prayer etc.
by nashashmi | 2025-05-13 15:03:11+00:00
I have been waiting for this to go mainstream for nearly six years now.

The whole point of having USB C phones is to connect to desktop docks and get full featured computers. Instead we have muzzled devices.

I would love something that I can use and maybe even use an RDP on, to function as a full desktop computer.

But like all common sense improvements, some come just too late after the boat has sailed.
by shadowgovt | 2025-05-13 15:03:25+00:00
Did the Clinton foundation raise that money during or after the Clinton Presidency?

If after, I don't see why there would be an issue. During is obviously an issue. And I can also see concern (though I don't remember anyone making the argument) that her connections to the foundation could compromise the candidacy of a President Hillary Clinton (having the spouse of a former President run for President was a novel scenario that leads to new questions).
by lanthissa | 2025-05-13 15:03:38+00:00
this done well is a transformational thing, its just no one has been willing to invest yet, but the compute on a phone is now good enough to do most things most users do on desktop.

I can easily see the future of personal computing being a mobile device with peripherals that use its compute and cloud for anything serious. be that airpods, glasses, watches, or just hooking that device up to a larger screen.

theres not a great reason for an individual to own processing power in a desktop, laptop, phone, and glasses when most are idle while using the others.
by xivzgrev | 2025-05-13 15:04:45+00:00
I like how these kind of lists get us talking and thinking about our own experiences. What do you agree with, not agree with?

“Those who bill by the hour work not for you but for the hour.” Strikes me as cynical. Yes some people can run up the clock, but paying by the hour is also fundamentally the most fair work arrangement. You are asking for someone’s time, you pay for that time.

Flat rate work gets into their own issues. For example, suppose you want your home deep cleaned and someone charges you $x to do so. A great deal!

Except you find after the fact they missed a lot of stuff. Technically they followed through on the letter of what you agreed to but they did the bare minimum. There’s no pride in the work. If you had paid by the hour, you could’ve asked them to stay and focus on some areas that matter more to you.

Or conversely, there’s lots of horror stories here about devs accepting flat rate work and getting endlessly dragged thru change requests
by lolinder | 2025-05-13 15:05:10+00:00
I think there's some truth to what you're saying here, but there is room for some nuance.

In the US context, you should refrain from blaming specific people and if you possibly can you should explicitly leave open the possibility that everyone involved was trying to do their best (even if you really don't think this is true). Project an assumption of good faith even if it's not deserved.

But that said, you are looking for a new job and no one is going to be surprised to hear that there were things you don't like. More importantly, it's valuable to surface those things because you want to know if the things you didn't like are commonplace in the place you're interviewing.
by paul7986 | 2025-05-13 15:05:13+00:00
If you ever used Google or Apple Maps to create a route for a trip through a state or to wherever ... you can add stop after stop after stop. In doing so both maps show you the distance between stops, but again you have to enter each stop. With both map apps and after you created your route you can take a screenshot and share the route with your travel friends during or pre-trip when planning. Instead of doing all that work in either maps apps GPT should be able to do that and create an image fairly quickly that I share with friends. This is similar idea to sharing the Icelandic menu GPT converted into a US Menu in USD via an image that I then shared with friends. Overall GPT is able now to create quick nice looking visually rich (with info) images that I can share with friends or whomever for whatever topic at hand. Unfortunately and atm not anything to do with maps, but im sure it will in time and then no need to use Apple or Google maps!

When asking GPT to create such map with routes (an image of such) with each destination I ensured to affix New Mexico to each NM location I want to go. Albeit, we aren't going as a lightbulb went off in our head last night saying wait White Sand dunes in June and go hot soaking in Truth or Consequences in June is a dumb (Sept or Oct seems better).
by tdthree | 2025-05-13 15:06:39+00:00
Poker is interesting. I think these videos do work in our current course generation process. However, I do think some subjects like poker need custom tooling around the course to really make the learning experience great. For example, access to solvers or actually playing a hand on a table is a part of the course experience as well. Chess is another one that falls in this special bucket imo. Some of this tooling is on the roadmap!
Show HN: Downloads Director – Auto-organize your Downloads folder by file type
by freakynit | 2025-05-13 15:06:46+00:00
https://freakynit.gumroad.com/l/downloads-director

MacOS app that automatically moves downloaded files into folders based on their extensions. You can create custom rules (e.g., .jpg → Pictures) and apply them in real time or on-demand. It works in the background and supports both ARM and Intel Macs. Free to use. Feedback welcome! Thanks..

PS: No strings attached kind of free. No personally identifiable data is collected. Completely safe to use. Just something I built for myself, then polished it a bit for others to use.
by mushufasa | 2025-05-13 15:07:18+00:00
in a sense apple is already doing this, since there's shared chip tech in the laptops and phones.

I still will prefer the form factor of a laptop for anything serious though; screen, speakers, keyboard.

Yes you can get peripherals for a phone, yes I have tried that, no they're not good. Though perhaps with foldable screens this could change in the future.
by FitCodIa | 2025-05-13 15:07:33+00:00
White lies are a necessary wrong; we just shouldn't turn them into a "modus operandi" at a company. Indeed I cannot wrap my brain around how white lies managed to turn into a social protocol in the Anglosphere. Dishonesty encoded in the most basic forms of verbal interaction. In comparison, when I say "good day" in my own language, it's truly not far-fetched that I do wish you a good day, when I'm greeting you.
Show HN: A tool to simplify invoicing in Stripe
by creativehubspac | 2025-05-13 15:07:43+00:00
I use Stripe a lot and when it comes to invoicing, it can become tedious and expensive when running multiple Stripe accounts. Stripe charges 0.4% often up to $2 each, to generate PDF invoices for one-time payment purchases, and these invoices are usually not editable.

I created a small tool that I use to generate invoices for clients from my various Stripe accounts, and avoid the Stripe charges. These invoices are editable and clients can update things such as VAT numbers, business info, or fix typos even after purchase.

With just a simple link, your clients can generate their own invoices from any purchases they have made from you. You just need to connect one or several of your Stripe accounts.

My target is merchants selling online using Stripe Payment Links, Checkout, or Subscriptions.

Whether you're a solopreneur, SaaS founder, or freelancer, your customers will no longer need to email you asking for invoices, they can generate them instantly, on demand.

Any and all feedback is welcome.
by zorokee | 2025-05-13 15:08:23+00:00
ArtificialCast is a strongly-typed object transformation library for .NET that uses LLMs to infer data conversions at runtime.

You define input and output types. It handles the rest—no mapping logic, no rules. Just structure, schema, and inference.

It works surprisingly well. A bit too well.

The failure mode is success.

I highly recommend reading the readme in the repo

Repo: https://github.com/Zorokee/ArtificialCast
by darth_avocado | 2025-05-13 15:08:36+00:00
There is a difference between tolerating a few things here and there because it’s a high stress environment and being okay with psychopaths mistreating and abusing you with the excuse of “high stress environment”. You do not need to put up with the latter. Fork em and you do not need those relationships to find your next job. The article trivializes a high stress work environment by putting everyone at the same baseline of “everyone is good, it’s just that the situation sucks”. In reality a lot of people are not good and the workplace is only “high stress” because those people are part of the workplace.
by reaperducer | 2025-05-13 15:09:09+00:00
this done well is a transformational thing, its just no one has been willing to invest yet

I think we've seen this before. Back before phones were "smart" there was one (Nokia, maybe?) that you could put on a little dock into which you could plug a keyboard and monitor.

Obviously, it didn't take off. Perhaps it was ahead of its time. Or, as you say, it wasn't done well at the time.

Phones accepting Bluetooth keyboard connections was very common back in my road warrior (digital nomad) days, but the screen was always the annoyance factor. Writing e-mails on my SonyEricsson on a boat on the South China Sea felt like "the future!"

Slightly related, I built most of my first startup with a Palm Pilot Ⅲ and an attached keyboard. Again, though, a larger screen would have been a game changer.
by runjake | 2025-05-13 15:09:26+00:00
I'm not aware of any Windows Phone implementation like this that existed commercially. Can you point me to it?

The first modern thing like this that I can recall is the 2011 Android-based Motorola Atrix phone[1] that presented a DeX-like desktop (well before DeX!).

It used an Ubuntu-based desktop. It was really, really good, but never got traction.

1. https://en.wikipedia.org/wiki/Motorola_Atrix_4G
by dole | 2025-05-13 15:09:36+00:00
"Franklin did not try to work on them all at once. Instead, he worked on only one each week "leaving all others to their ordinary chance." While he did not adhere completely to the enumerated virtues, and by his own admission he fell short of them many times, he believed the attempt made him a better man, contributing greatly to his success and happiness, which is why in his autobiography, he devoted more pages to this plan than to any other single point and wrote, "I hope, therefore, that some of my descendants may follow the example and reap the benefit."

[0] https://www.ushistory.org/franklin/autobiography/page38.htm
by dexterlagan | 2025-05-13 15:09:39+00:00
I feel for all who feel obsolete and unneeded. The only solution I found for myself was to switch from implementing other people’s ideas to implementing mine. It’s a luxury some cannot afford, but I honestly think it’ll be necessary for many to think long and hard about an idea they can monetize. I wrote about it here: https://www.cleverthinkingsoftware.com/programmers-will-be-r...
by jmathai | 2025-05-13 15:09:57+00:00
I think this is a great idea. I’ve learned so much on YouTube but it’s always been in small chunks and very task oriented. I imagine there’s a lot of content Which covers broad topics that I don’t come across.

Something I’ve been doing more and more lately is asking chatgpt to create a detailed description of a topic which can be read aloud for whatever duration I plan on driving. This works exceptionally well - even for short 5 minute drives.

I wonder if the same can be done for video-based content. Sometimes I’m short on time but still want to learn something.
by abanana | 2025-05-13 15:10:04+00:00
Exactly. Yes I understand the meaning behind it, but the line gets drummed into developers everywhere, the subtleties and real meaning are lost, and every optimisation- or efficiency-related question on Stack Overflow is met with cries of "You're doing it wrong! Don't ever think about optimising unless you're certain you have a problem!" This habit of pushing it to extremes, inevitably leads to devs not even thinking about making their software efficient. Especially when they develop on high-end hardware and don't test on anything slower.

Perhaps a classic case where a guideline, intended to help, ends up causing ill effects by being religiously stuck to at all times, instead of fully understanding its meaning and when to use it.

A simple example comes to mind, of a time I was talking to a junior developer who thought nothing of putting his SQL query inside a loop. He argued it didn't matter because he couldn't see how it would make any difference in that (admittedly simple) case, to run many queries instead of one. To me, it betrays a manner of thinking. It would never have occurred to me to write it the slower way, because the faster way is no more difficult or time-consuming to write. But no, they'll just point to the mantra of "premature optimisation" and keep doing it the slow way, including all the cases where it unequivocally does make a difference.
by bee_rider | 2025-05-13 15:10:37+00:00
I’m not sure I follow on the cpu shortage front. Phone cpus by their nature are attached to a degrading-over-time battery, and are much more power constrained… I have an already 6 year old i7 in my desktop… it can keep up with modern software still in a “I don’t even think about it” manner, which is to say I cranks through anything other than a large numerical simulation (dang Intel, I would have needed to go to an i9 to get AVX-512 back then I think).

Anyway I could happily get a couple more years out of as a main PC, then it will probably have a few years in it as a hand-me-down or tv computer.

That said, I generally agree that, I mean, we’re going to get phones anyway so it is nice to get something useful out of them.
by cryptonector | 2025-05-13 15:10:55+00:00
What's not clear from reading TFA is whether the compiler monomorphizes TFA's `Compact_array` for the two special cases of it (array of bytes vs. array of anything else), but I'm assuming so. Perhaps if I was familiar with OCaml the answer would be blindingly obvious. What's happening here is that w/ GADTs you can have a _singular_ abstraction with multiple distinct implementations for specific types and others for generic types, and you don't have to think about it too much, except you have to remember to use these type hints in the interface definitions to get the compiler to do what you want.

> Yaron Minsky joined Jane Street back in 2002, and claims the dubious honor of having convinced the firm to start using OCaml.

That's pretty cool. And I guess Stephen Dolan ended up there due to his work on OCaml, which is pretty cool too. (I'd like to meet Stephen some day.)
by nolist_policy | 2025-05-13 15:11:21+00:00
Hello, we and TFA are talking about the new API where the user picks what directory an app has access to vs. the old API where the app has access to almost everything as you pointed out.

The Google Play store (not Android the OS) is now limiting access to the old API, it has nothing to do with Android 11.

The new API does not work with Linux open(). Some projects (like Syncthing) don't want to put in the work to switch to the new API.

I hope that clears things up.
by bradford | 2025-05-13 15:11:52+00:00
Why is a repository called 'Microsoft Store' being hosted on a seemingly random github account?

Why doesn't the README file explain what this repository is doing?

OP, what did you hope to accomplish with this submission?

The lack of support on LTSC is the least baffling thing going on here but I'm open to the possibility that I'm misunderstanding something....
by jnovek | 2025-05-13 15:12:20+00:00
> But it was absolutely terrible - 9 out of 10 requests were people trying to talk to chatGPT

I don't totally follow, probably because I don't tend to run ad campaigns and I'm not up with whatever shenanigans advertisers are doing these days. What do you mean when you say that they were "trying to talk to chatGPT"?
by pheelicks | 2025-05-13 15:12:29+00:00
As a user, you generally don’t care about the math (and S2 is hardly simple either, as it warps the squares prior to projection). You just call the API and use the indices for spatial joins or computations.

The primary benefit is indeed the ability to treat cells as if they are equal areas. This is something people do currently with H3, but it introduces a bias. Contrary to popular belief, this is not only an issue near the poles or in the ocean.

The other difference is aesthetics, people generally find H3 more pleasing to look at than S2, which is why it gets used in visualization more. You can make the same argument for A5, although of course it is a matter of taste!

Finally, you are correct that H3 was originally developed at Uber for their specific use case, however it has since been used in many other contexts and I think it doesn’t hurt to have some alternatives as conceptually S2/H3/A5 are similar