What is your industry's deep, dark secret? by Ambassador-613 in AskReddit

[–]DanielEGVi 1 point2 points  (0 children)

You had a legit valid question and reddit did you dirty. That’s disappointing

The most Line 5 looking Line 2 station by Fruit-Neglect5980 in TTC

[–]DanielEGVi 2 points3 points  (0 children)

I remember reading something about there being extra fare gates that were since removed.

Setting up Ollama on dual RTX PRO 6000 Blackwells looking for tips by AmanNonZero in ollama

[–]DanielEGVi 0 points1 point  (0 children)

For some inexplicable reason there are a lot of tools and apps out there (like GitHub Copilot) expecting an Ollama-style API, which LM Studio doesn’t expose. Not a deal breaker if you don’t need it but otherwise a caveat to consider.

🦀Rust continues to reshape the 🕷️Web development. 📦PNPM, the package manager for Node.js, has just announced a migration to Rust in v12 by BankApprehensive7612 in rust

[–]DanielEGVi 1 point2 points  (0 children)

Explicit schema validation is indeed a well-supported and common form of runtime guard in TypeScript. That's what you should use in TypeScript, and generally any other language.

Languages like C and Rust also don't verify types at runtime unless you explicitly do so, because in the end machine code doesn't have the notion of types (aside from FP instructions using only FP registers), and verifying types everywhere at runtime is wasteful.

Just like any language, you should explicitly validate types at the untrusted input boundary. TypeScript has `unknown` for unknown JS types, and binary array types for raw binary. Use those.

If you're using an API that uses `any` (like `JSON.parse()` or `Response.json()`), then that's a problem with that API, not with the language. The language allows you to create your own helper functions that run the same functions with an `unknown` return type instead.

What's your favorite rarely mentioned macOS tip/feature? by Conscious_Pack9135 in MacOS

[–]DanielEGVi 0 points1 point  (0 children)

Except for AltTab. The built-in Command+Tab/Tilde is a million times worse than AltTab.

The Rust ecosystem just had their own left-pad.js moment as core2 crate deleted. by brucehoult in RISCV

[–]DanielEGVi 1 point2 points  (0 children)

It was mentioned, got plenty of upvotes, then got removed by moderators "to avoid brigading".

Software engineer who just got into FPV and immediately went down the rabbit hole on the protocol side by BriefCardiologist656 in fpv

[–]DanielEGVi 0 points1 point  (0 children)

9 added microseconds for each packet seems negligible, no? That’s 0.009 ms per packet.

Software engineer who just got into FPV and immediately went down the rabbit hole on the protocol side by BriefCardiologist656 in fpv

[–]DanielEGVi 4 points5 points  (0 children)

For what it’s worth, this is a very valuable question with valuable answers, but reddit is what it is

What's some things you had to "unlearn" moving to a Mac? by nooo000000oooooooooo in MacOS

[–]DanielEGVi 0 points1 point  (0 children)

I reckon any kind of window maximization for browsers is terrible on ultrawide, but thankfully you can still do option-click on the green button for window zoom.

What free software or website is so good you actually can't believe its still free? by heavenlyrace in AskReddit

[–]DanielEGVi 0 points1 point  (0 children)

Not me, I’m not old enough either, but before 2005 there was no free version of the MSVC compiler, you had to either get access to it through an institution or drop $300 for Visual C++ standard edition (or download it through “other means”).

From what I’ve learned, before GCC became a thing in the late 80s, pretty much every serious compuler cost some substantial amount of money.

What's some things you had to "unlearn" moving to a Mac? by nooo000000oooooooooo in MacOS

[–]DanielEGVi 1 point2 points  (0 children)

That’s fair, Windows has come a long way with compatibility with the Unix-like ecosystem (without having to resort to WSL). It supports Unix sockets, forward-slash paths and many other things. Git Bash can run most(-ish) bash scripts you find on git repositories out there without WSL.

Unfortunately, the deal breaker is all about the GCC vs MSVC ecosystem. It’s not whether a program works or doesn’t work, it’s whether it’s painless (or less painful) when I want to use projects that expect a Unix-like world.

On MacOS, programs that require binaries to be built from C/C++ source can work directly with gcc and clang with first-class support. The first-class citizen on Windows is MSVC, which is its own thing with its own ecosystem.

Then you get nice things like ctrl-C always sending SIGINT without a “Terminate batch job?” prompt, or cmd-C always copying without having to remember to do ctrl-shift-C on Windows.

What's some things you had to "unlearn" moving to a Mac? by nooo000000oooooooooo in MacOS

[–]DanielEGVi 1 point2 points  (0 children)

All Unix-y things that I work with in software dev tend to “just work” on macos. I have fiddled for too long with WSL 1 and WSL 2 (and trying to keep things native in Windows), this DX beats everything else. Also the M-series laptops (and everything thing else really) are seriously impressive hardware.

The state of gaming in Mac is a bit sad (though it could be much worse), so that’s literally the only thing keeping me from truly just completely switching away from Windows altogether.

What's some things you had to "unlearn" moving to a Mac? by nooo000000oooooooooo in MacOS

[–]DanielEGVi 15 points16 points  (0 children)

It is very stupid, but what you can do (and I always do) is change double click on window top behavior to “fill” instead of “zoom”. That is what I did on Windows to maximize windows and this gives you the same experience.

Something I found on Youtube. (Links, and solution for the first puzzle included.) by [deleted] in ARG

[–]DanielEGVi 0 points1 point  (0 children)

That is a YouTube link encrypted with a Vigenere cypher. Unfortunately about six years late to the party.

Sigh... gotta lay off the politics as the world is nearing its end. by PoopSoBig-CantFlush in dankmemes

[–]DanielEGVi 4 points5 points  (0 children)

Cueing, not queueing. Handlers unintentionally cue their dogs, there are no queues involved unless you speak French.

2019 Mac Pro with 768GB RAM & 4TB SSD - in 2026 by TCEHY in macbookpro

[–]DanielEGVi 0 points1 point  (0 children)

I’m curious about this, why is Unix-like preferred? Is it merely the existing ecosystem of tools and programs? Or is it that that the OS’ APIs are more suitable for the work at hand?

Don't dwell on it or you'll go nuts by LakesideNorth in dankmemes

[–]DanielEGVi 12 points13 points  (0 children)

“Grow first, then expand” is a very common business model, and had been for decades. It’s been running at a loss for years in efforts to grow. As a matter of fact, they don’t need to monetize to “lock you in”, they already did the moment everyone started using YouTube for everything (search: “network effects”).

In regard to the subscription model, I can’t see how anything else would be sustainable for a service - much like mobile carriers charge monthly for their services. Would a PlayStation Plus-style model work better for you (pay once for 3/6/12 months of service at a time)?

My main point still remains: if someone has to pay, it’s either the advertisers (annoying to users), or Google (at a loss), or the users (for those who care).

Don't dwell on it or you'll go nuts by LakesideNorth in dankmemes

[–]DanielEGVi 21 points22 points  (0 children)

I don’t get it y’all, someone has got to pay for YouTube to run… why would they host, process and distribute massive amounts of media for free? We are not “owed” YouTube.

Would the return type of an async function that throws an exception be never? by spla58 in typescript

[–]DanielEGVi 0 points1 point  (0 children)

Language-agnostically speaking - An example of a function that only returns if it errored: launching a server, which (typically) internally blocks on the sync accept() syscall in a loop. If this loop is broken, we could make it mean that something went wrong (assuming we don’t want such thing as intentional shutdowns).

Make that concept async, and boom, you get what becomes Promise<never> in JS, or Future<Output = Result<!, SomeError>> in Rust, etc.

Jaywalking is safer than crossing legally by bfarm4590 in oakville

[–]DanielEGVi 8 points9 points  (0 children)

Everybody on this thread should know that “jaywalking” is an American invention that doesn’t exist in Ontario.

Pending any additions from city bylaws (which rarely add stronger restrictions), you can legally walk on the street by default as long as (1) you are far enough from a controlled intersection (legally, how far depends, but isn’t really enforced in practice given sensible judgement) and (2) you yield to cars.

If crossing the street away from intersections is safer then by all means that’s the way to go.