News for hackers. Stuff that matters.

Mr_T_

> I hope the golang community takes a thing or two from rust in terms of package management.

Go's dependency management was designed after analyzing Cargo and its problems: https://research.swtch.com/vgo-mvs

> They spent almost 10 years saying "we don't need generics", but now are implementing it

You're making things up. Not a single member of the Go team ever said "we don't need generics". In fact, the FAQ stated from day one that they "continue to think about it", and that "Generics may well be added at some point".

Re:What If There _Is_ Life on Venus? on Saturday October 24, 2020 @07:37AM (#24878544)
They were pissed nonetheless.
Re:Welcome to the Old Internet Again on Saturday October 17, 2020 @06:55AM (#24809096)
> What happened.

Capitalism came to the internet.

I don't feel awful.
Re:New case studies about Google’s use of Go on Thursday August 27, 2020 @04:11PM (#24298098)
You'll be happy with the latest developments: https://blog.golang.org/generics-next-step
Re:Seven years of Go on Thursday November 10, 2016 @11:34AM (#12921851)
Highly recommendable. It's the next modern classic after K&R's 'The C Programming Language'.
Re:Turning off syntax highlighting on Sunday November 06, 2016 @02:07PM (#12886527)
You mixed it up.

Syntax highlighting is like doing arithmetic using colored rods: https://groups.google.com/forum/#!msg/golang-nuts/hJHCAaiL0s...

Roman numerals is object-oriented design: https://groups.google.com/d/msg/comp.os.plan9/VUUznNK2t4Q/Ff...

Re:Go Proverbs – Rob Pike on Saturday December 05, 2015 @04:12AM (#10681360)
Re:Unix is not an acceptable Unix on Sunday June 07, 2015 @09:36AM (#9674568)
Because Nim is not dependently typed. You can't get sh*t done without dependent types.
Re:Unix is not an acceptable Unix on Sunday June 07, 2015 @09:11AM (#9674514)
If the Unix guys were smart they would have used an Idris REPL as default shell.
Re:Announcing Rust 1.0 Beta on Friday April 03, 2015 @01:49PM (#9317282)
The 'String', '~str' dichotomy is really unfortunate.
LLVM is a C++ monstrosity that takes hours to compile. Other programming language projects have to maintain a "temporary" fork of LLVM to achieve their goals: https://github.com/rust-lang/llvm/tree/master
Re:Go generate: A proposal for a Go preprocessor on Saturday September 27, 2014 @09:59AM (#8377027)
Please correct the title. The original title is correct: "Go generate: A proposal" the rest is wrong. This tool is not a preprocessor. It's as wrong as calling 'make' a preprocessor. It can be used to call preprocessors or more likely generators.
Re:Light completely stopped for a record-breaking minute on Thursday July 25, 2013 @11:44AM (#6102989)
But why? Why not stop time instead?
You almost always need the byte count for protocols, buffers and stuff. For user-interfacing use-cases (e.g. editors) you probably want the glyph or grapheme count, not the rune count. Please remember, runes / code points, graphemes and glyphs are different things:

http://www.icu-project.org/docs/papers/forms_of_unicode/

Re:Interfaces in Go make it hard to navigate code on Monday May 27, 2013 @07:33AM (#5774255)
People are programming in completely dynamic, duck typed languages and say that these languages are best without IDE.
Re:Trying out this Go thing at Disqus on Thursday May 23, 2013 @02:05PM (#5758377)
But but but no generics! How dare they write production software without generics?!
Re:Plan 9 Coding Conventions for C on Wednesday May 22, 2013 @03:34PM (#5753206)
See "3.5 Initialization indexes": http://plan9.bell-labs.com/sys/doc/compiler.html
Re:Dennis Ritchie's first C compiler on Github on Wednesday May 22, 2013 @04:53AM (#5749568)
> Looks like a very early dialect. C assumes everything is an int unless specified otherwise.

It looks beautiful, almost like a scripting language. No monster type signatures like

    const std::foo_bar<boost::blah_ptr<const xyz::bar::Bar&, baz::Baz>>&
Re:Dennis Ritchie's first C compiler on Github on Wednesday May 22, 2013 @04:18AM (#5749493)
Too late. Ken Thompson already put the back door in his B compiler.
Re:Dennis Ritchie's first C compiler on Github on Wednesday May 22, 2013 @04:01AM (#5749447)
Recently some ignorant, nescient C++ programmer called me a Java programmer, because I use K&R style and not his preferred Allman style. Even Stroustrup uses hanging braces (with the exception of function body opening braces)!
Re:Version 1.8 of GNU ed released on Thursday April 25, 2013 @03:03AM (#5606038)
But does it have syntax highlighting?
You can order it at the Google store: http://www.googlestore.com/Fun/Go+Gopher+Squishable.axd
Re:Haskell vs Clojure syntax on Tuesday February 12, 2013 @04:47PM (#5209797)
Clojure has [] and {} and #{} and '() and #() and : and ^ and @ and Foo. and .foo and ->, ... you still have to learn them to understand Clojure code.
Re:Teaching Distributed Systems in Go on Tuesday February 12, 2013 @04:38PM (#5209742)
> they may be calling those things difficult when comparing them to using an installation wizard

The Windows MSI package and the OS X .dmg have wizards.

Re:It is ridiculously easy to refactor Go on Monday January 28, 2013 @02:56AM (#5127631)
I even use proportional font for coding.
Re:It is ridiculously easy to refactor Go on Monday January 28, 2013 @02:36AM (#5127582)
Re:It is ridiculously easy to refactor Go on Sunday January 27, 2013 @07:37PM (#5126414)
One of the main selling points of Go is that builds are fast.
Re:It is ridiculously easy to refactor Go on Sunday January 27, 2013 @06:33PM (#5126190)
To be honest, I often feel as if I was in a brothel on some blogs with CoffeeRubyNodeScript highlighting. (However, the choice of colors on this one isn't too good either)

Older »