Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 4y ago · link · parent

Write once run anywhere, was Java's slogan in the nineties. And I still find the amount of abstraction JVM provides fascinating. At least since it became well defined memory model, you can write complex pieces of software and they behave remarkable identical on a lot of different platforms. I am aware that the API border to the operating system has always been the weakest link regarding practical portability. But I wouldn't call that misinformation.

comment 4y ago · link · parent

Yes, but as engineers we should strive for the simplest possible approach that solves the problem in a maintainable way. Always choosing the most flexible / the most scalable / the most modern approach is often a waste of resources.

> why do I have to add a new paradigm? The answer to that question also depends on which paradigm you are using currently, not only on which you are choosing for the future.

comment 4y ago · link · parent

Let's take this question serious for a moment.

Modern X applications render bitmaps which get shipped over the compositor and the X server to the graphics card driver. That is not a good model for the web, because it would mean the web server has to produce rendered bitmaps, specific for the fonts, window size, and display panel led configuration over the web. The browser cannot even select text or provide a search dialog. That is almost VNC.

But originally, X applications didn't render bitmaps but submitted drawing calls. Sun used to use Postscript for that. So using that approach, it would be possible for the browser to select text, to scroll, to copy text, to search text etc. A clear improvement. But resizing the browser window would still need a complete re-transmission from the server.

But if the web server sends static html, css, and a fixed JS library, which is used to replace parts of the dom, the browser can do a lot more locally. And still the whole application logic resides on the server.

comment 4y ago · link · parent

As always, this depends on the use case. For in-house applications it is often far simpler to keep a lightweight frontend and mobile app is often of no concern. For these kinds of web application a server-heavy architecture was always a good choice.

comment 4y ago · link · parent

Thanks, I get all the arguments from the developers and that it should be better in principle in the long run. But I need screen sharing, screen shots, and of course xsnow ;-)

comment 4y ago · link · parent

This is hard to believe to me, I've used `ssh -X` countless times over the last twenty years on Ubuntu, Debian, Gentoo, Mandrake, Suse, Nixos and whatever else. I cannot remember this did ever fail. It might have been slow. I might have fixed xauth issues at the beginning. But it worked. So I am wondering what you did to have such bad experience.

comment 4y ago · link · parent

Could you explain the benefits of switching to Wayland that you experienced?

comment 4y ago · link · parent

Agreed. That is similar to my example regarding a history of visited sites. And features like that a very helpful in my opinion.

comment 4y ago · link · parent

yes

comment 4y ago · link · parent

You are absolutely right! They seam easier to reason about. But relational databases actually are simpler to reason about when you compare equivalent feature sets. I've seen people argue it is just a key value store, so it is dead simple, right? But then they didn't just use key value store features. They used or implemented themselves joins, transactions, consistency constraints under parallel modifications, etc. But this is not the system for which they determined that it is simple.

But even for simple use cases durability might be a requirement. And that is not so simple to get right.

comment 4y ago · link · parent

Could you explain that? Software that tries to interpret what users are doing and then tries to adapt to itself is on a slippery slope. The first steps in that direction, like a history of visited sites, or recently edited files menu are uncontroversial. But when it moves menu entries around to optimize for assumed workflow of the user, that user gets infuriated very fast.

Software that I cannot adapt to my needs is like an interactive tv. Ultimately I have no control over what is happening. Software that I can adapt to my needs puts the personal in Personal Computer.

comment 4y ago · link · parent

Just my last encounter with the so called meme, that sex is a social construct: [1]. It was just 12 hours ago.

[1]: https://twitter.com/x_mass/status/1488329923471319043

comment 4y ago · link · parent

Good point, but I was under pressure to buy a new one, and the options were limited due to Covid-related delays. As I live in Germany were it is very hard to find an unauthenticated Wifi-network, and there is certainly not a single one in range of my home, I could accept that risk.

comment 4y ago · link · parent

Because they are supposed to be top researchers in their field. And I doubt you'll find a world-wide renowned scientist in biology who believes sex is merely a social construct. So these goals are at least partially incompatible. Universities should be about research, science, teaching and teaching students to educate themselves. Following the dogma of DEI is incompatible with teaching students to educate themselves.

comment 4y ago · link · parent

I don't understand the usefulness of notifications on my phone for a dishwasher. Either I am near my dishwasher and hear its acoustic signal that it has finished. Then I can decide to open it or empty it now or later. Or I am not near the dishwasher than I can't do anything about it. Then it is a completely unactionable information, i.e. noise.

Actually, I have a Bosch/Siemens dishwasher with Wifi because it is very good dishwasher, but I've never connected it to my Wifi, because I don't want to think about advanced persistent threads infilitrating my dishwasher.

comment 4y ago · link · parent

They did not skip QA. The EMA (the European FDA equivalent) did not reduce the formal requirements for Covid vaccines compared to other vaccines. None of the Covid vaccines have an emergency use authorization in the EU. They all went through the regular process. That process was made more parallel and more incremental. And it was obviously executed with the highest priority possible. Those ideas are indeed used in the IT world, but they are successful ideas, and they are much older than the IT world. By incremental I mean, the rolling review used for the trials. I.e. the pharma companies would deliver regularly preliminary versions of the final report on the trial. Thereby, a lot of questions about the report can be asked and answered earlier than in a traditional review process after the trial has finished.

comment 4y ago · link · parent

Possibly, but if you are processing live market data, you are in the arena of almost hard real-time systems. I.e. you effectively have a time budget to process every single tick/message. Then, even low-level optimization can make a large difference. E.g. if you can make some helper method use less memory, i.e. it uses less of your caches, that can make a big difference on your business logic. Amdahl's law is not at all suited to understand such non-linear non-local inter-dependencies.

comment 4y ago · link · parent

'unfamiliar' is 'unintuitive'. You only have an intuition for things that are similar to things you have encountered. Some unfamiliar or unintuitive things might be simpler than familiar things. But, at first, it is often easier to use familiar things, even if they are less simple.

Regarding RPN, I am not convinced that they are actually simpler to a human. In order to understand an RPN expression I try to keep the stack of operands and intermediate results in my ultra short term memory. This can easily exceeds its typical capacity, whereas when trying to understand an infix expression, I can replace subtrees with an abstraction, i.e. a short name, in my mind. But perhaps I have just not yet seen the light and spend enough time working with RPN expressions.

On the other hand, RPN expressions are certainly far simpler to implement.

comment 4y ago · link · parent

> Nobody said you can't operate with old-style VMs and ansible or puppet or whatever, but tbqh yes, you're going to move slower.

To stay in your metaphor, moving faster is not a guarantee to arrive at your target earlier. As long as everything works fine, using k8s is great. When you have to dig deep to solve a problem, a stack with less layers might be a huge advantage.

comment 4y ago · link · parent

I've been using Zoom on Gnome almost daily in the last three years. I've basically no problem with video conference itself. Video just works for me. But audio is a never ending story. Zoom randomly selects other audio devices, when I quit one video session and start another. Sometimes, I have to to quit zoom and start it again. Sometimes I have to disconnect my table speaker/microphone to be able to use it in zoom again. It still works with every other software I've tried. When I start zoom, I get the dialog to share crash information 95% of the times I start zoom. Zoom is not able to store my account password or even the username under linux. So, when I open my macbook, it's zoom client wakes up, disconnects my zoom client on linux and I have to go fetch my zoom password from 1password once more. The zoom client under linux fails to safe room passwords all the time. The Zoom client makes it extra hard to call it with command line args to open a special room including password immediately. I could go on. It is just a huge pain in the ... . But most "entreprise grade" competitors are far worse.

comment 4y ago · link · parent

Well, if that was not your intention, I am sorry. But it was my honest understanding of what you wrote.

comment 4y ago · link · parent

> Cluster Index (or Indexed Views as it's called in SQL Server) is the typical mechanism to sort the data on the disk in RDBMS. MySQL does that by default with the primary key, but not Postgres.

Does that mean that Mysql moves the second or the first half of the table if you insert a row in the middle? I can't imagine that.

I've recently considered clustering multiple tera bytes of time-ordered data stored >100 partitions in a Postgres 12 instance. After careful consideration I came to the conclusion it wasn't worth it. Clustering would have sorted all the rows by date in the table blocks. But that doesn't guarantee anything about the block layer below the filesystem. So it is of dubious value from the standpoint of performance. The other advantage I was hoping for was being able to use a BRIN index. But since, my database has very rare cases of updates of those rows. A BRIN index looses its value very fast. Either I lower the fillrate to leave space in every block for updates. Which allows the BRIN index to stay current but costs a lot of space. Or I would have to force BRIN index updates regularly because they can be lossy. And that is not acceptable in my application. The whole database is stored on nvme disks managed by zfs. That won't benefit from ordering the data on some arbitrary abstraction in the middle.

comment 4y ago · link · parent

This i a good idea, it could use a standardized word list, like the one from Diceware[1] or EFF's Diceware wordlist [2]. Of course there's also an XKCD for that [3].

[1]: https://theworld.com/~reinhold/diceware.html [2]: https://www.eff.org/deeplinks/2016/07/new-wordlists-random-p... [3]: https://xkcd.com/936/

comment 4y ago · link · parent

On the contrary, I find etymological explanations often most enlightening. Although, I am fully aware that it might just be an origin of a word or a phrase and not the contemporary meaning. Your argument sounds defeatist to me. To paraphrase it: since the 'actual meaning' alone is not a perfect explanation we should not even try to understand the roots of words and their heritage. Then you can stop understanding the world altogether, because no amount of knowledge will remove all obscurity and contradictions. Yet human knowledge is prospering.

comment 4y ago · link · parent

> Yup, pretty much. I do think that "GC" usually these days refers to a mark and sweep GC

Mark and Sweep is antiquated for GCs. There are some edge cases where it is still useful. But most heavily used sytems should use more modern GC algorithms, e.g. generational GCs.

comment 4y ago · link · parent

Denormalization is only a performance optimization if it matches exactly to your queries. If your data is denormalized in some way, but later on you discover you want to query it differently, it may be way more expensive to query it then. Even if you know beforehand that you want to access the data in multiple different ways and you denormalize it for all those ways, it might be faster to use normalization because of better memory-locality. So, there are a lot of tradeoffs.

comment 4y ago · link · parent

Is there a tool to get an overview over the size of a set of images, considering sharing?

comment 4y ago · link · parent

Ceramic shingles are replaced after 40-50 years as well. At least in Germany.

comment 4y ago · link · parent

The last time I compared hosting prices of AWS with self-hosting. AWS based hosting would have cost us every three month the cost of buying over the top speced server hardware. These numbers are not directly comparable, but they are a large difference to account for colocation and maintenance. And we never managed to get a similar performance of postgres on AWS compared to the self-hosted version we use now. But the main advantage is the simplification you get. It is certainly not easier to use you own hardware, but it is far simpler.

comment 4y ago · link · parent

The macros aren't set when building the libc, they are set when programs using the libc are build. So every program build on a distribution uses either the default or set one of the macros.
1
202122
29