232 karma · joined May 6, 2015 (11y ago) · 189 submissions
comment 2d ago · link · parent
For example [1]: "core: Keep a device pixel for boxes under a pixel thick (#2841) [...] Frames are rounded to device pixels edge by edge (`rounded` in `core/mod.rs`), so neighbouring views meet. A box thinner than a pixel whose two edges round to the same pixel got no size at all and vanished.".
I wonder if humans need special abilities to read and understand this. And if these kind of bugs this commit attempts to fix could have been prevented in the first place.
> An app written in Rust is native code compiled into the app that ships it, as the rest of that app is, and runs with its trust
This also makes no sense if you use the Chinese version of the text and machine translate it to English.
[1] https://github.com/longbridge/nsh/commit/70a45b59ea5813bbc5f...
comment 2d ago · link · parent
Maybe because the code repository was started on October 11th, just 1.5 months ago. More than 2,000 commits later it already looks great. I think, they do the (AI) software engineering part very well [2].
After using GTK and JavaFX, and React for a decade, Native Shell makes me really excited. I never got warm with Flutter, the desktop applications were very slow on my MacBook. So I've been doing frontend development for more than 25 years, and I'm completely mind-blown for the last few weeks.
Having a React background this feels very familiar, without the annoyances. Reactivity is inspired by Solid, styling by CSS (optionally with Tailwind syntax), the UI primitives are native views with layouting done by Taffy [3]. If you target web, the UI will be HTML. You can write the UI screens and components in Rust, but you can also use TypeScript/JSX, it will transpile and interpret it using Rolldown and QuickJS.
It includes some components which are difficult to get right. A data table component, a rich-text editor component, and a plot component. As far as I can tell, they chose the currently best-known approach for them.
[1] https://nsh.dev/ [2] https://github.com/longbridge/nsh/commits/main [3] https://nsh.dev/elements/
comment 1mo ago · link · parent
>See how incredible teamwork from the Red Bull Racing mechanics enabled Max Verstappen to recover from a pre-race crash to taking the start of the 2020 Hungarian Grand Prix.
[1] https://www.formula1.com/en/video/hungarian-gp-red-bulls-inc...
comment 10mo ago · link · parent
Not about Germany, Italy, and Japan, forming some sort of axis, I guess.
comment 11mo ago · link · parent
Maybe the `tsc` type-checker was already fast (so we only get some speed improvements in `tsgo`), or the `tsc` compiler was not that fast (so we get a lot of speed improvements in `tsgo`)?
*Update:* There was a performance regression in incremental type-checking between `tsgo` preview 20251209 and 20251211 [1]. But `deno` is using `tsgo` 0.1.11 which was already released last week (before this regression). So, does not seem to influence the type-checking times here.
[1] https://github.com/microsoft/typescript-go/issues/2341 [2] https://github.com/denoland/deno/blob/v2.6.0/cli/tsc/go/tsgo...
comment 1y ago · link · parent
The people I worked with were not specifically HN audience. Rather in the Java bubble in Germany-Austria-Switzerland which is also surprisingly a small world. If BPMN is not really needed, then I would also not use it nowadays. It increases complexity, and who knows if it makes project communication better at all.
Update: On the Camunda website there are 60 case-studies of customers/clients using BPMN, https://camunda.com/case-studies/. One of them has the teaser: "The 10th largest US Bank created an omnichannel onboarding platform that handles 12m process instances per year across 100 workflows". Now I have something to read for this Sunday evening.
comment 1y ago · link · parent
I don't know, in 90s Germany my parents just let me wait in the car for a minute and there was only the radio I could listen to. In elementary school I just walked to school even in darkness. And in high school I walked 15 minutes to the bus. That was the time when some middle class parents started bringing their children to the bus with the car, but for most of the other children is was normal to just walk.
But yeah times change. My grand-parents walked 10 km by foot to school on the street on 6 days per week after war.
comment 1y ago · link · parent
I succeeded to use resvg-js [1] with dagre/graphlib [2] to render graphs. resvg-js uses a 4 MB node library to render SVGs. dagre is used by mermaid for graph layout (for some of the diagram types). if you disable loading system fonts in resvg-js it just takes milliseconds to render the SVG.
I know that mermaid is well-known and very useful, but I don't like the code quality (especially consistency) and the bloat of dependencies. Last time I went through the code I assessed it requires significant refactorings to make it work with resvg-js, i.e. server-side graph layout and rendering.
There is also nomnoml [1], which is so great, it should deserve at least the same amount of attention as mermaid. the nomnoml codebase is a joy to read. the author even converted the dagre/graphlib codebase to typescript [4].
[1] https://github.com/thx/resvg-js [2] https://github.com/dagrejs/dagre [3] https://github.com/skanaar/nomnoml [4] https://github.com/skanaar/graphre
---
Edit: One of the refactorings to make mermaid work with resvg-js is related to measuring svg text width. It's needed to determine the width of the graph node boxes. mermaid needs to be able to also use `resvg.getBBox()` to make it work with server-side rendering.
comment 1y ago · link · parent
comment 1y ago · link · parent
Instead he argues "Modeling is the new literacy" and "In order to represent a system, we have to understand what it is exactly, but our understanding is mired in assumptions.".
Modelling is still required in Star Trek. The computer can make many assumptions, but the user still has to adjust wrong assumptions using voice commands or panel commands, as shown in many episodes.
[1] https://chris-granger.com/2015/01/26/coding-is-not-the-new-l...
comment 1y ago · link · parent
The technical manual of TNG [1] states, "Most panels are also configured to accept vocal input, although keyboard input is preferred in most situations for greater operating speed and reduced chance of input error by voice discriminator algorithms." (page 33). Even in the original Star Trek they quite often use the panels.
[1] https://en.wikipedia.org/wiki/Star_Trek:_The_Next_Generation...
comment 1y ago · link · parent
There is "Ben Shapiro: US commentator clashes with BBC's Andrew Neil - BBC News" from 6 years ago, maybe to see how different it is. I also remember Richard Dawkins in a German debate show promoting his book, and he was clearly not prepared for German debate culture.
A few years ago, I spoke with a coworker from Norway. He told me he used to watch news in Norway and later also watched news, e.g. from the United States. He was stunned that the news in Norway are so close to the US news, as if they copy a lot from them. And of course, if you only watch the news in Norway you'll not notice that.
Somebody told me some time ago, when he was in his training for military officer, he had a guy in room who spoke many languages. he was curious and asked him, how he learned all these languages. The guy told him, his father (a German general) ordered Frankfurter Allgemeine Zeitung (German news paper), Le Monde (French newspaper), and another newspaper every morning. Actually his father ordered three copies of each newspaper so the guy, his father, and his sister could read them each morning and tell his father the news in Germany and other countries at the breakfast table. Because of this drill he quickly learned these languages, you just need to start and make it a habit.
comment 1y ago · link · parent
the main edition is so influencial, the evening programm (prime time) on many other german television channels starts at 8:15 pm. in the 90s they tried to start the main program at 8 pm, but the people only switched to the channels at 8:15 pm, when the main edition was finished. so they reverted their schedule after a month.
> At 20:00 each evening, Das Erste (The First), Germany's oldest public television network, airs the country's most-watched news broadcast, the main edition of the Tagesschau, which is also simulcast on most of its other specialist and regional channels (The Third). The conclusion of the bulletin 15 minutes later marks the beginning of prime time, as it has since the 1950s. In consequence, most other channels—public and private alike—also choose to start their prime time at 20:15. In the 1990s, the commercial channel Sat.1 suffered a significant loss of audience share when it tried moving the start of its prime time to 20:00.
comment 1y ago · link · parent
Me too. There are still German companies where coworkers address others with Herr or Frau followed by their last name.
I find it also interesting how people that learn German understand the difference between the "you" in formal ("sie") and informal ("du") version, but often don't understand in which context du use them. In most cases you can use the informal "du" nowadays, especially when you are out with somebody for a beer.
After elementary school we had this interesting shift form addressing the other children with first name to addressing them with last name. We were circa 11 years old.
comment 1y ago · link · parent
But once you don't use ORMs or have a non-monolithic architecture, you need something to validate your schema.
comment 1y ago · link · parent
Lately, I used code agents a lot, and having typescripts types infered from Zod schemas allows me to catch errors when the large-language model generated slightly wrong code.
comment 1y ago · link · parent
comment 1y ago · link · parent
In the end you'll have a schema somewhere. Maybe defined in the database system, maybe defined in the models of an object-relational mapper. Since defining the schemas in database system or using object-relational mappers can cause very difficult problems in large projects we do not use it and use Zod and Protobuf instead. While I think you could even replace Protobuf completely with Zod or something similar.
There is the British Post Office scandal [1] around an IT system called Horizon (the legacy system in this case). After reading about the details I'm pretty sure something like Zod (I mean any schema validation) would have contributed to prevent this scandal. They even mentioned the lack of using a schema in the technical appendices in the court documents of the group legal action [2].
[1] https://en.wikipedia.org/wiki/British_Post_Office_scandal
[2] https://en.wikipedia.org/wiki/Bates_%26_Others_v_Post_Office...
comment 1y ago · link · parent
What backs up this claim? And when will it reach it?
We could be very well reached a plateau right now, which means looking at previous trends in improvements does not allow us to predict future improvements. If I understand it correctly.
comment 1y ago · link · parent
As far as I know Meta's Lexical [1] (used by Facebook, Whatsapp, and Instagram) is goes also a similar direction: customizable, but it takes time to get used to it.
comment 2y ago · link · parent
>Not too appealing to have to install that much crap on one's system just to play with a new language.
Ironically, this is what I thought about C# and Visual Studio when I used it 20 years ago. Boo was much easier to get started with back then, when you just wanted to try out .NET 2.0. It took me a few minutes to download and install .NET Framework (~20 MB) and SharpDevelop (~15 MB) versus five CDs of Visual Studio 2002 which took an hour or so to install on the machines of that time. And yes, I already skipped the installation of the Microsoft Developer Network (MSDN) documentation which as far as I remember already took an hour alone.
For some reason the installation of a development environment for Java was also much easier than Visual Studio, i.e. one had to download Java Runtime Environment (~100 MB) and unpack it, and then download Eclipse IDE (~100 MB) and unpack it. When you downloaded both archive files already it took a few seconds to unpack it and double-click on the eclipse.exe.
comment 2y ago · link · parent
[1] https://en.wikipedia.org/wiki/SharpDevelop [2] https://github.com/icsharpcode/SharpDevelop/releases