Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

1,291 karma · joined Mar 27, 2019 (7y ago) · 868 submissions

Submissions

comment 3y ago · link · parent

They could make that transition, of course. But look at all the countries that somehow got rid of dictators in this century. How many of those turned into stable, free, and democratic societies? Afghanistan? Iraq? Egypt? Lybia?

If you add ten more years, did it work out for Russia? Belarus? Ukraine? It did work out for Poland, Latvia and some others. But getting rid of an oppressive regime is the easy part of transforming an autocracy into democracy.

comment 4y ago · link · parent

> I'll bet it's implemented in software.

That would be an accomplishment if they did it in hardware. ;-)

comment 4y ago · link · parent

> In reality, nothing has changed because the same pay-ahead option is still there.

That is not true. In the past you have owned a car you bought. Who is going to pay for seat heating if a seat has to be replaced? Who is paying for the fuel caused by the extra weight for stuff you didn't want. What happens if you decide to modify the car you own and run the seat heating yourself?

comment 4y ago · link · parent

> No, but electrical grids can efficiently transport energy across continent-scale distances

That doesn't matter. E.g. in Europe most natural location for pump storage are already used as such. I guess you could build some in Asia, I am not sure. We would just have to trust russia to transport our electricty back and forth. Good idea /sarcasm

comment 4y ago · link · parent

That is not necessarily true for minerals, which are mined not produced.

comment 4y ago · link · parent

How many cycles do those batteries work with that efficiency? How environmentally friendly is mining Lithium in China and transporting it around the globe? How much CO₂ does the transport of those minerals/batteries produce? How do we get rid of old batteries? One huge advantage of producing hydrogen or methane out of thin air with excess energy from truly renewable energy sources is, that we don't have to procure and transport source materials, and that it can be stored.

comment 4y ago · link · parent

sbt ~test uses the dependency analysis of the scala compiler to determine which tests to run.

comment 4y ago · link · parent

Just for comparison "sbt ~test" reruns all affected tests whenever some source changes. Affected tests are determined by the dependency analysis of the scala/java compiler.

comment 4y ago · link · parent

>> write lots of async code.

> Thanks a lot, I'll keep this in mind and try to write as much async code as possible.

Only write async code if the advantages outweigh the downsides, not just by default in order to do some training for yourself. Unless it is in a hobby project where training yourself is part of the goal.

comment 4y ago · link · parent

What would be a successful outcome of throwing tomato sauce onto a painting? A few seconds of media coverage? What is the point of that? Nothing will change, except security in museums. What we need are applicable proposals how to change what. And media coverage of climate issues should focus on that in my opinion, not on pr stunts.

comment 4y ago · link · parent

But have they accomplished anything beyond mere publicity? We are way past the point where we have to convince the majority that something has to change. That seems to be the consensus as far as I observe. The hard question is what do change? And how exactly? And did they offer any proposals for that? If not, they are just wasting everybody's time and attention.

comment 4y ago · link · parent

People were killed in Washington.

comment 4y ago · link · parent

Democracies that elect powerful presidents directly are usually two party systems. Only the indirect vote of the government through a parliament makes multi party systems more stable.

comment 4y ago · link · parent

But your #1 and #2 don't appear in most countries non-extremist left parties. Sure many other western democracies allow abortion in some form, but never unrestricted. E.g. in Germany you can abort in the first three month of the pregnancy if you have been to counseling. That makes it impossible to make a decision in a moment that you would regret later. Later abortions are legal only in life threatening situations.

And the support of logically inconsistent and outright vile policies to favor the later letters of the alphabet soup are an American export.

comment 4y ago · link · parent

And e.g. eastern Germany build the Berlin wall to hold back the masses of western Germans that also wanted to be lifted out of poverty? /sarcasm off

Or was it the other way around?

comment 4y ago · link · parent

Replacing a prime minister after 6 weeks is an extremely short term, even for Italy. The current German constitution --- basic law to be precise -- has lasted twice as long as the previous German constitution. And its end doesn't appear on the horizon. The stability of the US system looked quite dire from the outside less than two years ago.

comment 4y ago · link · parent

Not GP here. I would estimate the number of programming languages is in the thousands, but the number of languages with multiple implementations and long-term maintained programs written in it is probably below one hundred. All the others do not contribute a meaningful body of real-world data for the purpose to learn from programming language design. But they might have contributed knowledge of about the design space of programming languages.

comment 4y ago · link · parent

The manufacturer don't have to make it work with arbitrary software. They could just stop making it more difficult then necessary.

comment 4y ago · link · parent

> showing code problems without running inspections You can configure which inspections are run all the time and which are not

> doing Java compilation on save without using Eclipse's own compiler If you are saving files with Intellij. Configure Intellij to save when focus is lost. I haven't pressed Ctrl-S in 15 years in Intellij. Regarding the automatic compiling whenever you save, like in Eclipse. I am really happy it doesn't do this. Because it means I can work slow compiling projects at all. I can work with refactoring features while my code is in the middle of larger refactoring and it doesn't compile. And so on. But if you prefer Eclipse's workflow, why not use Eclipse?

comment 4y ago · link · parent

That is one of the reasons why I enjoy working with PostgreSQL. It's reference manual is of such high quality, that I consult it before Google or Stack Overflow when I have questions. That lead me to the discovery of many useful features of the years.

comment 4y ago · link · parent

> SQL is masquerades as declarative. It's relational algebra in disguise.

IMHO declarative and relational algebra are orthogonal concepts. And why do you say SQL is relational algebra in disguise (paraphrased) ? Most introductions to SQL I've read, but certainly the SQL page on Wikipedia [1], starts with a remark about Codd's relational model. Granted SQL does not implement it perfectly, and it is not perfectly declarative, although that is a matter of taste.

> Non trivial amount of effort to go from question to query: I often feel like I have to jump through hoops to obtain something trivial.

I've had colleagues which expressed similar sentiments, but I have the opposite impression. I think I can express many queries on a much higher abstraction level than with most other languages.

> I have to think, and I don't want to think.

Not wanting to think while writing code is an understandable wish, but also a big red flag about developers for me. Even the best AI with perfect mind reading capabilities will not be able to execute the query you want, if you don't know what you want yourself. Even the AI would guess sometimes right, you would have no way of knowing whether it was right or wrong.

[1]: https://en.wikipedia.org/wiki/SQL

comment 4y ago · link · parent

How does increased information density help with literacy? If increased information density would increase literacy, couldn't we solve analphabetism with switching to writing in gzipped latin alphabet?

comment 4y ago · link · parent

Unicode is primarily concerned with standardizing existing characters in the majority of the language systems of the world. The big exception are emojis and a small number of usefull icons, the power button icon comes to mind. Its story of addition to unicoe was shared on Hacker News some years ago. As far as I know the only area of invention and growth are emojis.

comment 4y ago · link · parent

In such cases the dialog box could at least have a button "Show details" which provides the technical error message or code and some context, such that an advanced user has a chance to fix it. To the average noob this will make no difference, therefore A/B testing will select against it. But all the advanced users, admin will keep being infuriated.

The useless error messages are still my number one reason to avoid anything from Microsoft.

comment 4y ago · link · parent

This is correct and completely irrelevant in the real world. It is similar to numbers cannot cause harm. Information and numbers are nothing more than interlectual constructs, patterns, or platonic ideas.

But collecting information can enable as much harm as collecting some numbers. For example the Nazis started with collecting information about the racial status of as many people as possible, see [1]. The collected information was later used to decide who to deport and kill.

Although, this is another example of humans causing harm, it also shows why collecting information is not harmless. Although the information itself cannot cause anything. It simply has no agency, so it can neither harm nor heal people. But it can enable both.

[1]: https://en.wikipedia.org/wiki/Aryan_certificate

comment 4y ago · link · parent

Which will wear down bridges and streets far faster. There have been experiments with extra long trucks in Germany, but so far they haven't resulted in extended regulations. Longer trucks have severe limits of manouverability in small cities.

comment 4y ago · link · parent

> I don't think they do optimize volume, because they could certainly have larger trailers.

No they cannot, at least in Europe. The outer dimension of trucks are regulated, such that street planners know what to plan for and truckers know they can pass a street.

comment 4y ago · link · parent

I've use this book countless times.

comment 4y ago · link · parent

> I'm using FF since nearly 30 years and I can see the end which saddens me a lot.

Firefox 1.0 was released in November 2004, see https://blog.mozilla.org/press/2004/11/mozilla-foundation-re...

comment 4y ago · link · parent

That may have been true in your specific case, but that does not generalize.
1
161718
29