Readit News logoReadit News
vkazanov commented on I Prefer RST to Markdown (2024)   buttondown.com/hillelwayn... · Posted by u/shlomo_z
blenderob · 13 days ago
> FYI: Parsing and compiling in the programming language sense are orthogonal problems.

How so? In Ada, Fortran, C, C++, Java, Python, etc. parsing is one of the many phases of compiling. Far from being orthogonal problems, parsing is a sub-problem of compiling.

vkazanov · 4 hours ago
Parsing is almost always a part of a programming language compiler but it doesn't have to be.

When we parse a string, we go up from low-level human-readable strings to intermediate parse trees to a high-level AST.

A process of compilation goes down from some kind of a high-level internal representation through phases to something that is close to the target low-level language.

It can go down from an AST, or LLVM-s internal representation, or whatever.

Problems solved by both processes are different:

1. Parsing is about finding string patterns (using regexps or PEGs or whatever) and representing these using a more strict high-level structure. The structure is usually tree-like but is also often a graph.

2. Compiling takes something high-level (a tree, a graph, etc) and emits something different, usually simplified.

A good example is a typical lisp implementation where the parser is trivial but compilation phases represent numerous simplifying phases.

vkazanov commented on John Carmack's arguments against building a custom XR OS at Meta   twitter.com/ID_AA_Carmack... · Posted by u/OlympicMarmoto
tux3 · 17 hours ago
Sean Baxter's circle compiler uses LLVM as a backend, but I believe the rest is from scratch.

Arguably these days having a clear frontend/backend separation is good compiler architecture. It might slow down compile times a bit, but it's worth the cost.

vkazanov · 16 hours ago
So it sounds like he wrote the frontend of a cpp compiler? There's a lot of work in other layers as well.
vkazanov commented on Lisp from Nothing, Second Edition   t3x.org/lfn/index.html... · Posted by u/nils-m-holm
vkazanov · 2 days ago
As somebody who read a couple of the author's books, and also somebody who spent almost a decade studying compilers, I am genuinely curious about the author himself.

These works are something I both understand and would never achieve myself. These are cultural artifacts, like deeply personal poetry, made purely for the process of it. Not practically useful, not state of the art, not research level, but... a personal journey?

If the author is reading this... can you share your vision? Motivation?

vkazanov commented on I Prefer RST to Markdown (2024)   buttondown.com/hillelwayn... · Posted by u/shlomo_z
thaumasiotes · 13 days ago
> It's miserable to parse C++ and that's fine, because only a few people have to write a parser while 5 orders of magnitude more have to read and write it.

Really? I was under the impression that the fact that it is miserable to parse C++ directly means that it's also miserable to compile C++ - it can't be done quickly - which is something that everyone has to do all the time.

vkazanov · 13 days ago
FYI: Parsing and compiling in the programming language sense are orthogonal problems. Both are major challenges in cpp compilers.
vkazanov commented on GitHub is no longer independent at Microsoft after CEO resignation   theverge.com/news/757461/... · Posted by u/Handy-Man
EGreg · 20 days ago
What about Wine? Is that still a thing?

Visual Studio Code seems to be their big open source push, besides GitHub. Everyone uses it, and most development environments and UX are based on it. Used to be Atom, I remember.

vkazanov · 20 days ago
Valve's steam deck runs on Linux/Wine. Wine is more popular than ever.
vkazanov commented on AMD CEO sees chips from TSMC's US plant costing 5%-20% more   bloomberg.com/news/articl... · Posted by u/mfiguiere
leptons · a month ago
"Sounds weird"???

Not really sure what you mean by that.

Both our Intel and AMD computers are doing great. Nothing "weird" about it.

No problems at all. YMMV.

vkazanov · a month ago
What i mean is that it's relatively hard to find an intel laptop that would be meaningfully faster than an amd one. For a while Intel was surviving on quality software but even this moat is drying out.
vkazanov commented on AMD CEO sees chips from TSMC's US plant costing 5%-20% more   bloomberg.com/news/articl... · Posted by u/mfiguiere
leptons · a month ago
I used to be a die-hard Intel customer, and recommended to everyone that asked me what to but, to buy Intel. That has changed. Now it's price/performance that matters more than brand. Intel also had a few missteps that made the brand lose a bit of its luster.

My most recent computer is AMD Ryzen based, but we just bought an Intel-based Dell for my partner because the price/performance was better than comparable AMD machines at the time, possibly due to a sale. But the Intel chip is a lot faster than my laptop, so now I'm a little bit jealous of the Intel machine.

vkazanov · a month ago
Sounds weird.

I have 2 intel/dell laptops and thinkpad/amd 14s laptop. Both Dells (a workstation-class 22 core cpu and a more power-efficient one) suck massively when compared to amd ai-something-something-ryzen.

What's worse, intel drivers are a mess on linux right now. Dell xps 13 plus is the worst laptop I had in a decade, and that's after owning every Linux-preinstalled Dell XPS 13 ever released.

vkazanov commented on The Big OOPs: Anatomy of a Thirty-Five Year Mistake   computerenhance.com/p/the... · Posted by u/SerCe
zaphar · a month ago
Except that his talk is not anti-OOP. It's anti-a-specific-way of using OOP. Namely representing the Domain Model as the compile time hierarchy. He goes to great lengths that he himself uses OOP concepts in his code. OOP wasn't a mistake per-se. The mainstream way of using as promulgated by a number of experts was the mistake.
vkazanov · a month ago
The problem is that once you exclude domain-specific hierarchy from the discussion, there's not much left of OOP.

It's just data + relevant functions. Which is ok.

That's all there is, really.

vkazanov commented on Linux Reaches 5% Desktop Market Share in USA   ostechnix.com/linux-reach... · Posted by u/marcodiego
palata · a month ago
To me, Desktop Linux is the Linux I run on my work computer: the one that has a screen, a keyboard and a mouse. It is based on Linux (obviously), the GNU userland to some extent, and then it has a graphical environment (usually based on Xorg or Wayland).

This is different from embedded Linux or Linux on a server. And this is different from Linux-the-kernel (which runs on Android).

vkazanov · a month ago
Well, you came up with a rather vague definition. Xorg OR wayland. Gtk or qt? Which set of tools do you expect to be available?

All of that is just too nebulous. Linux is something that runs the kernel, that's about it.

I mean, I've been using linux for all of my life, servers, at home, for work, embedded dev, corporate environment, as a manager and as a dev, etc.

What I see is that linux as already everywhere. Desktop space is the only OS market where non-linux OSes are in the majority, and maybe this is why people are so excited about these pointless numbers.

vkazanov commented on Linux Reaches 5% Desktop Market Share in USA   ostechnix.com/linux-reach... · Posted by u/marcodiego
oblio · a month ago
Desktop Linux has a clear scope, and we all know. We can act like we don't, but we do.

Can I install LibreOffice on Android? Gnome, KDE, Xfce? Which percentage of packages in the Debian repos can I use on Android?

vkazanov · a month ago
Linux is a kernel, that's it. There is an organisation maintaining it, and also the trademark.

There is also a major family of OSes building on the kernel + gnu userspace, which you probably call "desktop linux".

In my house there are dozens of devices running linux the kernel: routers, a tv set, washing machines, NAS, printers, etc. Some have the full gnu posix-like stack, others are very barebones.

Then, there's is a bunch of android devices running the kernel as well.

What's wrong with all of these? At what point should i draw a line?

u/vkazanov

KarmaCake day1485August 18, 2015View Original