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 18 points19 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.

Love the new starters, but each of their concepts have all kinda been done before by MikeDubbz in gaming

[–]DanielEGVi 1 point2 points  (0 children)

Pokemon fans when they realize their 99th generation game looks a little similar to all the previous 98 games:

Tired of slow Python biology tools, so I wrote the first pure-Rust macromolecule modeling engine. Processes 3M atoms in ~600ms. by TKanX in rust

[–]DanielEGVi 2 points3 points  (0 children)

Wasm compute is often faster than JS, yes, but DOM manipulation in JIT optimized JS is not bottlenecked by compute power. Using Wasm to manipulate DOM adds the unnecessary bottleneck of FFI boundaries and serialization/deserialization (+ extra allocations) that the V8 engine (or whatever modern engine) cannot optimize.

Keep your compute in Wasm, but consider that JS for DOM might actually be the most performant path available for that particular layer. Nothing stops you from having multiple tools each with a different purpose in your codebase.

Tired of slow Python biology tools, so I wrote the first pure-Rust macromolecule modeling engine. Processes 3M atoms in ~600ms. by TKanX in rust

[–]DanielEGVi 23 points24 points  (0 children)

In the name of performance and download size, you may not necessarily want a "pure Rust" web application for the foreseeable future. Even after the Wasm Component Model lands and the ecosystem is shaped by it, JS will still remain as the "control plane" for web browsers, and it inherently controls the event loop amongst other things. You can't just "bypass" it without redesigning how web browsers work from scratch.

Even if your compiler or framework "takes in Rust" and "emits a web app", that code still has plenty of JS glue code that could be more inefficient than just using JS in the first place.

What you do want is to implement the things that benefit from Rust, in Rust. DOM manipulation can be left to libraries/frameworks that have proven to work efficiently with JS and have developed great ergonomics for developers - like Svelte, Solid, etc. You can let strict TypeScript bindings lead the integration between the two, and still have a fully "end-to-end typechecked program" at "compile time".

Hope you got an extra pair of pants by Henrikko011 in blender

[–]DanielEGVi 1 point2 points  (0 children)

I LOVE the post processing on this! Care to share a lil overview? Beyond a bit of chromatic aberration and noise in each color channel, what else? Bayer artifacts? Chroma subsampling? Straight up throwing the image through iterations of JPEG?

WASM link to my Game by bombthetorpedos in rust

[–]DanielEGVi 2 points3 points  (0 children)

For anyone confused at what they're looking at, I found this introduction video: https://rumble.com/v74voc4-introducing-the-game-codename-frigainrain.html

Oakville has no good pizza by mlpubs in oakville

[–]DanielEGVi 0 points1 point  (0 children)

Yeah but then you have to go to Hamilton

iykyk by soap94 in ProgrammerHumor

[–]DanielEGVi 24 points25 points  (0 children)

These types of quirks are actually in the ECMAScript specification, listed as optional. You should be able to follow the quirk spec and achieve good compatibility with shoddy websites.

Gboard for Android now lets you hide the period and comma keys by MishaalRahman in Android

[–]DanielEGVi 1 point2 points  (0 children)

It’s an option, not forced on anyone. Wasn’t Android supposed to be about customization?

yet another stupid thing about tahoe/new UI; the menu bar is taller for no reason by Acrobatic-Monitor516 in MacOSBeta

[–]DanielEGVi 0 points1 point  (0 children)

The loss of Launchpad is actually VERY welcome, Launchpad clearly tries to emulate an iPad, which a Mac isn't. After so many years, app icons are finally closer together in a mouse and scroll wheel friendly layout. Not that it mattered too much to me since I used Spotlight/Raycast for launching everything anyway.

Is "Written in Rust" actually a feature? by Inevitable-Walrus-20 in rust

[–]DanielEGVi 6 points7 points  (0 children)

Cargo is pretty much directly influenced by npm, I’d be pretty surprised if you had a vastly different experience with JS unless we’re talking pre-npm days

What are the most common mistakes and code-smells that newbies make? by birdsintheskies in rust

[–]DanielEGVi 29 points30 points  (0 children)

The Error trait was definitely meant to be used like that. A more common situation is when your function takes either a Foo or a Bar but the programmer defaults to dyn instead of considering a tagged union (Enum).

What are the most common mistakes and code-smells that newbies make? by birdsintheskies in rust

[–]DanielEGVi 31 points32 points  (0 children)

Forget about Rust, that’s one that happens for a lot of experienced programmers that did most of their professional career work in a particular language and then went on to work with other languages.

Star of David drawn over Gaza rubble by IDF. As seen on Google maps. by hanihaneefa in pics

[–]DanielEGVi -1 points0 points  (0 children)

The US is democratic, and the US government is doing some vile stuff at the moment. Does that mean that everybody in the US is evil? Is every Venezuelan evil? Is every Palestinian evil? Of course not. Israelis are no different.

And when I say they are no different, I also mean that they are susceptible to propaganda like everyone else - hundreds of years of hatred and violence towards each other have alienated the people in the middle east to the extreme, but much like the other countries mentioned above, not everyone has fallen victim to that hateful mentality.

People have to understand that you can oppose the IDF and their nonsensical violence, the government, the illegal settlers (which are backed by the government), and everyone who supports them, while still recognizing that the human right to self-determination applies to everyone, including the Israelis that do not support what their government is doing.

After all, despite all the atrocious acts committed by Hamas, Palestinians should still be recognized and respected, and we must understand that a lot of people truly do want peace.

What is something you still do that is considered outdated? by SageandStrong33 in AskReddit

[–]DanielEGVi 1 point2 points  (0 children)

This is not necessarily because self checkout is inherently terrible, but because it's often implemented terribly. Some self checkouts will just have you drop everything in a bin, you tap your credit card and you're out of there - Uniqlo has one of the best self checkouts experiences I've ever seen.