Earlier quoted context omitted.
Filtering a container by a predicate is 50 year old technology and a very common thing. It's unbelievable that a "modern" language has no shorter or clearer idiom than that convoluted boilerplate filled Ministry of Silly Walks blob. Python had filter() and then got list comprehensions from Haskell list comprehensions. PowerShell has Where-Object taking from C# LINQ .Where() which takes from SQL's WHERE. Prolog has in…
>Brian Kernighan gave a talk on the readability of code ... I am aware he's one of the Go designers I don't think so. Not according to Wikipedia at least. First sentence: >Go is a statically typed, compiled high-level programming language designed at Google[12] by Robert Griesemer, Rob Pike, and Ken Thompson.[4] https://en.m.wikipedia.org/wiki/Go_(programming_language) Maybe you confused Brian Kernighan with Ken Thom…
Go is my hammer, and everything is a nail
711–720 of 816 posts
Re: Go is my hammer, and everything is a nail
#712Earlier quoted context omitted.
What's so bad about Celery?
The docs are surprisingly unspecific for such a mature project, enough that you often need to read source code to confirm your suspicions one way or another. The style has been redone a few different times now, and most of the old stuff is there for backwards compatibility so it's unclear what The Correct Way is to use it (once you step outside the obvious classes and methods). The source code is like an Escher drawi…
Re: Go is my hammer, and everything is a nail
#713Earlier quoted context omitted.
If they're shipping notebooks to production and having so many crashes, I'd question that they even know how to do Python.
When do you ship notebooks to production? Jupiter was never meant for external clients.
1. "We got it all working in the notebook"
2. "Great, ship it"
3. (data scientist takes the notebook code almost verbatim, wraps it in a basic CLI or HTTP API and it gets shipped off in a docker container for other services to consume)
Re: Go is my hammer, and everything is a nail
#714Earlier quoted context omitted.
> What was the point of your question, if not to prove something? My enjoyment. For what other reason would you spend your free time doing something? > If you were trying to imply that the implementation doesn't exist, that implication was fatally flawed. And if I weren't trying? > If you were asking to waste time, then it worked. I ask nothing, but if you feel wasted your time, why? Why would you do such a thing? >…
It's great that in your reply upthread you actually understood that it was a request for any kind of evidence, including evidence you just created on the spot, but now you pretend not to understand that.
In fact, you would have noticed, if you read it, that the "upstream" comment doesn't even touch on the citation at all. It is focused entirely on the proof aspect. While the parent wanted to talk about citations exclusively, at least at the onset. Very different things, very different topics.
Re: Go is my hammer, and everything is a nail
#715I used to work for a Go shop. We dealt with financial data. I found it so annoying that many of my colleagues would use Go for one-off tasks such as aggregating CSV files, updating the database with some data, or fetching data from the database, and then trying to make a plot. I saw my colleagues again and again implementing basic algorithms such as rolling median, or finding a maximum. Instead of loading data into P…
I've almost entirely replaced Pandas with DuckDB in my day-to-day work. I wonder if it would be an easier lift for someone who is familiar with SQL, and doesnt want to pick up Pandas/Polars.
Re: Go is my hammer, and everything is a nail
#716Earlier quoted context omitted.
That's why I love Go so much. You want to write a very clever library using elegant abstraction and generics to have a cool innovative interface to solve your problem? Tough luck, you can't. So instead, you will just have to write a bog standard implementation with for-loops and good old functions which you will have to copy and tweak as needed where you really need something more complicated. It will work perfectly…
> It will work perfectly fine and end up being very readable for you and for the other persons reading your code. And make all future work both 3 times simpler, and take 3 times as long. I suppose there’s situations in which this is great, but I’m partial to requiring more. I’ll admit that hasn’t worked out very well for me unless I’m working my myself though.
Re: Go is my hammer, and everything is a nail
#717Earlier quoted context omitted.
Go does support functional programming constructs (as it has first-class functions) and there are some FP libraries out there, but they are discouraged because the execution is so much slower; Go is not optimized for FP, and chooses "clumsy" for loops over clever functional programming because the loops have mechanical sympathy and are simply faster in execution speed. That said, if you have a use case with a lot of…
Perhaps I’m thick but what kind of programming doesn’t involve data wrangling? What are Go programmers doing that they don’t feel the need for map/filter/etc? BTW there’s no reason why map and filter would be slower than loops, efficiently lowering such functions to loops was solved a very long time ago.
Re: Go is my hammer, and everything is a nail
#718The author lists multiple reasons for this, but for me the biggest one is the first one: Go is good for almost everything . I have extremely good productivity when using Go. Once your project exceeds 100 lines it is usually even better than python. And yes, I am aware that Rustians did a survey where Rust was crowned as the most efficient language but in my reality (which may differ from yours) Go is simply the best…
Java is good in more areas than go
Re: Go is my hammer, and everything is a nail
#719Earlier quoted context omitted.
It still won't beat the deployment speed of scp executable user@host:direc/tory/ that you get with Go. I still use python for stuff that never leaves my computer, but in most cases if I know I need to run it on Someone Else's Machine (or even a server of mine) I'll reach for Go instead.
At the expense of absolutely massive, gargantuan, entire-OS-sized binaries. Just looking at my bin/ folder eg k9salpha - a relatively simple curses app - 56MB argocd - a cli for magaging argocd - 155MB
Disk space hasn't been a serious concern in two decades.
Re: Go is my hammer, and everything is a nail
#720Earlier quoted context omitted.
While definitely doable, using a SQL database to do data discovery is obtuse.
Not really. DuckDB can operate on raw csv without ingesting them. This is as easy if not easier than setting up python and pandas.