skysight-inc/HackerNews huggingface dataset:
I agree with that. Go can be frustrating if you expect the level of expressiveness of Python, Java, or Rust. But if you regard it as a better C, you can appreciate its ergonomic upgrades compared to C. What is unfortunate is that Go could be much more than just a better C, considering Google's potential and the decades of programming language research that were present at the inception of Go. By trying to simplify things too hard, and ignoring precedents, Go missed a huge opportunity cost. And it even failed to fulfill its original intent: it cannot be used in place of C, unlike Rust.
Apologies, but let me put on my cynical hat for a moment to make a joke.

Nothing could be more representative of modernity than the fact that typing wise into your browser bar will now direct you to a financial services company.
removing an element from a slice is trivial if you don't care about order. Just swap the element you want to remove with the last element and truncate the slice. If you want to maintain order, shift all the elements following the one you want to remove left one and then truncate. The latter can be slow if the slice is large, but it's linear time.
> See this case with FB, which was a human error:

Reading the article, "human error" really isn't a reasonable description of what happened:

> The Facebook furor began when the social network deleted the famous photo from Norwegian author Tom Egeland’s Facebook page, where it was part of a series of memorable wartime imagery.

This could be a human error, sure.

> When Egeland subsequently posted his shocked reaction to the removal of the “napalm girl” photo, he found his account suspended.

But not this.

> Norway’s largest newspaper, Aftenposten, published Egeland’s story on the censorship, only to find that its own Facebook posts were also quickly deleted.

Definitely not this.

> Espen Egil Hansen, Aftenposten’s editor, then took to the front page of his paper to slam Facebook in an open letter to CEO Mark Zuckerberg

> Prime Minister Solberg joined the debate on Friday, only to find that her comments and posts about the suppressed photo were also deleted by Facebook.

This is a (ridiculously severe) problem in several of Facebook's policies, not a classification error.
They could just manually review the videos the algo flagged as potentially ban worthy. It might even given YT an incentive to hone their algorithm to be more accurate since it would reduce their bottom-line.
Although it is very funny coming from someone named NoImmatureAdHom...
> Go forces writing loop for removing an element from an array

It does not:

copy(a[i:], a[i+1:]) // Shift a[i+1:] left one index.

a[len(a)-1] = "" // Erase last element (write zero value).

a = a[:len(a)-1]
Hasn't there been several error handling proposals already?
The problem is really more to do with the fact that intellectual property makes the production of these highly demanded resources very constrained.
Woah, that's a rough collision too.
WARNING: Bitcoin Will Eat the World
I used to think that Bitcoin was a poor currency, and if someone just made one that was actually scalable and better, then this whole first-gen system would fizzle out, like Friendster or AskJeeves in the presence of better technology.

But no. You see, Satoshi had us all fooled with the title of his paper: “A peer to peer cash system.” FORGET about Bitcoin being a currency. It is a store of value. And it has all the features you’d ever need to store value and not have it be diluted. There is nothing that needs to be improved over and above those features, and that is its killer app: being a black hole of value. Constantly growing versus fiat.

You see, just like gold, Bitcoin is a store of value becaus others say it is. It has reached critical mass and mindshare for “storing value” even from companies now. From here on out, even if a better system arises, if it becomes a sidechain of bitcoin that locks up the coins, then there will be less and less “unlocked” coins, and therefore each coin will be more valuable. Also, bitcoins are constantly lost as dust or misplaced private keys or other things. And so the supply shrinks.

But bitcoin is divisible into extremely tiny pieces (satoshis) so this merely helps one bitcoin get more and more valuable. You can’t kill bitcoin by making something better because even if 1/1000th of it remains, it will actually just be more valuable. The scarcer bitcoin gets, the pricier bitcoin gets, like the Hulk.

Ok so what does it mean for electricity consumption? Here is where the sad part comes in! You see, bitcoin miners are rewarded in bitcoin, and as long as the price of bitcoin outpaces the halvings, mining rewards will grow.

Think about what this means for the cost of electricity. Currently the costs in large parts of the USA are 10x what they normally are. With Bitcoin miners consuming more and more electricity, this will become the norm for nearly everyone hooked up to the national grid.

(Continued in comment below.)
Kauai requires a negative Covid test to pass a phalanx of National Guardsmen when you enter, plus a 3 day stay in a bubble resort at the end of which you must test negative again to leave quarantine. During my recent stay at one bubble resort the rules were quite lax and it was easy to mingle with people who were not under quarantine. Contra the parent, it is definitely not the case that people are wearing masks on the beach (nor should they), although they are generally still required in all other indoor situations except restaurants. I think you are right that outdoor settings and ample sunlight are important factors in Hawaii.

Conditions are still dire for the tourist industry even after things have opened back up a little bit. Just today I saw a headline in a local Kauai paper about small business owners organizing a meeting to agitate for loosening some more restrictions to help keep them afloat.
Let’s extrapolate. The year is 2035, Bitcoin is $50 Million a coin (but there are less coins), and households are fighting for electricity against bitcoin miners, who are easily winning. Governments trying to ban bitcoin mining meet similar fate to Mexican governments trying to ban the drug cartels’ activity, that is to say their families are threatened and they do not have power anymore to stop it, etc. Their feeble attempts to print money fall short of the ever growing rewards.

Everything in the articles about bitcoin using “only” 6% is misunderstanding the expontnential function. In 2021 those stats are outdated and the Bitcoin network consumes more electricity than half the world’s countries. We are five minutes to midnight. By the time we realize it’s consuming more than half the world combined, it will be too late to stop this activity. It will be “too sweet” and too financial lucrative.

If you think we can stop it as a society, then let’s see how we have done with killing off insects, reducing biodiversity and species, polluting the world with plastic and pumping greenhouse gases into the air. Take that last one for example — have we been able to make a reduction in the greenhouse gas emissions, or merely their rate of growth?

What exactly will change between now and 2035, or 2135 that will make bitcoing mining NOT be more economical valuable than, say, airconditioning homes?

Change my mind. Prove me wrong.
Both kinds of IPA are greatly appreciated
How about https://github.com/sm64pc/sm64ex ?
You mean this? https://github.com/sm64-port/sm64-port
linear search can be faster than binary search for small arrays, depending on your processor architecture.

writing generic functions is difficult, so it's nice if a language allows people to do so, otherwise you get N inefficient and/or buggy reimplementations of the function in every project needing it. (not sure if that is your point)
We're comparing (linked-) lists with arrays and compiled languages with scripting languages now?

Why would you use an array/slice instead of a linked list, but then want to use it like a linked list?

If you need a linked list, use something like this: https://golang.org/pkg/container/list/
On which page of the illustrated parts catalog does one find the metal cladding of the engine? The part resting in the shrubbery was the lipskin and forward bulkhead of the engine inlet, which form an assembly called the D-Duct, which contains hot bleed air which is used to to anti-ice the leading edge of the engine inlet.
> And anyway, as a user, I don't care. I want my software to work, to be stable, and to not have security flaws; and if a security flaw is found, I want a fix to be pushed to me ASAP. The distro/maintainer/pm approach does that. If instead I have umpteen zillion different statically linked applications installed, each of which packages all of its own dependencies, then instead of just relying on my distro to push security fixes to shared libraries that everyone uses, I have to rely on every single one of those developers to do it for their own packages. And most of them won't do it, or they'll do it when they get around to it instead of when I, the user, need it.

This is my main worry as well. We are currently in the early, easy, period of this new development paradigm, where developers are constantly releasing new code, and fixes are easy to deploy. I worry that in 10 or 15 years, when a security bug is found in a critical imported function, the developers aren't going to be around anymore to fix them, they will have moved on to the next new, hot, language, and will have as much interested in maintaining their old Go/Rust code as developers today do in maintaining their old C code.
> Someone's forgetting capacity factor-- 10 to 30%.

Which puts solar and nuclear on completely the same scale...

If you don't think mass is a good way to compare, and you're concerned about resources, please suggest the metric that will somehow make nuclear look good. Because that concrete is not very recyclable. So the 95% recyclability of solar panels is making them look a looooot better than nuclear once we move beyond mass to something more nuanced.
How to Configure and Manage Network Connections Using ‘Nmcli’ Tool
Surely, if one of the consequences of speech is being thrown in jail, that would violate freedom of speech. Therefore, freedom of speech means freedom from at least some consequences of speech. Then the question is, which consequences?
I've had a funny observation over the years. The more refined the wiki, the worse the code/ops are.

Good ops and code are usually to some extent self-documenting. If you had a wiki with 20 steps to perform some task, maybe the answer is that the process needs to be simplified.
It's the full pattern.

Does anyone think the USA actually cares about central asian muslims? With our record and the records of our allies?

Or is this coming from collective anxiety over being eclipsed?
you are right that a loop isn't required, but the point that kind of index / array element juggling is a headache still stands
I certainly agree. I would love for Go to get to a place where I never have to copy and paste code again. Generics will get us part way there.

The next item on my wishlist are algebraic data types. In complex projects I've opted for Rust over Go just because of the abstraction power of being able to represent things like:

Dest = Register (A | B | C)
Src = Register (A | B | C) | Immediate value
OpCode = Nop | Add(Dest, Src) | ...

In Go, I'm so tired of `interface{}`.

Edit: To respond to your edit about map iter order, that's related to my complaint of Go's lack of dev vs release build. Randomizing map iter order in dev builds is acceptable to me. Go makes you pay for that in prod.
My point wasn't that it's impossible to die, my point was that if you're someone who had the option to use electricity but didn't and therefore froze to death, that's definitely your fault.

You can't conflate "omg people are dying" with "omg the prices were too high". The two problems are literally mutually exclusive.
It's definitely worth understanding what Anki is. It goes beyond flash cards and there's a body of research showing its efficacy: https://alchemist.camp/learning-machine/spaced-repetition-sy...

That said, I still have basically the same opinions you do when it comes to when it comes to using it for most programming skills. Others have a different perspective, though: https://www.semicolonandsons.com/episode/how-to-learn-to-cod...
Almost certainly coiled, where "coiled" might be using the earth itself as half of a capacitor:

https://en.m.wikipedia.org/wiki/Jim_Creek_Naval_Radio_Statio...
50/50 chance they pull a Quickster and undo the rebrand I reckon
Survival Gardening: Our Real Life Dry Run
Following Egreg's logic, yes but probably it's only racist when lighter colors have priority over darker colors, which is absolutely insane.
Definitely agree with the us vs. them mentality that is often perpetuated in the media. Most people are practically not far apart, but people also don't want to confront the past and an us vs. them dichotomy is a lot more accessible.

FWIW I just see shitting on white men as some kind of catharsis for women and people of color. There is a lot more deep pain that needs to be expressed before any real racial healing. Ironically, to your point it may have the opposite of intended effect, but I don't think repressing the emotions that come with unpacking Western society's history of racism is a productive move either.
Aye. I have one. I'd just like to read other people's. And that doesn't seem so easy.

The thought has been thought to death, but Google Reader really had this ability and nothing has replaced it well.
It's so simple isn't it! /s
I found their name to have been outlived by the specs of their service offering. Transferwise is about much more than transferring money these days.
OP isn't asking for a solution. OP is talking about not having to implement the solution themselves and having the language provide some shortcuts for doing what you just described.
I too work in React Native sometimes.

Most of the React Native code I have seen is just presenting customized widgets to the user, and being a front-end for an API.

It is difficult to compile a RN project from a year ago, and very difficult for a three year old RN project.

By contrast, I wrote a paint program in Java almost 15 years ago, and it ran comfortably on a 486DX4/100 machine. And it will run without any modification on a computer today.

git clone https://github.com/unqueued/SimplePaint
cd SimplePaint
make
java SimplePaint

Generating a jar file (make jar) creates a distributable that is 26K.

I've written fairly sophisticated business logic in Visual Basic 6, and I remember how much less cognitive load there was developing it. In the early 2000s, it was no problem to interface with a variety of different databases and APIs.

And like Java, most of these programs will probably run on Windows 10 with no modification.

One thing I really miss is how much less room there was for things to go wrong. Even in Visual Basic, the primitive threading support was so much simpler. Even when dealing with data streams from various sockets, handles, and the GUI, I spent maybe 1/10th the time as with React Native.

Of course I appreciate that React Native can do some unique and cool stuff. But I find that in practice what it is used for is stuff which could have been done so much better with other technologies.
> the algorithm has transformed our world in its image

So it is, and so it will ever be.

https://en.wikipedia.org/wiki/Historical_materialism

> history is the result of material conditions rather than ideals
Why do you associate the lack of credibility with investigation into the virus's origin? What lends any credibility to the lab theory? Science isnt a team sport, yet a certain group of people seem very invested in the sinister explanation.

It's been repeated over and over that initial recommendations against mask usage was in the hope that people didn't hoard them and prevent healthcare workers from getting them. Predicting the irrational behavior of large populations is a key skill of leadership. Judging by way people hoard toilet paper, hand sanitizer, and other goods, that prediction seems pretty spot on.

The disease being less deadly than we feared, and our response to it remaining the same are not contradictory. Even 10x less deaths than originally predicted is still a major crisis. It is still worthy of attempts to mitigate the problem, and the mitigation strategies are still the same.
But it’s not clear the activity is not net beneficial to them.
> If we're going to object, shouldn't we object to all of it?

Unfortunately in todays society people policing words only pretend to care to get their woke bonus points. If it's not a current trending word of the day to hate then it doesn't get any attention.

I find the word policing hilarious because like your example illustrate, there is no logic to the hatred.

In this thread someone is trying to justify not liking the word "blacklist". By that logic "black market" should also be a bad word to use. Yet nobody uses the word "white market", but they do use the word "grey market". So what word here is bad? Is using "black market" bad? Then why would "grey market" be okay? It wouldn't make sense. It means they are for some reason associating black with the race, yet are associating grey with a colour. Logically that doesn't make sense.

Yet if "white market" was a thing I bet there would be trouble. Most scary things in horror movies use darkness to set the mood. A scary creature that is pretty much all black like the Slenderman would not look scary if they were almost all white. To us humans we associate different colours with different things. We also use these words as synonyms for different things.

Like you indicate, white is also used for "negative" things as well.

Overall I just can't follow along with the word policing culture. There is no way someone is going to convince me it is "correct" when it logically and consistently doesn't make sense. My mind can't understand why blackmarket would not be offensive but blacklist would.
Malpedia – DoppelPaymer (Malware Family)
That wasn’t my intention. My point was that even jobs considered hard in the first world are much easier than a typical manufacturing job. And so people may forego them altogether.
He was a blatant racist for one. That's why he's not talked about.
Well, for starters most transfers I and my friends have had to make are not to our own accounts. There's also the time issue - I have an IB account, and love it, but most of the time I'm using Transferwise because I'm in a different country and paying someone, or because I need to move money between my own accounts quickly. Transferwise is literally instant for about half the transfers they do, which is incredible. Meanwhile with IBKR I'm usually out at least three business days for any USD funds to show up in IBKR, plus whatever time to wait on the foreign currency side. Then there's also the UI - sometimes I need someone else to transfer the money, or IBKR's login system is locking me out, etc etc, and in those cases Transferwise always wins. Or if I'm transferring under 25k and I need to do it outside of market hours - in that case my transaction is an odd lot at IBKR, getting me (oftentimes) bad rates, and I might as well use Transferwise.

Don't get me wrong, I like IBKR and I do use it, but Transferwise is definitely more useful 90% of the time.
Not sure I understand here - how would (1,1,0,3) disambiguate between different streams of data with bit lengths of (1,2,4,4,4) and (1,4,2,4,4)?
Funnily enough it costs more in fees for me to use Wise as my daily account so I've kept my traditional bank cards! I do suspect it varies by country. I'm fortunate in New Zealand that banks generally offer fee-free accounts with reasonable terms and conditions.
In which case, golang should result in even less maintainable code since it is more verbose than Java.

That being said, modern Java is quite terse (var, streams, default interfaces, and now records and pattern matching, etc.).
> according to this you can't delete anything.

This is a property of the internet and information in general. If data was served to clients at some point, then it's possible for the clients to have saved a copy (if nothing else then by taking a picture of the screen). Even if it happens that no one saved a copy, it's not generally possible to be sure of that. Any "deletion" feature would therefore be unreliable at best.

Being able to "edit" posts, to submit a new version of a post and have clients by convention normally show the newest version, sounds like a decent feature. (The older versions would, of course, be available too.)
I assume they did and figured nobody would mistake a chips brand with an FX service. Legally I'm sure it's not a problem.
shortcuts for trivial operations is how we got the leftpad disaster.
I pretty much avoid platforms like TikTok and Twitter because of these kinds of things.

I've even seen sections of TikToks with people pretty clearly faking mental disorders for attention. It's honestly kinda sad. I guess I am kinda glad I just missed the explosion of social media in school. I'm sure social media just creates so many more issues in young adults. And the weird things you do when you're young will forever be stored somewhere online.
Hmm... If not proof trees, what?

> Not to mention that any format that isn't just strictly text is probably doomed to fail from the start.

LaTeX is text. (I'm not being snarky.)

- - - -

The key might be in formalizing the subjective processes like what was described starting here:

> Mathematicians think in pictures

> I have a picture of the real numbers in my head. It’s a straight line. This picture provides a great intuition as to how the real numbers work. I also have a picture of what the graph of a differentiable function looks like. It’s a wobbly line with no kinks in. This is by no means a perfect picture, but it will do in many cases. ...
I sympathize with your concern.

Fragmentation is fundamental to Open Source. Fragmentation brings mutation, and mutation brings evolution. Fragmentation is a virtue of open source. Not a vice. The world simply doesn't value security above convenience, as I intuit you may.

I think the natural tendency of all organic evolution is to take the path of least resistance.

It will not be effective to ask developers to do more work. That is going against nature. The packaging ecosystem has to compete and win against its competitors. That is the true way of Open Source, of organic systems.

It is likely that the packaging system you are advocating for is more difficult than the competitors you mentioned. Reducing that friction is perhaps a more effective place to apply your focus. What are these competing ecosystems doing that makes them more attractive? Why is your ecosystem losing users? How does Flathub, Snapcraft and nixOS fit into this view? How does the mac app store, the windows store fit into this view? What is the one true way to package an application?
Only if they get rid of the CHIEF executives
Could you please expand on why is Go not a replacement for Rust? Is that because of the lack of manual memory management?
Generally the answer is to stick everything into a channel. This doesn't fix race conditions, but it does make it easier to write code.

Want to query the db in parallel? Start n goroutines and write the results to a channel, then read from the channel n times. Want to limit your concurrency to m tasks? Start m goroutines reading tasks from a tasks channel and pushing results to a results channel, write n tasks to the tasks channel, read n results from the results channel.