News for hackers. Stuff that matters.

crtc

Re:Show HN: Go Plan9 Memo, Speeding Up Calculations 450% on Saturday October 19, 2024 @01:19AM (#41885807)
https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs since the author seems to be confused in this regard.
Re:Stop Building on Corporate-Controlled Languages on Wednesday January 18, 2023 @01:15PM (#34430550)
It accesses the module proxy proxy.golang.org, which is run by Google. If you want to opt-out of this module mirror, you can turn it off by setting GOPROXY=direct.

The proxy has a clear privacy policy: https://proxy.golang.org/privacy It collects anonymized usage metrics like other package registries (rubygems.org, nuget.org, crates.io) do.

Re:Stop Building on Corporate-Controlled Languages on Wednesday January 18, 2023 @12:23PM (#34429740)
True, I quickly checked

https://rubygems.org/

https://www.nuget.org/packages

https://crates.io/

... they all show download statistics of their packages.

Re:Evolved Virtual Creatures (1994) on Sunday March 20, 2022 @03:45AM (#30740897)
His name is really Sims?
Re:Go 1.18 on Tuesday March 15, 2022 @03:44PM (#30690435)
This is by design: https://go.dev/doc/faq#Does_Go_have_a_ternary_form

Ken Thompson added ?: to B / C and then he took it from us in Go due to the wisdom he gathered in between.

Re:Go 1.18 on Tuesday March 15, 2022 @03:00PM (#30689549)
Finally! This will be the last day I see the words "Go" "lack of"/"no" and "generics" in one sentence.
Re:Generics facilitators in Go on Thursday December 23, 2021 @02:52AM (#29659634)
Yes, but reflection is part of the problem:

"And even that traversal is not sufficient in the general case when type reflection gets involved, as reflection might look up methods based on strings input by the user. So in general instantiating parameterized methods in the linker might require instantiating every parameterized method for every possible type argument, which seems untenable."

So methods with type parameters would a) not be usable with interfaces and b) not be usable with reflection.

Re:Three Minor Features in Go 1.18 on Wednesday December 22, 2021 @09:38PM (#29658035)
The release notes usually contain everything.
Re:Generics facilitators in Go on Wednesday December 22, 2021 @06:04PM (#29656621)
> No mention of why they left them out in non-interface types.

Actually it does:

"Or, we could decide that parameterized methods do not, in fact, implement interfaces, but then it's much less clear why we need methods at all. If we disregard interfaces, any parameterized method can be implemented as a parameterized function."

https://go.googlesource.com/proposal/+/refs/heads/master/des...

Re:Portable and Interoperable Async Rust on Wednesday December 08, 2021 @03:28AM (#29482375)
On a somewhat unrelated note: What consequences did the Rust mod team resignation lead to? The last thing I heard was the blog post: https://blog.rust-lang.org/inside-rust/2021/11/25/in-respons...

But I haven't seen any public discussions on the future of Rust governance, how to make the core team accountable, or other consequences since.

Re:Is a self-driving car smarter than a seven-month-old? on Sunday September 05, 2021 @07:57AM (#28423633)
I hope it is. I wouldn't trust a seven-month-old to drive my car.
Re:Your Phone Is Your Private Space on Sunday September 05, 2021 @06:37AM (#28423136)
Why should they fold if no government outlaws it.
Re:Object-Oriented Programming in C (2019) [pdf] on Sunday September 05, 2021 @04:36AM (#28422530)
> Back in the '90s, "Object-Oriented" got redefined in popular imagination to "good". If your language or system was good, it was then by definition object-oriented, and anything good had therefore to be called OO. Saying something was not actually OO (as we find here) was taken to mean it was not good, generating spurious conflict.

A similar thing happened with functional programming.

Re:Coq searches for alternative name on Friday April 09, 2021 @05:16AM (#26748351)
> there would be some confusion with the popular Chicken Scheme compiler.

Or Agda (the hen): https://www.youtube.com/watch?v=zPY42kkRADc

Re:Coq searches for alternative name on Friday April 09, 2021 @05:07AM (#26748303)
It's more people having a platform to speak out about how they feel.
Re:Coq searches for alternative name on Friday April 09, 2021 @04:53AM (#26748198)
In German C# is pronounced "C Lattenzaun" or "C Schweinegatter", which is quite a mouthful.
Re:Learn Go by writing tests – Hello, world (2018) on Friday March 12, 2021 @09:44AM (#26436309)
> with types you need way less unit tests

It's a misconception that developers who use dynamically typed programming languages write tests that perform tasks of a static type system. They do not write tests like this:

    assertException(() => upcase(12));
    assertException(() => upcase(true));
    assertException(() => upcase(null));
    assertException(() => upcase(new Object()));
    ...
They write tests like

    assertEquals("TEST", upcase("test"));
    assertEquals("HELLO, WORLD", upcase("hElLo, wOrLd"));
    assertEquals("BLA123", upcase("bla123"));
Re:Why Is Esbuild Fast? on Tuesday February 16, 2021 @12:55PM (#26156697)
TIL a new word: megamorphic
Re:'New car smell' is the scent of carcinogens on Tuesday February 16, 2021 @11:35AM (#26155651)
What about "Old Car Smell'?
Re:How to Revive a Dead Language on Saturday February 13, 2021 @03:55AM (#26122360)
Can this be transferred to programming languages like ALGOL?
How can "Rassenschande" be a Nazi slogan? How can "Herrenvolk" be a Nazi slogan?
Re:Russ Cox on Go dependency management on Friday July 27, 2018 @06:31AM (#17624912)
> But that often comes with slow implementation/decision costs.

It also comes with feature bloat.

Re:A Proposal for Package Versioning in Go on Monday March 26, 2018 @01:57PM (#16680966)
> I see very few complaints

If you live in a filter bubble (survivorship bias).

Re:Update on the Swift Project Lead on Tuesday January 10, 2017 @03:11PM (#13368494)
He's joining Mozilla to fix Rust.
Re:SeaHash: A fast, portable hash function in Rust on Tuesday November 29, 2016 @05:03AM (#13062060)
What's the matter with this stupid word "blazingly" in the Rust community?