HNHacker News
TopNewBestAskShowJobs

The_Colonel

5,660 karma · joined November 27, 2018

submissionscomments
The_Colonel··on So you want to write Java in Neovim
The problem there is that you'd be integrating two massive codebases, each with different expectations, assumptions etc. No matter how hard you try, they'd clash in places and some things would not work, leaving one side or another unhappy even with this massive effort. IdeaVim makes it work by having a massively simplified vim-like editor, specifically written for IntelliJ.
The_Colonel··on So you want to write Java in Neovim
> The line-completion that IntelliJ has by default now was quite a bit better IMO. It really helped and was not so distracting.

I very much agree. The line-completion is a very well done AI integration.

I think there's a lot of potential to integrate AI into IDEs, but it will likely be less of a low-hanging fruit in comparison with simple code completion.

The_Colonel··on So you want to write Java in Neovim
> `System.out.println` is ridiculous, and you're likely to use it many times

No, you don't use it often.

You can use it as a poor man's debugging tool, but Java actually has very nice debuggers. You can use it as poor man's logging, but then you have pretty good logging frameworks. Or you can use it as application output, but then you probably want to abstract specific output stream away from most of your business logic code and use interface.

The_Colonel··on So you want to write Java in Neovim
> And you can certainly install enough extensions into vscode to make it comparable with idea.

No, you can't. Comparable plugins don't exist.

The_Colonel··on So you want to write Java in Neovim
> Languages that have 3 decades of legacy warts

Only languages with negligible market share don't have 3 decades of legacy warts.

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
It was extremely predictable with extreme hindsight bias only.

Most of the eastern Europe entered NATO without an incident. Baltics is closer to Russia's power centers (St. Petersburg and Moscow) than Ukraine is. Finland and Sweden entered NATO without incidents. Entering NATO was undeniably beneficial for these countries, since it has a very good safety record of protecting its members. Russia tends to invade countries which didn't yet make it to NATO.

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
> I dont think Russia was threatened by Ukraine, but NATO and more specifically the US.

Russia was threatened by EU actually. The initial 2013 crisis, Crimea / Donbas invasions happened as a consequence of EU association agreement which was pulling Ukraine away from Russia.

Russia isn't threatened in the sense that NATO will invade Russia proper - the nukes pretty much guarantee that can't happen. NATO / EU are "invading" what Putin considers to be Russia's sphere of influence. In case of Ukraine, Putin plans/planned to unite Russia, Ukraine and Belarus into one country - the creeping integration of Belarus serves as a template.

The_Colonel··on EU law mandating universal chargers for devices comes into force
Yeah, that's surely part of that. There are authorized service centers in major cities, but that's not very accessible for a lot of people. When I got my battery replaced, it meant 2 trips to a 100 km distant city (no same day replacement) which also meant a day without my phone. I could have opted for an unauthorized repair shop, but again there's the problem with trust, these often seem quite sketchy.
The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
> There was no news article where I lived (or international) that predicted that resistance would only last weeks or months.

Then you must have not been paying attention.

A summary of those failed predictions: https://www.rferl.org/a/russia-ukraine-invasion-predictions-...

It's a roughly equal part of underestimating Ukrainians and overestimating Russians.

> Those that did make any prediction about the length of the war pointed towards modern wars like those in the middle east, which demonstrated that modern wars do not end suddenly regardless of what progress either side makes.

You mean like Crimea where the resistance never died down and was an active battlefield with daily activity of partisan groups? /s

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
> i hate war and especially conscription. and super especially a pointless war that destroys the whole country and sets it back for generations to come.

Good, I must assume then that you hate Putin for starting war, killing and bombing Ukrainians and surely campaign for Putin to pull back to the internationally recognized Russia borders, right?

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
Definition of imperialism:

> Imperialism is the maintaining and extending of power over foreign nations, particularly through expansionism, employing both hard power (military and economic power) and soft power (diplomatic power and cultural imperialism). Imperialism focuses on establishing or maintaining hegemony and a more or less formal empire.

Russia fits the bill very well.

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
> Its not very sneaky, they got caught rather easily.

Getting caught is not a huge risk in the sense that Russians will still deny it, while at the same time it will raise the stakes in the public eye.

It's the same thing as with the continuous (but still deniable) nuclear sabre rattling.

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
> There was 0 chance Ukraine was going to just flop over.

That's a huge hindsight bias. Even the most optimistic scenarios from various secret services / think tanks predicted only weeks / few months of resistance at the most. If you read Ukrainian accounts, most weren't very optimistic either. You can also read up how many commanders in the south defected - having more such defectors could flip the war quite quickly. The question of whether to defect or not (or simply run) is something which many did on the spot based on their personal circumstances and outlook, it's extremely difficult to predict.

The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
Trump's election might be pretty bad for Russia after all. With Democrats already being committed to Ukraine and Republicans committed to Trump, the whole congress is ready for a pretty much unlimited (material) help to Ukraine if Trump wants it. And the threat of exactly that is necessary for successful peace negotiations, which in turn is what would score Trump major political points.
The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
It's the prisoner's dilemma. It's better to cooperate, but if the other party defects, your best option is to also defect (which serves as a motivator to renew the cooperation).
The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
That Nordstream pipeline is/was owned by Russia.
The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
I assume you protested the 2022 Russian mobilization as well?
The_Colonel··on Cable-cutting tanker seized by Finland 'was loaded with spying equipment'
That analogy still doesn't justify coming to your house and killing your family.
The_Colonel··on More men are addicted to the 'crack cocaine' of the stock market
Indeed, most frustrating is when someone (stupid) is proven right, even though they used completely wrong reasoning (in spirit of Gettier problem).
The_Colonel··on My Colleague Julius
> I've seen this behavior more than once and it seems too specific to not be intentional.

I mean, why not, this sort of quick delivery is super valuable to companies. But management needs to understand that the solution is more like a prototype, difficult to scale (in features, team) and that's where it is the engineer's responsibility to be transparent.

The_Colonel··on One way to fight loneliness: Germans call it a Stammtisch
> There are plenty of groups that meet regularly.

Stammtisch can be used like that, but it can also mean the physical table ("Tisch" means table) where a specific group meets. Meaning, in some pubs, a table marked as such is effectively reserved only for this specific group of regulars. I think this is getting rarer, but I still see it from time to time.

The_Colonel··on Conda: A Package Management Disaster?
Right, I forgot NuGet got adopted by Microsoft. But it started and gained prominence independently.
The_Colonel··on Conda: A package management disaster?
Agreed. Often there's a quite tight coupling between the core platform devs and package management - node.js has its npm, rust cargo, go has one as well and for the most part it seems to have worked out fine for them. Java and .NET (and I think PHP) are different in the sense that the package management systems have no relation to the platform developers, but industry standards (maven, gradle, NuGET, Composer) still appeared and are widely accepted.

But with Python it seems completely fractured - everyone tries to solve it their own way, with nothing becoming a truly widely used solution. More involvement from the Python project could make a difference. From my perspective, this mess is currently Python's biggest problem and should be prioritized accordingly.

The_Colonel··on Conda: A package management disaster?
It's rare to see something as systematically broken as Python package/dependencies ecosystem.

What I don't understand - what makes this so difficult to solve in Python? It seems that many other platforms solved this a long time ago - maven 2.0 was released almost 20 years ago. While it wasn't / isn't by no means perfect, its fundamentals were decent already back then.

One thing which I think messed this up from the beginning was applying the Unix philosophy with several/many individual tools as opposed to one cohesive system - requirements.txt, setuptools, pip, pipx, pipenv, venv... were always woefully inadequate, but produced a myriad of possible combinations to support. It seems like simplicity was the main motivation for such design, but these certainly seems like examples of being too simplistic for the job.

I recently tried to run a Python app (after having a couple of years break from Python) which used conda and I got lost there quickly. Project README described using conda, mamba, anaconda, conda-forge, mini-forge, mini-conda ... In the end, nothing I tried worked.

The_Colonel··on Analyzing the World Chess Championship 2024: Empirical synthesized approach
It doesn't really disprove anything. The problem with this type of analysis is that it's based on engines which are many levels above human play.

While watching the commentary, you will often see comments from super GMs like "engine suggest move XY, but it's not a move a human player would find/consider". The move may be optimal, but only if you're at this Stockfish 3600 ELO level because you need to precisely execute a series of 3600 ELO moves to exploit it. A suboptimal move for 3600 ELO player may be the optimal move for a 2800 ELO player, but Stockfish won't tell you.

I'm not saying this analysis isn't interesting, but we shouldn't overinterpret it.

The_Colonel··on Analyzing the World Chess Championship 2024: Empirical synthesized approach
> Having said that, the guy got himself into favorable positions multiple times and then was happy to trade-off pieces/repeat moves to get the draw.

According to the engine, he was in a slightly advantageous position, but from the post-game interviews it's clear he didn't realize his advantage.

Often it's also an advantage which only an engine can exploit (by a series of difficult to find engine moves).

The_Colonel··on Mysterious New Jersey drone sightings prompt call for 'state of emergency'
This article links photos from a Sony full frame camera and 600mm lens but it clearly struggles:

https://eu.app.com/picture-gallery/news/2024/12/10/drones-in...

The_Colonel··on Mysterious New Jersey drone sightings prompt call for 'state of emergency'
The article suggests the drones appear during nighttime with which cameras will struggle. "low" is relative and can mean 200 meters which would be very difficult even for regular cameras (without a tripod), let alone a smartphone.
The_Colonel··on Assisted dying now accounts for one in 20 Canada deaths
> how do you protect the people who don't want to go, being pressured or manipulated. I agree that if someone is really, independently and committedly deciding to go, you shouldn't stop them. But how do you express that test in a bureaucratic, legalistic framework?

I would look into countries where euthanasia has been already implemented. It doesn't seem like it's a widespread problem, so apparently they made it work somehow.

Does it mean it's absolutely bulletproof and no-one will ever be pressured to undergo euthanasia? No, but you can't ever achieve such certainty, and it's better to look at it from the utilitarianism view - allowing euthanasia will prevent much more suffering than it will cause.

The_Colonel··on Gemini 2.0: our new AI model for the agentic era
> Incredibly bad track record of supporting products that don't grow.

That's irrelevant to me as a user if I've already invested my time into the product.

To an extent all companies do it. Google just does it much more, to a degree that I tend to ignore most Google's launches because of this uncertainty.

← PreviousPage 4 of 34Next →