Hacker Newsnew | past | comments | ask | show | jobs | submit | tubs's commentslogin

Isn’t this because the wine db has those tweaks pre configured?

Windows used to be half operating system, half preconfigured compatibility tweaks for all kinds of applications. That's how it kept its backwards compatibility.

More a case of DirectX radically changing how it worked [0].

[0] https://learn.microsoft.com/en-us/windows/win32/direct3darti...


It's because wine OS selector actually tries to match bug for bug the OS version you set but Window's one gave up after Windows 7.

Are you?

The majority of production compilers use hand rolled parsers, ostensibly for better error reporting and panic synch.


One anecdote in the same vein, a couple of months ago, I wanted to parse systemd-networkd INI files in Python and the python built-in ConfigParser [0] and pytest's iniconfig parser [1] couldn't handle multiple sections with the same name so I ended up writing 2 parsers, one using a ParserCombinator library and one by hand and ended up using the latter given it was much simpler to understand and I didn't have to introduce an extra dependency.

Admittedly, INI is quite a simple format, hence I mention this as an anecdote.

[0] https://docs.python.org/3/library/configparser.html

[1] https://github.com/pytest-dev/iniconfig


As a project gets larger the cost of owning a dependency directly begins to outweigh the impedance mismatch between 3rd party software & software customized to your project.

I've got 10 full time senior engineers on a project heading in to its 15th year. We rewrite even extremely low level code like std::vector or malloc to make sure it matches our requirements.

UNIX was written by a couple of dudes.


That’s because Python is a bad language for writing parser combinators and parsers based on them. Try Haskell.

I have written parsers using parser combinators in Haskell and Clojure. I find that ML-like (Haskell, OCaml, StandardML) languages generally are great at writing parsers, even hand-written ones in it is a superior experience.

In this case, this was a project at $EMPLOYER in an existing codebase with colleagues who have never seen Haskell code, using Haskell would've been a major error in judgement.


Is the author aware of the vim plugin?

Every VSCode (Neo)Vim plugin I’ve tried (most, if not all of them) is a janky mess of random missing features and/or broken state handling. They’ve all felt like a worse experience than just doing things the ‘normal’ VSCode way.

You are trying very niche plugins then... my experience has been superb for almost 10 years now. Recently I started using LazyVim by folke which I think is a really polished experience as well. Worth trying out if you don't like the regular plugin workflow.

That name rings a bell, I recall trying it but I’ll give it another go next time I find myself opening vsc, cheers!. Most of the time I just use VSCode as a visual debugger but it’d be nice to make minor changes without making typos due to vim-brain muscle memory.

Edit: just looked up LazyVim and it seems to just be a prebuilt neovim config atop the VSCode-Neovim extension which was one of the aforementioned janky experiences (IIRC undo stack wasn’t shared with VSCode and would get out of sync). I think I tried it as a last ditch effort because someone else said that it’ll fix VSCode-Neovim plugin deficiencies but I ended up just going back to my simple but effective neovim config and using VSCode as a visual debugger. I’ll give it another go if you reckon it’s much better though.


Don’t you just press ctrl p and type in vscode?

That exists, though it doesn't have a preview of the file. Also, jump lists to quickly take a look and ctrl+o to go back is a huge game changer for me. Not sure if VSCode supports that now, haven't used it in a long time.

It has jump previews and yea ctrl+o works

Neat! Does it also preview files when doing fuzzy file or symbol search?

I don't believe so, built in, because I see some extensions for adding it.

Clean water isn’t free? Utility bills increase year on year.

It's very cheap. If buying the next glass of water was life-and-death, how much would you pay? The current price reflects its abundance.

You can source generate JSON serdes from your own source generator but you do need to generate the jsontypeinfo metadata yourself.

I left my bag on a train recently. I’m not sure I can describe “describe the bag using an online questionnaire that took about two minutes to complete” as Kafkaesque… bag returned in a little under one week.


Did you try contacting someone to get back sooner? That's what the people did in the cases I referenced - just people not answering the phones, dead lines, "computer says no”, passed around, refusal to help etc

I guess you being somewhat fine with waiting a week meant nothing important was in the bag.

The trouble with the UK is we continue to put up with the bar getting lower and lower each year. Honestly someone would defend it taking a month to get a bag back as being fine


One worker and potentially one donkey.


Elf is used in many places outside Linux.


(More so since c++17) std::move should not be used for returns because this pessimises optimisations.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: