News for hackers. Stuff that matters.

dajtxx

Re:Preventing line breaks in <code> elements on Friday July 24, 2026 @10:11PM (#49043854)
The 5 cm example had a line break between the 5 and the cm when I read the page in my phone. A joke?
Re:My Midlife Crisis Corolla Is Fast, Furious, and Modded on Wednesday July 15, 2026 @11:34PM (#48930062)
Sorry for all the nasty replies here. You do you! I’m a car & bike guy so I’m glad you got a cool car and modded it as you like. I’m hoping for an old 900ss or monster for my delayed mid life crisis purchase but money isn’t there.
I agree but I think the problem will be if the consequences are that dire then entire classes of business will cease to exist OR the cost of doing things properly will be passed on to the consumer.

I struggle to see how data brokers, social media, etc are a net benefit to society so would be happy to see those sorts of businesses cease to exist, but I suspect I'm in the minority.

Re:Windows GUI – Good, Bad and Pretty Ugly (2023) on Tuesday November 25, 2025 @04:05PM (#46050782)
It's a nice thought but think of the cost!

You do have to wonder what the hell the people in charge of the Windows UI are thinking. They seem to have got it so badly wrong. But so has Apple in macos.

Re:Windows GUI – Good, Bad and Pretty Ugly (2023) on Tuesday November 25, 2025 @04:03PM (#46050754)
Don't kwow why you're getting downvoted, seems like a reasonable comment to me.

I agree, JavaScript and all it has enabled is a curse.

If one wanted the good bits of JavaScript I'm sure there are languages they were copied from that could be used instead.

Re:Meta is axing 600 roles across its AI division on Wednesday October 22, 2025 @05:22PM (#45675320)
Still not feeling any sympathy. These people are actively working to make society worse.
Re:Coding a new BASIC interpreter in 2025 to replace a slow one on Tuesday September 30, 2025 @07:41PM (#45432670)
I had a job in the early 90s where another team were using Wang 2200s which I'm sure were coded with line-numbered BASIC.

Could be one of those with the everlasting ERP type software running on an emulator.

Re:Why Local-First Apps Haven't Become Popular? on Tuesday September 23, 2025 @07:19AM (#45345460)
I think Fusion360 is one of the worst things I've seen. It presents as local but it feels like every mouse click causes a web request to happen.

Something that should be local and snappy is just an awful experience.

Re:Why Local-First Apps Haven't Become Popular? on Tuesday September 23, 2025 @07:16AM (#45345434)
Such a weird and absurd conversation to be having from the PoV of someone who started using computers a long time ago.

Offline first apps 'sound like the future'? I agree they're far better than the trash we have now, but it's not like we can't build them now.

We should be building them now. The web was never meant to be an app delivery platform :(

Re:WASM 3.0 Completed on Wednesday September 17, 2025 @08:52PM (#45283494)
6502 zero page instruction vibes.
Re:Claude can now create and edit files on Wednesday September 10, 2025 @01:46AM (#45193781)
I saw this yesterday. I was asking it to update an SQL query and it was saying, 'I did this' and then that wasn't in the query. I even saw it put something in the query and then remove it, and then say 'here it is'.

Maybe it's because I use the free tier web interface, but I can't get any AI to do much for me. Beyond a handful of lines (and less yesterday) it just doesn't seem that great. Or it gives me pages of javascript to show a date picker before I RTFM and found it's a single input tag to do that, because it's training data was lots of old and/or bad code and didn't do it that way.

I used stty to make interrupt ktrl-k, then configured the terminal app to make copy/paste ctrl-c/ctrl-v.

I use copy/paste more than I use interrupt.

I hated MacOS keyboard shortcuts at first, but cmd-c/cmd-v do work around this problem.

Agree to both points. The UI part of macOS is trash, and there are a few times I'd like to have kept a window on top but couldn't despite the random updaters and reminders doing it without asking.
I get various app update dialogs opening up and stealing focus. Fusion360 is pretty bad when you open it - it takes forever too.

Focus stealing happens quite a lot on macOS.

The problem (as far as I can tell) is that for Windows and MacOS you can't install the docker daemon etc without installing Desktop.

I have a Mac for work and containers are a pain. I've tried Podman, UTM, colima, Docker Desktop etc and it all boils down to the same thing - run a linux VM and have the command line utils cooperate with the VM to run the containers.

It comes down to which solution has the least friction and irritations and Docker might still win there.

My current setup is UTM running a debian VM which I share my source directory with and ssh into to run docker. This is simpler for my brain to understand because the linux VM isn't a hidden component I forget to manage.

But it's not obvious how to mount the shared directory and I'm constantly running into networking problems - currently I cannot connect as myself and must sudo ssh for it to work. A reboot (of the Mac) used to fix it, but no longer does. I've given up trying to fix it and just sudo.

Re:Show HN: I wrote a Java decompiler in pure C language on Tuesday June 03, 2025 @06:40PM (#44175550)
It can still be a bug if you use something after you would have freed it because your code isn't meant to be using that object any more. It points to errors in the logic.
Re:BPS is a GPS alternative that nobody's heard of on Sunday April 13, 2025 @04:30PM (#43675623)
Shorter, Milchick!
Re:Big Book of R on Thursday April 10, 2025 @09:12PM (#43649470)
I am working on a system at present where the data scientist has done the calculations in an R script. We agreed upon an input data.frame and an output csv as our 'interface'.

I added the SQL query to the top of the R script to generate the input data.frame and my Python code reads the output CSV to do subsequent processing and storage into Django models.

I use a subprocess running Rscript to run the script.

It's not elegant but it is simple. This part of the system only has to run daily so efficiency isn't a big deal.

Re:STEPS Toward the Reinvention of Programming [pdf] on Tuesday March 11, 2025 @01:24AM (#43329391)
I think one difference in these big pieces of software and the older systems is that the old systems ran on bespoke hardware and only one platform where as UNIX & Windows must support a lot of different hardware.

That's not to say they do seem far too large for what they do, but it is a factor. How much code in ROM vs loaded at runtime?

It also depends on what you include in those LoC. Solitaire, paint, etc? I18N files?

Re:Java in the Small on Wednesday December 18, 2024 @05:16PM (#42456074)
I started with Java 1.0 and thought it was great. I still do, although I haven't used it since 2020.

The only thing I don't like is how there is no built-in JSON package which seems like a necessity these days.

Removing the public static void main(String[] args) business seems like pandering to a non-existent audience, or at least a miniscule and insignificant one. Anyone who is going to use Java for a real project is not going to be worried about that, and anyone who thinks that's too difficult to deal with is never going to be a good programmer anyway.

Re:Java in the Small on Wednesday December 18, 2024 @05:12PM (#42456034)
Python seems to have started with 'why do those other languages have all this trash' and then spent the time since then learning why and coming up with worse versions.

I use python a lot these days, and like it, but it's pretty funny seeing stuff like the above and type hints.

I hate not knowing what types a function takes and returns.

Re:Windows NT vs. Unix: A design comparison on Tuesday September 10, 2024 @02:21AM (#41497728)
I can imagine the effort of open source Windows would be prohibitive.

Having to go through every source file to ensure there is nothing to cause offense in there; there may be licensed things they'd have to remove; optionally make it buildable outside of their own environment...

Or there may be just plain embarrassing code in there they don't feel the need to let outsiders see, and they don't want to spend the time to check. But you can be sure a very small group of nerds will be waiting to go through it and shout about some crappy thing they found.

Re:The Blue Collar Jobs of Philip Glass on Saturday August 17, 2024 @10:37PM (#41279713)
I agree, other than the part where he worked at a steel mill. But that was only 5 months.

Glass clearly had a can-do attitude that not many of us possess.

And yes, supporting a family on a single income these days is difficult (I do it), and you wouldn't be doing random plumbing jobs any more!

Re:'Zoom face' phenomenon has people eyeing plastic surgery on Wednesday August 14, 2024 @06:10AM (#41244458)
I mentioned this to my wife a few weeks ago. I rarely look at myself for long in the mirror but spending an hour at a time in a video call where you see your own face can get to you (me).

I don't know why there isn't an option to hide yourself from your own screen, or is there?

I was on a long call yesterday and switched on 'focus on content' to get rid of the faces, but then new people turned up in the call and I didn't realise they were on. It didn't matter in that case but it would have been good to know.

Re:Ask HN: How do you find a new book to read? on Tuesday August 13, 2024 @11:44PM (#41242365)
I go to the library and browse the shelves.
Re:Ask HN: Is it weird to feel this way about software? on Monday August 12, 2024 @06:28AM (#41222965)
Not weird at all, I feel the same and I think a lot of people who 'just get it' do too.
Re:Dubbo: A Robust Java RPC and Microservice Framework on Thursday August 08, 2024 @08:08AM (#41190639)
Bogan CORBA.
Re:Python with Braces on Sunday July 07, 2024 @09:16PM (#40901860)
The scoping in Python... my goodness.
Re:Python with Braces on Sunday July 07, 2024 @09:15PM (#40901853)
I agree entirely with the above, not kidding.
Re:Fiwix: Unix-like kernel for the i386 architecture on Friday July 05, 2024 @09:02PM (#40887427)
Very impressive!

Older »