Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 3y ago · link · parent

> AI can make education almost zero cost in the future.

This is still an open question. LLMs will certainly help to improve teaching. But education is more than teaching. And LLMs have at best a mediocre track record of being correct. So if you are lucky you are taught something correct by an LLM.

Going to university to meet other people with which you can learn together by helping, criticizing, or correcting each other is extremely valuable. That cannot be replicated by an LLM at home. Even the experience of just moving to another city, leaving home is a part of education.

Education will always cost time and hard work. Because oneself has to change to become educated.

comment 3y ago · link · parent

Because, then you have to integrate your few handwritten queries into the caching layer of your orm.

comment 3y ago · link · parent

Not, if you consider inserts, updates and deletes in addition to selects.

Not, if you want to spread the queries over multiple transactions.

comment 3y ago · link · parent

Or you could use an IDE that supports refactoring SQL, like Intellij IDEA.

comment 3y ago · link · parent

Which kind of schemas are part of yaml?

Interestingly although Yaml's spec is longer than XML's spec, it managed to get all sorts of corner cases awefully wrong. https://noyaml.com

comment 3y ago · link · parent

This list is full of excellent points. I especially agree with this:

> 32. don’t confuse a steep learning curve for bad UI. don’t confuse something that

> is just similar to what you’re used to for good UI. Don’t confuse the level of

> pain you went through to learn something with its intrinsic worthiness. The

> only “intuitive” interface is the nipple.

>

> (not actually true, there’s a whole job for teaching babies how to breastfeed,

> but that’s the catchphrase for this one, sorry.)

comment 3y ago · link · parent

Because Google wants you to use Google search.

comment 3y ago · link · parent

> Doing a more modern website enables a lot of things that PDFs cannot do. Animations, interactivity, better automatic parsing, metadata generation, tracking of changes and versions, easier embedding elsewhere, better referencing and citing (hyperlinks),

Perhaps you are not aware that you can create interactive and animated PDFs with LaTeX, beamer, and tikz. Admittedly, it is rarely used. But links inside and outside of a PDF, including additional files, like source code and measured data into the PDF, generating versions of PDFs that show the diff compared to another commit in a version control system, slides that reveal themselves piece by piece are not only possible but actively used in academic circles. Just have look at the PDF of this HN thread for some of those features.

Copying parts of a PDF is usually not a problem if it was generated with LaTeX but is often a problem with other generators.

> "quality of figures identifies 90% of any paper's merit"

Again, see the PDF of this HN thread for nicely formated, syntax highlighted copyable figures, e.g. Fig 2. Do that in a web stack. Of course it is possible, but the best way to do it changes probably quite often and needs a dozen NPM libraries with aforementioned maintenance burden.

PDF are offline capable. I can have a directory on my machines or a cloud service of my choosing as a kind of private library. Do that with web pages. It is possible but often more pita than it is worth. I can use local tools for full text search in them. And I will be able to use that when sitting in an airplane or in the middle of a forest. I.e. I can choose where I want to read and consume complicated reads to facilitate my understanding not to optimize wifi coverage.

I've had a colleague at university who wrote a multi-hundred page book with around 600 diagrams, all of them where programmed with tikz in LaTeX, you could change centrally the building blocks, colors, line styles, shading, font sizes etc. And all of the diagrams would adapt automatically. While being able to integrate these diagrams with arrows to source code and mathematical formulas. I am not aware of any other tool that can do that reliably. That is an extreme use case and for many simpler use cases LaTeX/PDF is not worth it.

comment 3y ago · link · parent

What would be an alternative? A web page? LaTeX has a steep learning curve, but it is very well understood, it doesn't churn needlessly. That is extremely valuable if you don't want to spend your time learning again and again how to do the same thing this week. PDF with all its problems are also well understood, they can be archived. Some nation states require certain documents to be archived in PDF. I.e. you can be relatively sure that there will be PDF readers in 50 or 100 years that can display and print our PDFs. I have my doubts whether it will be possible to display a modern web page of today in a browser in 100 years without constantly maintaining the web page.

> I cam understand e.g. biologists doing it, but when CS folks who should know alternatives do it, I'm evermore baffled, especially given the awkwardness of using e.g. LaTeX.

In my experience it is the other way around: mathematicians, computer scientists and physicists are those using LaTeX the most. Probably, because they are already familiar with programming languages. Hence a markup language is less of a hurdle for them.

But have you tried setting math in something else than LaTeX? LaTeX is still the gold standard for math formulas.

Or consider lecture slides. Professors often want to develop their slides over one or two decades. Just imagine using PowerPoint to manage a few thousand slides (one course over a semester). And imagine keeping that file in a workable state over a decade in PowerPoint. Good luck. Whereas it is no problem to do that with LaTeX and git.

comment 3y ago · link · parent

> Emacs brings nothing new to the table with respect to editing model, it's essentially notepad

Wow, and here I thought I had seen all derogatives about Emacs ;-) But claiming that it doesn't bring anything new compared to Notepad is really strange.

1. Emacs predates Notepad by one or two decades. 2. Have you actually had a look at what is actually included in Emacs? I am not talking about mail readers and other "apps" inside emacs. I mean just for editing text in a non-mode specific way. Things like rectangular cut and paste, vertically aligning stuff, infinite undo, undo restricted to the selection (region) and many many more stuff. That Notepad doesn't have.

comment 3y ago · link · parent

No, you could create arbitrarily large FSMs, but there are no infinite finite state machines.

comment 3y ago · link · parent

The free software foundation for example.

comment 3y ago · link · parent

> Today, many companies basically ban GPL-licensed or otherwise copyleft software projects

At the same time, there are shining examples of commercially used and developed copyleft software like Linux, Blender, OBS-Studio. I doubt there exist many companies that banned really all GPL-licensed software, including Linux.

This shows that the GPL itself is not necessarily a hinderance to commercial use or development. In the end many hardware vendors accepted the GPL as a fact of doing business and opened their drivers to add them to the Linux kernel. With NVidia being the most prominent counter example.

comment 3y ago · link · parent

I've got four BILLY bookshelves that are 24 years old. I've taking them with me the eight times I moved. And they were disassembled multiple times. But I am not sure whether any currently sold BILLY bookshelves would be that durable.

comment 3y ago · link · parent

How do you work with a computer you don't trust?

comment 3y ago · link · parent

> Am I? Why would you not expect it to become cheaper overtime?

Ride sharing services are amenable to network affects. I.e. they tend to end in monopoly. And monopolies are not known for reducing costs for the customer. If some effective regulation could counter the network effect, i.e. make it easier and cheaper to switch between different sevices, then a monopoly could be avoided.

comment 3y ago · link · parent

Thanks for this cool bit of information.

comment 3y ago · link · parent

Why do you call such systems E-type systems? I am asking because I've been interested in an ontology of software systems for quite some times. Because most advice about software development, architecture, maintenance is stated general but actually only applies to some subset of software.

comment 3y ago · link · parent

I don't understand why people think this is a good idea to do at all. Yes it makes updates easier. But each software doing that has to run with the privileges to update itself. Which is in my book a big security downside. Separating rights to install, update, and remove software from the right to run and use it should be complete separate.

I admit this is not very nice for private Windows users. But this is one of the strength of Linux distributions.

comment 3y ago · link · parent

I agree with you in general. But in this specific case, a walk by merge request should be acceptable. To anyone who is familiar with Java enought to be able to work on performance sensitive code, the described change is a no brainer. It doesn't need to be documented, it doesn't need to be discussed, I am pretty sure Intellij IDEA would highlight it as proposed change for performance reasons.

comment 3y ago · link · parent

There is an extension that does that: pgddl. [1]

[1]: https://github.com/lacanoid/pgddl

comment 3y ago · link · parent

Encrypt at the block level, e.g. LUKS or at the filesystem level: ZFS.

comment 3y ago · link · parent

According to the documentation of Postgres 12 [1] it is possible to use so called non-deterministic collations, which may express case-insensitivity. If that is what you need.

The documentation of Postgres 11 [2] states that this was not possible:

    Note that while this system allows creating collations that “ignore case” or  “ignore accents” or similar (using the ks key), PostgreSQL does not at the moment allow such collations to act in a truly case- or accent-insensitive manner. Any strings that compare equal according to the collation but are not byte-wise equal will be sorted according to their byte values.
[1]: https://www.postgresql.org/docs/12/collation.html [2]: https://www.postgresql.org/docs/11/collation.html

comment 3y ago · link · parent

> remember a few years ago how tray icons and whatnot were all different between KDE and Gnome?

Yes, and then tray icons worked across desktop environments for a few years until Gnome decided that this standard should be thrown out and replaced it with nothing.

I think what many people annoys with Gnome and Wayland is that they control the overall trend in Linux desktops and yet couldn't care less about most advanced and experienced Linux users. But what other Linux desktops are there?

comment 3y ago · link · parent

Clojure makes simple code easy to write and maintain. It is more practical than most other Lisps by wisely choosing on which giants should to stand. E.g.

- make immutability the normal case, yet it is sufficiently performing that one rarely has to go back to mutability

- minimal syntax, uniformity, dynamic typing, macro-system, symbols from Lisp

- it extends Lisp with namespaces, even symbols get namespace

- access to the whole ecosystem of the JVM, of Javascript and mostly to Python's ecosystem

The price for accessing those ecosystems was omitting first class continuations. Which one is more valuable depends on your use case, but for many use cases I am considering that was the right choice.

comment 3y ago · link · parent

GP wrote

> The idea is way too simplistic and lacks nuance.

and you wrote

> There is such a thing as bad faith arguments.

Why is it a bad faith argument? GP clearly admitted that no straight forward solution that treats every case the same is going to be good. That is the same you argued for.

comment 3y ago · link · parent

kill accepts multiple pids. So there is no need to use xargs unless you expect so many pids that the command line is exhausted.

comment 3y ago · link · parent

> The problem is less that people don't understand shell commands but more there is too much stuff to remember.

But is it really better in the long run to add more and more additional tools?

Is it less work to understand and remember more uses of fewer commands or is it less work to understand and remember more specialized commands? The latter is clearly more administrative work, because you have to install all those tools on your machines. On the other hand, finding more uses of a few select tools creates those associations in your brain that you need to cover new usages for them yourself.

To me that's a clear win for the side of fewer well-understood tools.

comment 3y ago · link · parent

You should almost never catch all exceptions, i.e. Throwable on the JVM. That is one of the few things that Scala really got right. The `catch NonFatal(e) =>` idiom is doing that nicely. It will catch all throwables with a selected set of special cases, e.g. OutOfMemoryException and all the other VirtulMachineErrors. Catching those in a framework lead to extending the time until a crash follows on a serious issue. Crashing early is often beneficial in such a situation. Together with a process watchdog, like systemd, kubernetes, dockerd, whatever crashing early increases the uptime.

comment 3y ago · link · parent

Yes :( And it is too late for editing it.
1
131415
29