News for hackers. Stuff that matters.

kawogi

Re:Saving another 100TB of RAM with math (and Rust) on Friday September 18, 2026 @03:51PM (#49759322)
AIded development?
In theory, air-gaps can be circumvented by bribing or blackmailing people, which is in reach for an LLM/agent.
Re:C2PA Cameras Do Not Survive Contact with Reality on Wednesday August 26, 2026 @06:40AM (#49446717)
I think the term "AI incest" would sum this up :)
Re:Europe EV Sales BEVs Jump 50% & Reach 26% Market Share on Sunday August 02, 2026 @06:24PM (#49149044)
While I'm waiting for my Kia EV3 to arrive, I'm desparately trying to figure out which wallbox I need to buy to make use of V2H/V2G. Everything claims to be "ready", but I still don't know whether V2H/V2L will be DC or AC. Which protocol do my smart meters have to provide? What about the PV-inverter? How many apps will I need? How many cloud accounts? What about island-operation? Will I be able to use Home-Assistant for everything? What about feeding in the flexible pricing of my power provider? Another App/API? Which node in this hairball will have which role? Will the car decide when to charge? Or the App? Or the Wallbox? Or its App?

I'm drowning in theoretical options and I'm left with the feeling that everything seems to be possible in theory, but I won't find a solution that works in practice. There are just too many protocols and regulations at play.

Would have loved to wait another year until the dust around these topics have settled a bit, but the old car broke too early :( (sorry for the rant)

IIUC that was meant as an intermediate step (which isn't uncommon), which IMO makes the translation way less exciting.

The interesting part will be whether they can transform that "mechanical Rust" into something idiomatic. I'm waiting ...

In my experience, it absolutely does (at least if you use it idiomatically). Using the type system (esp. enums, Result and newtypes) makes a good bunch of invalid states irrepresentable.

This also helps to focus on the remaining things that could go wrong.

The integration of unit tests also lowers the barrier to just sprinkle some tests in, if you're unsure that you got an edge case right. Anf clippy (not stricly the language, but still kind of a core component) greaty helps to stay on the idiomatic track.

No silver bullet of course, but I never had so few runtime issues with any other programming language so far.

What logic bugs did you encounter the most?

edit: mobile typos

Re:1.38 Millimeter Microcontroller on Monday June 29, 2026 @11:27AM (#48720554)
I had no troubles targeting an ATTiny13A with Rust.

(had to disable debug symbols, though)

Why should that be any harder than C?

Re:Learnings from 100K lines of Rust with AI (2025) on Wednesday May 20, 2026 @06:40AM (#48205657)
IIUC only 50k LoC are non-test code, which improves the metric. Whether that's enough tests still depends on the code. If most are getters and setters, the coverage might be ok.
Re:Box to Save Memory in Rust on Monday April 27, 2026 @07:07AM (#47920069)
I often wish this type existed, but didn't find a way to define the niche value for the compiler to optimize the None-case.

Do you know a solution to this?

Support for Firefox on Linux is still only in nightly (unless that changed "very" recently)

This blocks progress (and motivation) on some of my projects.

Re:Is Rust faster than C? on Wednesday January 14, 2026 @09:01PM (#46627003)
In your specific example `std::convert::Infallible` can be used: https://doc.rust-lang.org/std/convert/enum.Infallible.html
Re:Wait Until 8th on Thursday October 31, 2024 @07:55PM (#42012746)
LineageOS was just the easiest for me personally (was already installed anyway). But aren't there parental tools to lock down phones for non-tech people?

Another middle ground would be to insert no SIM card (my kids only had access via WiFi at first) or to disable mobile data.

Maybe my kids are special, but so far it was enough agree upon rules about what they are allowed to do. As soon as they break the rules they will loose some of their benefits. No rule works for everyone, but simple "no" to a technology that has so many upsides for our family life is also nothing for me.

Edit: also "selling a locked-down phone" is exactly NOT a solution. Parents will have to learn the up and downs of this technology and apply an individual solution to their situation.

Re:Wait Until 8th on Thursday October 31, 2024 @07:07PM (#42012451)
> Initial results from a groundbreaking study by the National Institute of Health reveal that MRI's found significant differences in the brains of children who use smartphones, tablets, and video games more than seven hours a day.

Reminds me of "Every single person who confuses correlation and causation ends up dying".

Jokes aside: "more than 7 hours a day" is a _quite little more_ than the 0 hours the site is asking for. Also I'd guess it might make a difference whether the kids are using a drawing app, tiktok, learning a foreign language, reading an eBook, playing a shooter, gambling, …

Re:Wait Until 8th on Thursday October 31, 2024 @06:46PM (#42012327)
Who will teach them how to (not) use them once they have one? I mean things like privacy, phishing, social media risks, addiction, subscription fees, etc.?

I think the possession of a device isn't the risk itself.

Re:Wait Until 8th on Thursday October 31, 2024 @06:37PM (#42012273)
So, no flexibility, spontaneity? So far we had:

- "I'd like to stay with a friend after school - they'll drive me home after dinner", "Sure, thanks for the info, have fun"

- "Fire alert, I'm fine but bored"

- "Had to help a friend with an accident, will be home 1h later approx"

- Bus didn't turn up, uses app to improvise an alternative connection

- asking teachers about details from the lessons

- getting a news-feed from school

- looking up the schedule if things change

- manage their calendar and todo-lists

- set an alarm/reminder

So basically "everything" an adult does with their phone to make their lives easier.

After that there's enough brain left to learn that social media is something that needs special attention

Re:Wait Until 8th on Thursday October 31, 2024 @06:28PM (#42012208)
I had the same sentiment when reading.

It all looks like B'n'W opinions and mixing devices and services. I completely miss the "parenting" aspect. It's all about prohibition.

Re:Wait Until 8th on Thursday October 31, 2024 @06:25PM (#42012197)
I wholeheartedly agree.

I think it's more important to talk about the services they use than what device they're on.

And most problematic services already have an age limit. It's the parents' damn job to make sure their kids are prepared for the usage of those services.

I'm more worried about the youtube-consumption on the PC than chatting with class-mates about school-related questions via smartphone.

Re:Wait Until 8th on Thursday October 31, 2024 @06:00PM (#42012008)
> Let’s protect the elementary and middle school years from the distractions and the dangers of a smartphone.

> … because of unrealistic social pressure and expectations to have one.

Sorry, but I do not agree with the equivalence of a device and one of its possible usages.

My kids got their first smartphone at the ages of 5-6. (dramatic pause)

When I was younger me and my siblings got a camera, a Game Boy, a watch, a walkman, a calculator, a stopwatch and small handheld battery-driven games. Later a tamagotchi and whatever was trending. Also we were taught to use the phone-booth in case of an "emergency". While you do not have to agree that all of us needed all of this, nobody would've said to "wait until the age of 13" with all of this.

The phone I gave my kids were retired Android smartphones with Lineage OS installed. Almost all Google Apps removed or disarmed. I preinstalled Apps like: a calculator, camera, a secure messenger (Threema), clock, navigation (OSMAnd), a few educational games, a paint/drawing app, a calendar and added the most important contacts (Parents, siblings, grandparents) to the address book. We added more apps over time when we felt they might benefit from them.

We agreed upon usage duration and modalities. We mostly moved their TV-time towards their phones. We explained how to ask before taking a photo of a person.

What happened? My Kids started to get interested in how to read/write, used the navigation software during road-trips to find the next possible stop to have a break or try to find POIs along the road and wait them to pass by. They played with the calculator, started to learn English (non-native if that wasn't obvious, yet), started to "program" robots, send me "good nights" when I was late at work. Call me if they spontaneously decided to stay with a friend after school. Take photos during their holidays, listen to audiobooks during road-trips. Play with the torchlight in the tent.

The older one is now 12. She got access to our family calender and contact list, so she can plan her appointments with friends around ours, manage her ToDo-lists, make stop-motion videos, research all sorts of stuff on wikipedia, gain a very good understanding of how those devices work. Learn to take care of expensive gears and how it matters to have control over their own data and that backups are important. She learns how to manage her data plan by moving audiobooks for offline-usage. Also she helps her grandparents with all sorts of technical problems they have with their phones.

Yes, it's more work to teach a kid how to work with all this stuff than just throw an iPhone at them when they turn 13 and say "whoa, finally old enough to figure this all out." What could go wrong. Sorry, that I'm a bit salty on this topic (and I sometimes might not find the right words due to the language barrier), but just saying that a smartphone is bad because parents do not care for what their kids are doing with the device just feels plain wrong to me.

Re:Intel is on life support. Can anything save it? on Thursday September 12, 2024 @06:19PM (#41526238)
At least everyone who's stuck with Windows and AAA-gaming. But we'll see for how long.
Re:Creating an empty iterator of a certain type in Rust on Saturday September 07, 2024 @02:44AM (#41471990)
> However, this solution is not very ergonomic, as it requires the user of the function to first check if the returned value is Some(iterator) and only then iterate over the iterator.

I'd use `flatten()` to iterate over this nested type.

Re:YouTube embeds ads into videos to beat ad blockers on Friday June 14, 2024 @02:48PM (#40683706)
I really wish that I could pay for an ad-free service, without being tracked on every site there is :(

Just offer a plain youtube-Account and we have a deal.

Re:Show HN: PyKidos, Teach Your Kid Python in the Browser on Thursday March 14, 2024 @02:51PM (#39707570)
Our kids at school are using https://cscircles.cemc.uwaterloo.ca/ for an introduction to Python and it seems they're making good progress (age 11 to 14)

It's available in German (and maybe other languages), too.

Re:Lego Became the Apple of Toys (2015) on Tuesday February 06, 2024 @04:02PM (#39280552)
Ah, yes. Should have been more specific: NXT and EV3
Re:Lego Became the Apple of Toys (2015) on Tuesday February 06, 2024 @03:25PM (#39280047)
I'm still mad that they discontinued Mindstorms. My school isn't able to replace their components if they break and I cannot get additional motors for my projects any more.

Does anyone know how good their "LEGO® Education SPIKE™" stuff is? Is it as open as the NXT-bricks? Are these somewhat compatible? Linux IDE available?

I wish someone would offer a replacement for those who have a 3D-printer, rp2040 and some soldering experience. I'd help the school to re-stock their supply.

Edit: 35 € for a 2 A USB power supply is definitely Apple-ish. And those peripheral connectors look like they're … unique. Mindstorms just had standard RJ-something plugs.

Re:Dracula Theme for Hacker News on Tuesday January 30, 2024 @01:21AM (#39186958)
Funny coincidence. I found Dracula for VSStudio two days ago. So far it is the only dark theme that provides overall readable texts combined with red-shift for me.

Single-line comments could be a bit brighter, though.

Re:It's never been a better time to switch to Firefox on Wednesday November 22, 2023 @01:14PM (#38382856)
you can swipe the address bar to switch between tabs. Better than nothing.
I like my Fairphone, but it's certainly not everyone's choice.
That's the second time on HN where I thought some article was about the window-system :(
> Germany is filling the gap by importing electricity from France

Not to disagree, but the picture is more complex.

https://www.reuters.com/business/energy/even-crisis-germany-...

> Maybe ask France or the US, they seem to be more practical on how to do this

Was curious about that as well, but I only keep finding "solutions" that are in the make or disputed.

This is from 2014, so maybe they found a solution in the meantime? https://www.bbc.com/news/science-environment-26425674

I'm also trying to find the final costs of any disposal.

Renewables aren't without problems of course. We still need a solution where the blades of the wind turbines don't end up in landfills. That's effectively not renewable.

> And PV panels don't? You need many less trucks of uranium than of coal

I don't understand. Coal isn't required to build PV? We once had PV industry here but everything moved to $China :(

> I know. But this doesn't sound too healthy neither https://pubmed.ncbi.nlm.nih.gov/11900206/

Not sure why everyone assumes I'm pro coal when I explicitly stated that I'm trying to push renewables.

I never suggested that "my personal solution" is to be applied everywhere. I suggested to work on making renewables more approachable and to reduce the energy consumption where it's feasible.

Not sure why I'm being personally attacked like this.

Older »