MurphyA/hacker-news huggingface dataset:
by zephen | 2025-12-29 02:59:54+00:00
> No, it's not the exact same external library.

It uses the exact same assembly language.

> There's an additional Rust library in between that they used, which provides the `FFISafe` type, and that has overhead.

Look, I wrote " But the point is that the exact same external library code has a _lower_ cost if called [from C]" and that remains a true statement. It's pretty obvious that I was referring to the shared code, otherwise, it wouldn't have ever been called from C, right?

The profiler showed that the identical assembly language itself was taking more cycles when called from C.

> There's an additional Rust library in between that they used, which provides the `FFISafe` type, and that has overhead. This is not a standard Rust library, or even one that I'm able to find within a few minutes of googling despite having used Rust for over a decade.

The point is that they did the absolute normal expected thing in Rust, and it slowed down the external assembly language library, and after a _lot_ of digging and debugging, they changed the Rust code to be a lot less flexible and more convoluted, and now the assembly language is almost as fast as when it is called from C.

> Your argument seems to boil down to "Rust claims to be efficient, but it's possible for someone to write inefficient code, and for me to use that code, so therefore those claims are wrong".

No, that's not my argument at all. Look, the people doing this _obviously_ know Rust, and it took them a _long_ time, and some _really_ ugly concrete low-level concrete code, to take external code and make it perform almost as well as if it had been called from C++.

To me, that looks like a high-cost non-abstraction.
by sxp | 2025-12-29 03:00:11+00:00
One option is to find a good doctor/psychiatrist/therapist and try to get diagnosed. (You can also try to self-diagnose via the Interne, your favorite LLM, or just skimming the https://en.wikipedia.org/wiki/DSM-5, but that's a risker option due to false positives and noise.)

If you do have a well-studied issue such as https://en.wikipedia.org/wiki/Autism or https://en.wikipedia.org/wiki/Schizoid_personality_disorder that interferes with socialization, you can find support groups and people who have been able to succeed even with those issues.

Some of these social problems (e.g, ones caused by missing childhood socialization experiences) are curable through practice, but others will require you to learn enough about human social behavior to mask until someone figures out a cure. It can be exhausting, (just like physical exercise can be exhausting) but it's a useful skill to have in order to do well in life.

Good luck.
by jmward01 | 2025-12-29 03:00:58+00:00
Agreed. Publish, but don't publicize. My remarks were aimed at the article, not the paper. This sounds like a promising, very initial, study that needs a lot more data before making claims about having found anything. Qualified headlines like 'Early study hints at..' Or 'Initial research potentially shows a promising....' would be better but even then a study with this little data should be very cautiously approached by any type of science reporting. More than mentioning it in passing as promising is probably not warranted until the n value is a lot higher and involves other teams and other methods.
by rayiner | 2025-12-29 03:02:03+00:00
> For the latter, a big argument of "No need to invest in commuter trains" argument was "self driving cars are 'just around the corner' and they will make mass transit a quaint thing of the past" was used to deny investment in trains.

People don’t want to invest in trains because Americans don’t like trains. We have only one real city, and that city’s population consistently has net domestic outmigration. The city’s population is kept stable by a steady supply of international migrants: https://www.cityandstateny.com/media/ckeditor-uploads/2025/0....

Most Americans don’t want to commute sitting next to strangers. It’s not complicated.
by AstroJetson | 2025-12-29 03:03:15+00:00
I have the same system, todo become done. I also add done things that I didn’t expect/ plan to do. (Life’s curve ball). I also started tracking “what is the worst thing that happened today”. That’s added perspective that I may think I had a bad day, when in fact I got these things done and the worst thing was actually pretty minimal.
by zem | 2025-12-29 03:03:34+00:00
my time at google likewise led me to the conclusion that fakes were better than mocks in pretty much every case (though I was working in c++ and python, not java).

edit: of course google was an unusual case because you had access to all the source code. I daresay there are cases where only a mock will work because you can't satisfy type signatures with a fake.
by robocat | 2025-12-29 03:04:10+00:00
> if you drink coffee be aware that caffeine withdraws are painful.

I've successfully used caffeine pills (e.g. some NoDoz brand products) for coffee replacement to avoid withdrawal symptoms.

Specifically I used caffeine pills to give up coffee. I found it easy to taper down caffeine usage to zero by using a standardised dose size.

Additionally pills are a habit change which helps me stick with a plan. I have tapered down using instant coffee but I found that was a little harder to police myself.
by WillAdams | 2025-12-29 03:04:12+00:00
It's worth noting that the concept of a "Compose" key seems to have originated on DEC's specialized word-processors (physical machines which just did text editing), and that when Windows came on the scene, someone at DEC created "COMPOSE.EXE" which brought that functionality to Windows --- it continued working up through very late Windows 95 betas, then was broken and never updated.

There was a replacement in "AllChars" which is still on Sourceforge: https://sourceforge.net/projects/allchars/ but hasn't been updated for a while.

Looks like:

https://wincompose.info/

is up-to-date, and if I wrote more, would definitely try out, but these days, either I write the accented character w/ a stylus, type out the LaTeX command, or use the on-screen keyboard via touchscreen.
by timmytokyo | 2025-12-29 03:04:46+00:00
>We don't use IL2CPP because we use many features that are not compatible with it. For example DLC and mods loading at runtime via DLLs, reflection for custom serialization, things like [FieldOffset] for efficient struct packing and for GPU communication, etc.

FieldOffset is supported by IL2CPP at compile time [0]. You can also install new DLLs and force the player to restart if you want downloadable mod support.

It's true that you can't do reflection for serialization, but there are better, more performant alternatives for that use case, in my experience.

[0] https://docs.unity3d.com/Manual/scripting-restrictions.html
by mooglevich | 2025-12-29 03:06:28+00:00
tl;dr - Heather Cox Richardson!

My original mini-essay (heh):

It hasn't 100% worked for me, but it's been progress for me to:

- turn on grayscale
- don't use any social media
- turn off all recommendations for the two indulgences I do have (YouTube, Reddit)

The no recommendations has been especially helpful because I only have my subscription feed, and I can curate that.

As far as news goes - Economist is a good one imo. Weekly news is a fast enough cadence that also filters out noise and nonsense from the knee-jerk, instant reaction news cycles. I've also found the New Yorker to be pretty great, since their pieces are so long that they're usually about events that happened weeks to months ago.

But +1 to others' comments: maybe you don't need to know everything, either. Reading books about history, even recent history, has been a great way for me to fulfill my need to understand our society.

Despite all that I've typed above, if you really want to get regular news consumption, I highly highly recommend Heather Cox Richardson. She distills the daily news and often adds historical context.
by dartharva | 2025-12-29 03:06:57+00:00
What gives a government legitimacy and power to extort taxes and punish people? Collective acceptance and trust, nothing else. Same goes with religion.

> What verifiably happens to me if I don't pretend I believe your particular god exists?

Used to be not that long ago that you'd face similar punishment. It's fairly recently that religion as a social institution has weakened to obscurity. If you attack its symbols, you attack its society.
by jeremyjh | 2025-12-29 03:07:49+00:00
I agree. I mostly only use mocks for external service dependencies (apart from primary application database), or library features that are very problematic to use in test. A lot of code simply should not be unit tested - if an integration test can cover the same paths its far better in the long run. Performance can become an issue but it is easier to deal with that than to spend so much time maintaining and debugging mock constructs.
by bschmidt107979 | 2025-12-29 03:07:56+00:00
Are you guys serious with these takes?

You very often have both NoSQL and SQL at scale.

NoSQL is used for high availability of data at scale - iMessage famously uses it for message threads, EA famously uses it for gaming matchmaking.

What you do is have both SQL and NoSQL. The NoSQL is basically caches of resources for high availability. Imagine you are making a social media app... Yes of course you have a SQL database that stores all the data, but you maintain API caches of posts in NoSQL.

Why? This gets to some of your other black vs white insults: NoSQL is typically WAY FASTER than SQL. That's why you use it. It's way faster to read a JSON file from a hard drive than it is to query a SQL database, always has been. So why not use NoSQL for EVERYTHING? Well, because you have duplicated data everywhere since it's not relational, it's just giant caches essentially. You also will get slow queries when the documents get huge.

Anyway you need both. It's not an either/or thing. I cannot believe this many years later people do not know the purpose of SQL and NoSQL and do not understand that it is not a competition at all. You want both!
by terminatornet | 2025-12-29 03:07:57+00:00
> People find me funny and when I do talk to people we have decent conversations (though small talk tends to bore me).
> However that doesn’t lead anywhere and doesn’t bring me any kind of comfort or fulfillment

You have two good things going for you here:

- you're able to hold a conversation with people, even if it might not be as deep a conversation as you'd like it to be.

- you're funny and can joke around with people.

It sounds like you might have some surface level relationships and want deeper connections with people, which is totally understandable. Small talk can be boring at first, but it often opens the possibility of deeper relationships. I'd recommend low-stakes/activity based social interactions and seeing where they take you.

Some ideas:

- If you're on your way to the dining hall to get a meal, ask your dorm mates if they wanna join

- Colleges have a movie night on weekends to see a movie for free, ask class mates, dorm mates to go.

- Does your campus have like a rec/game center (think pool, air hockey, games etc). Another thing to ask people to.

You might have to suffer through a lot of rejection before you get takers. After that you might have to suffer through small talk about the weather, where someone is from, what their major is, etc before you get to the deeper connections.
by docmars | 2025-12-29 03:08:49+00:00
The added dimension really made things intuitive so you weren't left guessing which vertical had to do with what. One space would give you enough context to know what might be next navigating up/down. It's really a shame how disruptive the change to Mission Control was by removing them.

I tend to organize my spaces by projects and then a dumping ground for "everything else" like general browsing and music.

For projects, unique windows are typically: IDE, Browser(s)

For apps I commonly use across spaces, I assign them to "All Desktops" so they follow me, like iTerm2 and Heynote for keeping notes / task lists even if they cover multiple projects.
by lazylizard | 2025-12-29 03:08:56+00:00
in the last 5-10yrs...letsencrypt made ssl much easier..and its possible to host on small,cheap arm devices...

yes no more dyndns free accounts... but u can still use afraid or do cf tunnels maybe?

and in some cases nowadays u can get away with

docker-compose up

and some of those things like minio and mattermost are complaints about the free tier or complaints about self hosting? i can't tell

indeed the easiest "self hosting" ever was when ngrok happened.. u could get ur port listening on the internet without a sign up... by just running a single binary without a flag...
by bluGill | 2025-12-29 03:08:57+00:00
Why would I want to create tests for every part of the code? I did that for years because I was taught that, but I came to realize it never mattered - if a test breaks it is because of the last thing I changed. I have a few flakey tests from time to time, but they have been not too bad to track down nd often taught me enough about how the system really worked as to be worth the time anyway.
by osiris88 | 2025-12-29 03:10:06+00:00
Yeah, the edition thing is cool, but there's also a cost to it, which is that over time you accumulate more and more support code in the compiler for really ancient editions.

I don't have a super good understanding of how it actually works in rustc. In C++ typically they would use name mangling tricks to try to keep new and old standard library symbols from clashing if they decided to break compatibility. Probably with rustc they are happier to leave it unspecified. I have a hard time building a mental model of what kinds of things would be totally impractical to change with an edition.
by Frannky | 2025-12-29 03:10:09+00:00
Electronic devices are very effective distraction tools, especially phones. Companies and apps leverage our psychology and biology to get our attention, but we can take control of what we interact with—and if we remove the hooks, they won't be able to exploit them anymore.

What could help is taking control of how devices interact with us, rather than letting other people control that. This includes deciding which apps can be installed, how often they can notify or distract us, and so on.

A very basic step is using an app blocker. The ideal solution would be a phone with a local AI that is aligned with my personal preferences and instructions.

For example, it could deliver news just once a week from outlets across the entire political spectrum, eliminate social media entirely, and surface only important emails and messages at the most appropriate times.
by boronine | 2025-12-29 03:10:34+00:00
You can literally download a file called LineageOS_on_arm64.utm from the Releases page, drag and drop it into UTM and it Just Works. I've been looking for this holy grail for years.

(Seems that the bulk of the work is done by some heroes in the LineageOS community: https://wiki.lineageos.org/utm-vm-on-apple-silicon-mac)
by yardstick | 2025-12-29 03:10:37+00:00
> burns out because he doesn't want to put up with a bunch of annoying work

It’s more than annoying work, it’s pointless work needlessly created by people other than him.

It’s like migrating from Java 8 to newer versions, the decision makers placed backwards compatibility at the back of their priority list. Literally a decade later it’s still griefing migrating users, all because “Jakarta not javax” nonsense. I’m greatly simplifying but that’s the essence of it.

Now we have some genius decision to I guess protect against untrusted code doing unexpected things. And at the same time Applets are gone and Security Manager is gone. And the reality is that Java applications aren’t run with untrusted code. The run scripts define all the jars/classes used. If there was some malicious code that wanted to run, I’m fairly confident it would also just modify the run scripts to include this new flag.

So all we’ve gained is support headache and pain, and no real net gain in practice.
by ericmay | 2025-12-29 03:10:50+00:00
> TLDR USN can't do anything against PRC, but doesn't have to do anything VS everyone else.

Eh the USN can still maintain superiority outside of the South China Sea which means control of global trade. It’s not like it’s useless or anything even if the Taiwan straight turns into a dead zone or if the USN has to worry about missiles from the Chinese mainland. China also has to worry about missiles hitting their mainland industrial centers and naval facilities too.
by hecanjog | 2025-12-29 03:11:01+00:00
You sure can! They all have inline defaults like `<span>` so set some CSS baseline on them as needed, but this is like the best kept secret of HTML or something? Unknown tags will become `HTMLUnknownElement` and behave like a span.

Edit: the reason for avoiding this in the past was name-spacing. But the standard says you can use a hyphen and then you're OK, native elements won't ever use a `-`.

Edit 2: also it's great because it works fine with CSS selectors too. Write stuff like `<image-container>` in plain HTML docs and it's fine.

Edit 3: but also `<albums>` tags and etc which won't be adopted into the HTML standard soon work too if they don't conflict with element names, and the rare case that they might be adopted in the future as an element name can be resolved with a simple text search/replace.

Edit 4: This all really has little to do with javascript, but you can use `querySelector` and `querySelectorAll` with any of these made up names the same as any native name too.

It's very nice to write. I used and liked vue for a little while when it was needed(?) but modern HTML fills that gap.
by gkoberger | 2025-12-29 03:13:19+00:00
I probably wouldn't do this for a lot of reasons.

That being said, if you read through that post and were intrigued, you might also like custom web components: https://web.dev/articles/custom-elements-v1

It's a simple way to add more to your "made up" HTML tags. So you could have a tag called <my-code>, for example, that automatically has a copy button and syntax highlights the code.
by danielrm26 | 2025-12-29 03:13:26+00:00
Definitely. We have to find ways to replicate this.

One thing I've noticed is that I've actually learned a lot more code about things I didn't understand before. Just because I built guardrails to make sure that they are built exactly the perfect way that I like them to be built. And then I've watched my AI build it that way dozens of times now. Start to finish. So now I've just seen all the steps so many times that now I understand a lot more than I did before.

This sort of thing is definitely possible, but we have to do it on purpose.
by SilverElfin | 2025-12-29 03:13:42+00:00
One thing I don’t understand is the tie up between the current far right - not MAGA but even more right wing like Nick Fuentes/Groypers and adjacent people that are supremacist - and Catholicism. Why is religion part of the resurgence of far right politics? And why Catholicism instead of the other types of Christianity that are more popular in America? I would have expected young males in America to skew atheist, but it seems the modern supremacists are also theocratic.
by shalomv | 2025-12-29 03:15:19+00:00
I had the 2019 MacBook Pro i9 too. Applying thermal pads to the VRM module fixed the throttling problem. It was like a brand new computer, the one I thought I was purchasing.

After buying it, I regularly had throttling issues. Nothing seemed to help. I tried all the recommended tricks but wasn’t getting anywhere. (I had two external monitors and using adobe creative suite back then.)

I came across some forum posts about the VRM module not being able to cool and that was making the system think it was overheating. It sounded reasonable so I decided to give it a shot. I got the thermal pads, carefully opened the laptop and applied a few layers to the various components to make sure it was touching the case (this is what makes this mod work properly, heat transfer to the aluminum case.)

It worked like magic, it felt like a brand new computer after months of bad experiences.

Only side effect was that bottom case gets really hot (that heat needs to go somewhere) so I couldn’t comfortably use it on my lap. But I never regretted doing the mod for a second!

I retired what was my then favorite computer for an M3 MacBook Air with 24gb ram and couldn’t be happier. I still have fond memories of my 16 inch 2019 MacBook Pro, if you still use that computer, please do yourself a favor and at least look into adding thermal pads to the VRM modules.
by netsharc | 2025-12-29 03:15:26+00:00
One probably needs an assistant that tells one news that said assistant knows is important to... one. What news actually is important? E.g. if Bitcoin is crashing? (Probably not just important for crypto-bros, but could affect the broader economy). If you're planning trip to Sicily and Mount Etna just erupted. Or if you have relatives there..

I guess the assistant should know whether a piece of news can be important or not, but if something happens to be a slow-boil (e.g. the fascist takeover of the USA), it could end up as a surprise.

Perhaps one of those planet-burning text generators can be one such assistant...
by fallingfrog | 2025-12-29 03:16:07+00:00
The autism itself, depending on the person, is often less of a problem than societal expectations. For example- in a world where everyone was red/green colorblind, such a condition would not be considered a handicap. And in a world where everyone was autistic, many things would be different.

Society punishes us severely for not being able to see the difference between red and green, to use that metaphor. And they seem to expect that if they punished us just a little harder, we would suddenly become normal. Thats the big problem. Non conforming behavior is always treated as a crime or offense on some level, but we cannot conform, and therefore must adjust to a life of endless punishment doled out by both authorities and peers.

Its quite difficult to go through life that way without developing a negative self image. This goes for people with autism, adhd and other types of neurodivergence.
by osiris88 | 2025-12-29 03:16:29+00:00
Let me be clear cause I think my initial post was harsher sounding than I intended.

I love working in rust. I love Result, and the ? sigil, etc. I love the enums and match, and how non_exhaustive works. I love all that.

I think that means I love rust error handling as well!

I just didn't love `std::error::Error`, it caused some pain. I think they should have just waited to stabilize until it was ready to go in core. If it wasn't there on day 1, rust error handling would have worked great! It's actually a pretty small and inessential part of the rust error handling story. I mean at this point I've hardly used it at all in 8 years using rust almost every day.

And all those churning crates, failure etc., like, that was just some people's opinions about what a fancier error framework might look like. And absolutely you're right we didn't need to get on that treadmill.

I wanted to support the OP's minimalist take though and complement it with my own though -- for a certain type of engineer that I have worked with, "use std::error::Error` looks like a "best practice" and that means that we aren't writing "good" or "idiomatic" rust if we don't use it. I do think it's a completely valid choice to eschew it. But it is somewhat harder to justify if that trait is in core now.