Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 5y ago · link · parent

The comment might not be a perfect, but I don't think it is "disgustingly misleading". Although the current trade problems are indeed caused by protective measures against the new Covid19 strain, as you wrote. They are still representative of what will probably happen if normal border crossing for wares and goods is prohibited from one day to another. So, I'd say it is relevant, but not the same thing.

comment 5y ago · link · parent

But Snapchat, as most web-scale companies, doesn't care whether a single operation gets lost and whether a small number of user have data loss. Whereas Walmart, at least, should care whether every single employee got his salary or whether the taxes for him were booked properly. Therefore a lot of "solutions" of so-called web-scale companies are to naive for an enterprise.

comment 5y ago · link · parent

Relying on `command help` with an unknown command can be dangerous.

comment 5y ago · link · parent

By the way git is an excellent SVN command-line client, though it doesn't help with the learning curve.

comment 5y ago · link · parent

> "Don’t bother with man pages." Strongly disagree.

Me as well. Though I am not against well linked documentation on the web. But man pages provide several unique advantages.

- Because man pages are installed with the same package the software comes in, their version matches exactly to the version of the installed software.

- Man pages don't require an internet connection or a running server. The internet connection can be a problem in certain kinds of enterprise networks, embedded system or during my commute in the train. The running server costs money who might not be willing to spend it as long as I would like to use the software.

- Linking from the executable to the web is tricky. Does the terminal support clickable links? Which browser should I start? Does it help the user in any way to start a browser on a far away machine that he connected to through ssh, mosh, telnet or morse code over avian carrier?

- It is very easy and safe to open a man page to an unknown command. You can be sure the command is not executed by accident. If I have to type `some-command --help` I am never sure if this is one of those commands that doesn't accept --help and does something stupid instead.

Despite all these advantages of man pages or offline available documentation I also like good online documentation. https://www.postgresql.org/docs/current/ comes to my mind when thinking about excellent software documentation. Granted it is not a one-minute tutorial for the latest newbie. But for someone using that piece of software for years, its value cannot be overstated imho.

comment 5y ago · link · parent

Here is an interesting idea, they might know it from their English lessons in school. Which might have taught British English and not American English. But who knows.

comment 5y ago · link · parent

Do you mean abusive idealogies like intersectionality and safe-spaceism?

comment 5y ago · link · parent

> I think it is OSS [1], although all the code is in Subversion

What has the license with the chosen version control system to do?

comment 5y ago · link · parent

Are you sure that English is defined by its usage in the United States of America? Or is it defined by the usage in, let's say, in England?

comment 6y ago · link · parent

The jit compiler of typical jvms automatically uses the instruction sets (with limits afaik) that are available on the hardware that it is running on.

comment 6y ago · link · parent

> Conspiring to remove democracy is illegal in Germany.

As it should be.

comment 6y ago · link · parent

I think the point was: Chrome has as much lines of code as Linux with all its drivers and still has no decent dropdown built in. Not that it cannot be built.

comment 6y ago · link · parent

But what about the teams coming from classical desktop application development. Perhaps they don't want to switch to Electron-based web development.

comment 6y ago · link · parent

I do it the other way around, I let git write the default conflicting files. And then switch to IntelliJ, press Ctrl-a and type "resolve", press enter. And voila I am in IntelliJ's git resolution windows where each conflicting file is listed.

comment 6y ago · link · parent

At first I would try sbt-tmpfs, and then the largest factor in compile time imho are dependencies. Make sure that you split your project in submodules of semantically valid units. That reduce the amount of code that has to be analyzed. And then make sure that you don't have many unused imports.

In every project I've been are some former Eclipse users that are accustomed to collapsing all imports and adding new ones automatically. They never look at their ever growing list of unused files that are searched, loaded, and parsed.

comment 6y ago · link · parent

Another possibility is to use "typesafe heterogenuous containers" as described in Joshua Bloch, "Effective Java", 2nd edition and probably 3rd edition. The idea is to use maps with specially constructed keys, that give you type safe access to their accompanied values. That is better than completely untyped, you have a place to document stuff at the declaration of those keys and you can easily create runtime checks, that check for the presence of a set of well defined keys in the map. The fact that they are described in a Java book does not mean that they aren't a nice pattern in Scala and several other statically typed language with generics.

comment 6y ago · link · parent

Didn't Bill Gates' foundation invest 6-7 billion dollars in manufactoring capabilities for vaccines this spring?

comment 6y ago · link · parent

Those 1.1 billion doses are not for the US alone. The vaccine was actually developed by Biontech in Germany before Pfizer was involved. Pfizer is the partner to scale up the studies and production. But you can assume that those doses are not US only. And then I'd doubt that a healthy 30 year old will get it in summer of 2021.

comment 6y ago · link · parent

Phil Wadler has several "nice" papers about linear logics, e.g. this one: http://homepages.inf.ed.ac.uk/wadler/papers/lineartaste/line... By nice I mean, nice if you are willing to deal papers about formal logic. Which excludes pretty much most people on this planet. But you asked.

To put it in my own words, and bear in mind that the last time I've worked with linear logic was 15 years ago. A linear logic restricts how often you are allowed to use a proposition in a derviation or proof tree.

The borrow checker is more like a linear type system. In linear type systems you restrict how often an identifier of a linear typed variable may be used. See, e.g. Phil Wadler's paper "Linear types can change the world", where he explores the idea to use linear types as an alternative to model the World(tm) in pure functional programming, i.e. an alternative to the IO monad.

comment 6y ago · link · parent

Another reason why it is easier to integrate and use STM in Haskell than in most other languages, is the prevalence of immutable types. When only a tiny fraction of all memory structures needs to be tracked by STM as TVars, it becomes orders of magnitudes cheaper than in languages with predominantly mutable data structures.

comment 6y ago · link · parent

remove the - in front of bash in the settings of Terminal.app. Then the terminal does not run a login shell but an interactive shell. You might have to add -i after bash for that.

comment 6y ago · link · parent

Flyway or Liquibase.

comment 6y ago · link · parent

Perhaps we should first try to teach the difference to more people, before we try to teach it to an AI.

comment 6y ago · link · parent

Don't forget the Ministry of Truth.

comment 6y ago · link · parent

Doesn't the GDPR require that users have the ability to download their data?

comment 6y ago · link · parent

> Certainly, there are no positive health effects to all of the extra radiation we are creating

Just three days ago:

Exposure to Static Magnetic and Electric Fields Treats Type 2 Diabetes (https://news.ycombinator.com/item?id=24742900)

I cannot say anything to the quality or validity of that article, but as usual absolutes are more often wrong than right.

comment 6y ago · link · parent

Batteries are heavy. That is still a big problem for personal transportation in cars, planes, trains, buses and whatever. But personal transportation is not the source of all CO2 generated. There are homes, in most parts of the northern hemisphere they have to be heated. Replacing all those heating systems before there normal end of life, is a huge additional amount of CO2 to blow into the air. Running the same heaters, ovens, cars with a CO2 neutral produced methane seems to be way more cost- and CO2-efficient, at least in the medium term.

comment 6y ago · link · parent

Well natural gas (mostly methane) is already available in most houses in Germany. It contains an additional component, so that you can smell it easily, because a gas leak near the open fire in the heater is obviously very dangerous. Yet I can remember two or three leaks, that were covered in the media. Nothing in 40 years in my circle of neigbhours, friends, or family. Therefore, I am convinced it possible to create natural gas distribution systems without considerable leaking. Perhaps, that depend on the organisational maturity of the country we are talking about. But it seems to be possible.

comment 6y ago · link · parent

And methane has the added benefit of being able to be used in unchanged home heating systems, at least in large parts of Germany and probably of Europe. And there is an existing distribution network in the form of pipelines to most houses. And there are large storage facilities, like the strategic reserves for natural gas. If you factor in the saved CO2 due to the fact that you don't have to change most home heating systems. And that you can easily retrofit lots of gasoline engines in already existing cars. Then I don't get why Germany started to support EV at all.

comment 6y ago · link · parent

But we need rules for the benefits of the society as whole not just for teens.
1
2526272829