News for hackers. Stuff that matters.

svnpenn

Re:Decoded: GNU Coreutils on Friday September 08, 2023 @08:29PM (#37440988)
on mine it is 1,354 KB. I prefer the 10x LOC savings over a megabyte of hard drive, but you do you.
Re:Rust Module System Encourages Bad Practices on Wednesday June 07, 2023 @08:15PM (#36235468)
> it is pretty much identical to go.

Its not.

with Go you have ONE go.mod file, at the module root. you may have 100 sub packages or sub sub sub packages, but still only ONE go.mod file. then any time you need to add a new import at ANY level, you just go "go mod tidy", and DONE. please dont try to compares apple and orange and say they are both apples.

Re:Show HN: A little web server in C on Tuesday May 16, 2023 @08:13PM (#35969598)
> I make no claims about use of generics making your code being absolutely good or bad, but I do make claims that use of generics can make your code less error-prone and safe.

Right. this is the issue right here. people only see that Go didn't have generics, and they never stop for a second to think WHY Go didn't have them. Generics have an implementation cost for the Go project, and maintenance cost for the Go project, and end user negative impacts in regards to time and memory. but advocates often dont know or care about these drawback, and only howl that GENERICS ARE MISSING until they are added, consequences be damned.

I'm just saying that while generics are useful in some cases, they are not always the right answer, and it shouldn't just be assumed that every language needs them, nor that any non-generic language "sucks".

Re:Sourcehut will not blacklist the Go module mirror on Tuesday January 31, 2023 @04:31PM (#34602482)
well, he could have done nothing, and where would we be? if you say "exactly where we are now", I think you are being dishonest with how the situation played out.

No, he didn't write the code or make the schedule, but he stood up and said "this is not right", and took steps to protect his and other small sites.

Re:I'm Shadow Banned by DuckDuckGo (and Bing) on Sunday January 15, 2023 @11:26AM (#34390578)
numbers look like garbage, I think this is the culprit:

    font-family: system-ui, 'Noto Emoji', sans-serif;
Re:Examples of Floating Point Problems on Saturday January 14, 2023 @02:41PM (#34383404)
Here is Go version. works exactly as expected, no surprises. People just need to grow up and use a modern language, not a 50 year old out of date language:

    package main
    
    import "fmt"
    
    func main() {
       var i, iterations, meters float64
       for iterations = 100_000_000; i < iterations; i++ {
          meters += 0.01
       }
       // Expected: 1000.000000 km
       fmt.Printf("Expected: %f km\n", 0.01 * iterations / 1000)
       // Got: 1000.000001 km
       fmt.Printf("Got: %f km \n", meters / 1000)
    }
> the user must be able to clear it when clearing site data and this what makes it currently an unviable solution

What are you suggesting here? That extensions should have some special storage, that can't be (easily) deleted? Noooooooo thank you. Firefox has "forget about this site" and similar tools, which I use near daily. Don't fuck with my ability to do housekeeping.

Re:Github degraded Copilot for students with no warning on Wednesday January 11, 2023 @09:59PM (#34348601)
I am fine with this. I personally have no interest in Copilot, but my understanding is its not small feat to offer a service like this. I think it would be understandable if the "free tier" was severely rate limited. GitHub has plenty of crappy business practices, this seems pretty tame. The honeymoon is over. If people want this technology, they can pay up.

Not sure if this is still the case, but last time I checked Microsoft Office had student discount, but was not generally free. This seems like a similar situation.

Re:Surveillance Footage of Tesla Crash on SF’s Bay Bridge on Wednesday January 11, 2023 @09:18PM (#34348284)
if they do, so what? even if 10 people cut in front of you, with a 30 minute drive, how much time are you really losing? 50 seconds?
Re:Surveillance Footage of Tesla Crash on SF’s Bay Bridge on Wednesday January 11, 2023 @09:10PM (#34348196)
> drivers cutting in when large gaps form

if they do, so what? even if 10 people cut in front of you, with a 30 minute drive, how much time are you really losing? 50 seconds?

Re:Post-processing is ruining iPhone photos on Saturday January 07, 2023 @02:31PM (#34291703)
I work in IT. I manage our mobile devices, and I was shocked to recently find out that iPads (and I assume iPhones), have no option to choose the resolution of the resulting pictures.

Why is Apple like this? I dont always need a 9 MB or whatever photo size, it would be nice to be able to take lower res images to save space.

Re:The beauty of CGI and simple design on Saturday January 07, 2023 @12:01PM (#34289978)
this is the exact opposite of the point the comment you replied to is making. Rails is not simple. we are talking about SIMPLE, like CGI. Rails is a classic example of a slow bloated framework.
Re:P Language on Friday January 06, 2023 @07:55PM (#34283716)
> [Step 2] Install Java Runtime

Nooooooope. No thank you.

https://p-org.github.io/P/getstarted/install

> low speed maneuvers

AKA maneuvers. Driving on the highway in a straight line is not a maneuver.

A single u-turn should have been all Tesla needed to understand how terrible an idea yoke is. You try arm over arm, then crash the car.
I saw this once before, and both times, it's pretty shocking. Is this really something that needs to be inside the CPU itself? I don't want my CPU doing this. I would rather just take the performance hit and keep the CPU "dumb".
Cookie nag and newsletter nag, fuck you.
Re:Advanced and easy YouTube archiver now stable on Thursday January 05, 2023 @05:39PM (#34267946)
Any video you care about, you need to make it your own responsibility to backup the metadata and/or streams. If you're lucky you can internet search the video ID to get the metadata, even after deletion.
Re:Advanced and easy YouTube archiver now stable on Thursday January 05, 2023 @05:35PM (#34267888)
It's just a wrapper for YT-DLP
Re:Anti-Pattern of the Day: Type Keys on Monday January 02, 2023 @10:13AM (#34218713)
The code smell I see is the omitted semicolons. The pitfalls of doing this are well documented. Just don't do it.
Re:Langoguessr on Sunday January 01, 2023 @09:15PM (#34213445)
fails with older browsers

    Uncaught TypeError: t is null
Re:The State of HTTP in 2022 on Sunday January 01, 2023 @12:28AM (#34203885)
Yep. Just try to cURL the page, and you get 403 Forbidden. That is completely unacceptable.
Re:Golang is evil on shitty networks on Thursday December 29, 2022 @09:58PM (#34181285)
That's not the same function...
Re:Golang is evil on shitty networks on Thursday December 29, 2022 @07:14PM (#34179931)
OP didn't link to the issue, so here it is:

https://github.com/caddyserver/caddy/issues/5276

also, OP didn't mention that its extremely easy to configure this, with Go itself:

https://godocs.io/net#TCPConn.SetNoDelay

Do you think they should care?
Re:Spotifyd on Monday December 19, 2022 @03:47PM (#34057440)
> I‘m kind of amazed that this is still working.

this is why:

> Spotifyd requires a Spotify Premium account

which is actually not true. you can change some code in the source, to allow playback on free accounts. Spotify hunts down anyone who posts code like that though

Re:Paul Graham is leaving Twitter on Sunday December 18, 2022 @04:25PM (#34043630)
They aren't called toots anymore.
Re:Pausing Manifest V2 phase-out changes on Saturday December 10, 2022 @01:03AM (#33930336)
> This conversation is locked

Says all you need to know. They are going to shove this down people's throats, whether they like it or not. Maybe not now, but it's coming. It's kind of disgusting how they talk about this change so matter of fact, as if Chrome is the only choice that people have.

Older »