News for hackers. Stuff that matters.

wyufro

Re:The world in which IPv6 was a good design on Sunday April 19, 2026 @03:13PM (#47826788)
Even if you go with one IPv4 per household + 1 per company you're going to be hard stretched to find room for that in 32 bits, at least after you add the routing infrastructure.
Re:macOS 26 breaks custom DNS settings including .internal on Thursday March 19, 2026 @01:05PM (#47442560)
That's very elitist and unfair to people who previously struggled to form their words but now have a better chance at doing so.
Re:Go Away Python on Tuesday December 30, 2025 @08:51AM (#46433320)
It doesn't pass the file contents at all, it passes the file path.
Re:Constraints in Go on Sunday November 17, 2024 @09:05AM (#42164231)
I think "oh this looks like it could be made generic" is the wrong time to convert to generics.

You should convert when you reach the point "I wish I had that code but with this other type". Even then, sometimes interfaces are the right answer, rather than generics.

Re:Companies must stop using Google Analytics on Tuesday July 04, 2023 @07:41AM (#36585346)
Only if the salt is kept secret. There also needs to be a different salt value per ip, obviously. But given those conditions, it works.
Re:How Python virtual environments work on Monday March 13, 2023 @04:20PM (#35141920)
IMO, while their use cases do overlap, LXC is more geared towards a user installing things while Docker is more geared towards a developer creating a ready to use package.

LXC creates environments, while Docker creates apps, is another way to say it.

Re:The Y Combinator in Go with generics on Sunday June 12, 2022 @03:27PM (#31717447)
In languages with closures it would be easy to set a variable to the lambda while that same variable is also captured by the lambda. In fact, this seems to happen once in a while in Go, since closures are always lambdas.
Re:Apple Discontinues macOS Server on Friday April 22, 2022 @08:08AM (#31120606)
I believe you're thinking of the AppleDouble files with name ._file. Those haven't really been used for the past 10 years or so (unless you run software older than that, obviously).
Re:Switching from pyenv, rbenv, goenv and nvm to asdf on Tuesday April 05, 2022 @11:28AM (#30920259)
Indeed, direnv and asdf integrates, such that PATH is set to the values exposed by your .tool-config. This avoids the asdf shim and makes executing the tools slightly faster. Good when you have to run them over and over in a script.
Re:Kubernetes Documentary: A Critical Review on Monday February 21, 2022 @11:18AM (#30417486)
Before I learnt what it really means I always imagined it as a blowtorch heating things up, which sort of fits the original but obviously has a much wider scope. So maybe GP has the same idea I had.
Re:Reasons for servers to support IPv6 on Saturday January 29, 2022 @03:39PM (#30130170)
Right. Neither am I, so take this with a grain of salt. But I'd use "committee decision" in this case.
Re:Reasons for servers to support IPv6 on Saturday January 29, 2022 @01:52PM (#30129173)
It was using IPv6 in IP, just like 6to4, protocol 41.

I haven't heard it called a political issue before though. It just had problems, like being blocked in firewalls and security problems where the encapsulated packet wasn't checked properly, etc.

What, no. It's not GNU/Linux if there's no GNU software present.
Hasn't there always been a 10 user limit? That's what I remember at least.
Re:Glibc is still not Y2038 compliant by default on Wednesday December 29, 2021 @06:43AM (#29723978)
A string, ISO 8601, https://en.wikipedia.org/wiki/ISO_8601 Preferably RFC3339 (which is a specific profile of ISO 8601) but, as noted in a sibling comment, it isn't always appropriate for future dates.
Re:Epic launches anti-cheat support for Linux, Mac, and Steam Deck on Thursday September 23, 2021 @04:14PM (#28634653)
Ubuntu supports Google Drive out of the box, it appears in the file manager. Probably it's Gnome doing the actual work, I haven't really bothered to learn it well.
Coffee cups as measured on the brewing machine is only about half that size.

OTOH, the researcher says 1-2 cups is the normal amount in the article. To me that implies a larger cup size.

Re:Go generics proposal moves to “likely accept” on Wednesday February 03, 2021 @05:14PM (#26019873)
I wrote an Entity-Container system that really could've benefitted from a generic Get function. Instead I had to write on for each entity-type, even though they were the same except for different types.

Most places where the empty's interface is used now could benefit from it. Eg. the json package could state it always uses float64 for numbers (except when you tell it to use Number).

Re:In 'Cyberpunk 2077,' the Only Truly Punk Move Is Not to Play on Tuesday December 22, 2020 @04:38PM (#25511566)
Dystopian Sci-Fi being anti-capitalist? Wow, what a crazy idea.
Re:Common Rust Lifetime Misconceptions on Saturday May 23, 2020 @04:01PM (#23285873)
As someone who doesn't know Rust yet I feel there's a "do this instead" missing to point 8. It's not clear to me how to do it instead.
Re:Writing An Interpreter In Go (2016) on Monday November 25, 2019 @07:29AM (#21627494)
In my experience the hardest part of using parser generators is to have them create understandable errors.

Also it's questionable that they add very much. Parsing text isn't all that difficult. The hard part is to get the tree structure of the AST right.

All in all the parsing is a quite small part of a compiler. I've converted from a parser generated to manual code in two different projects and they actually ended up with less lines of code after the conversion, if just barely.

Primarily disk access is a lot slower, even with Hyper-V. Eg. Compilation suffers from this. But tasks that don't use the disk too much shouldn't be that bad.
MacPorts is sponsored by Apple, or at least used to be.
Just that the prompt automatically goes on a new line makes iTerm2 so nice though. As well as the built in timing of commands, jump to previous prompt, double click selects matching parentheses, etc. it's those little details.
Re:Interface Dispatch (2018) on Thursday April 18, 2019 @09:56AM (#19691018)
I'm speculating, but sizeof(bool) == 1, sizeof(struct{}) == 0 and sizeof(interface{}) == 8, so might be as simple as that.

https://play.golang.org/p/5acy87JLD3i

Re:Finland to propose that EU abolish daylight savings time on Sunday January 28, 2018 @04:15PM (#16253547)
And Finland is in UTC+2. The thing regulated is probably when DST starts and stops, not the timezones.
Re:How Not to Design a Microwave on Sunday January 07, 2018 @05:07AM (#16090176)
I think the key thing that makes my microwave easier to use is that it has a big dial to choose the function. No clicking through menus, you just turn the dial to the function you want, then the second dial to adjust the settings, or press start to start and add time.
Re:How Not to Design a Microwave on Sunday January 07, 2018 @04:51AM (#16090126)
He really should've told near the end. Anyway, I assume you press the power button, because that is the established standard for microwaves in the last 10 years or so. Probably there might be a timeout and then it starts automatically.

This is indeed something you have to learn though, first time I encountered this kind of microwave it baffled me as well.

Re:Writing a C Compiler, Part 2 on Wednesday December 06, 2017 @05:09PM (#15865482)
I really feel it doesn’t make much sense to generate assembly any longer. It’s much more reasonable to generate IR (for example for llvm). Then you get free optimizations and at least some portability. It’s probably easier as well to not keep track of registers.
Re:When somebody loses weight, where does the fat go? on Monday November 27, 2017 @12:26PM (#15789075)
Their point, which I agree is fairly unclear, is that the fat is not converted to energy, it's converted to CO₂ and water. That conversion releases energy, which you then use to move, but the total mass of the process is constant (conserved).

Older »