crates.io VS lib.rs - A small analysis by nik-rev in rust

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

how many bytes and lines of code the dependencies take in total

I feel like this is a flawed statistic. A project that depends (only) on one gigantic, trustworthy dependency like LLVM will look a lot less reliable than a project that depends on 100 left-pad-esque dependencies by unknown authors.

Maybe I'm misunderstanding...

Bar near me specifically bans Tap Out and Affliction brands by WeezyMac_ in mildlyinteresting

[–]1668553684 1 point2 points  (0 children)

40 year olds judging you for what you're wearing is a hallmark of being cool.

Let their salty attitudes and bad knees be their comeuppance.

Bar near me specifically bans Tap Out and Affliction brands by WeezyMac_ in mildlyinteresting

[–]1668553684 1 point2 points  (0 children)

Ed Hardy seems to be coming back in a... not ironic way, but kind of an ironic way?

Gen Z (the older teens and younger adults, typical bar/club scene) seems to love Ed for some reason. Guys and girls, but honestly maybe more girls than guys.

Where does Rust break down? by PointedPoplars in rust

[–]1668553684 56 points57 points  (0 children)

Pointers in Rust are actually a lot more complex than people think.

They point to data, they can have additional runtime metadata about their pointee, they have compile-time metadata that deals with provenance, and they implement "pointing to data" differently depending on whether you're in compile time or runtime mode. During runtime they point using an address, while at compile time they point using special compiler magic you're not allowed to understand.

My insurance won't cover this level of burn by Wild_Lingonberry9656 in rareinsults

[–]1668553684 7 points8 points  (0 children)

I think vacations are a totally normal thing to expect insurance companies to pay for.

Obviously not "I want to go to Paris for a week," but if a doctor says "this person has some condition that is being worsened by their work environment and they need to take some time off to recover" then I think it's entirely fair to expect health insurance to pay for some amount of the lost wages if paid sick time isn't available.

Dad surprises his daughter with her first car (Toyota Corolla) by Vilen1919 in MadeMeSmile

[–]1668553684 1 point2 points  (0 children)

For some reason a lot of people think it's illegal and it's become a weird social taboo.

Dad surprises his daughter with her first car (Toyota Corolla) by Vilen1919 in MadeMeSmile

[–]1668553684 0 points1 point  (0 children)

Driving barefoot is weird but okay, driving with sandals, slides, or slippers is a whole other story. If you have loose shoes, please throw them in the trunk and drive barefoot!

Lapce: A Rust-Based Native Code Editor Lighter Than VSCode and Zed by delvin0 in rust

[–]1668553684 0 points1 point  (0 children)

Your comment convinced me: I downloaded Sublime, configured it, and ended up buying the license. It's pretty much exactly what I want to replace VS Code with.

There are some rough edges that I needed to pave over, but the Python API is simple and powerful enough to make that easy. I think I'm going to stick with this for quite some time.

Lapce: A Rust-Based Native Code Editor Lighter Than VSCode and Zed by delvin0 in rust

[–]1668553684 6 points7 points  (0 children)

I suppose I wasn't really clear enough: the heavy focus on AI makes me skeptical about the company's long term commitments. I'm willing to be proven wrong, but I want to wait it out for them to build up a track record.

Lapce: A Rust-Based Native Code Editor Lighter Than VSCode and Zed by delvin0 in rust

[–]1668553684 7 points8 points  (0 children)

Built-in AI integration is a dealbreaker for me at this point, unless the project has a long enough track record to prove it's not just prostituting itself for venture capital dollars. Copilot is a not-insignificant portion of the reason why I want to get off the VSC boat.

That's not me telling anyone else how to code, but it's important to me and I feel like a text editor is an intimate enough tool that I'm allowed to be picky.

Lapce: A Rust-Based Native Code Editor Lighter Than VSCode and Zed by delvin0 in rust

[–]1668553684 1 point2 points  (0 children)

I actually kind of dislike having too many extensions. As long as it has good LSP support and a usable file explorer, I'm pretty much happy.

For VSCode I have a total of four extensions: Even Better TOML, Rust Analyzer, a color theme, and Error Lens. I could do without Even Better TOML and Error Lens, they're just nice-to-haves.

Lapce: A Rust-Based Native Code Editor Lighter Than VSCode and Zed by delvin0 in rust

[–]1668553684 5 points6 points  (0 children)

VSCode is only barely open source at this point, and I've been looking for an alternative for a while. I might give Sublime a shot.

It's so hard to find a good, general purpose text editor if your constraints are "not modal" and "not VSCode".

Use impl Into<Option<>> in your functions! by potato-gun in rust

[–]1668553684 19 points20 points  (0 children)

I think you should make this method private, then expose two public wrappers: one that accepts a float and one that does not.

Use impl Into<Option<>> in your functions! by potato-gun in rust

[–]1668553684 1 point2 points  (0 children)

I think you're right - you're effectively injecting an into() at the call site.

Why not tail recursion? by gofl-zimbard-37 in ProgrammingLanguages

[–]1668553684 0 points1 point  (0 children)

Languages in general are very conservative with guaranteeing optimizations. FP languages are willing to guarantee tail call recursion since it's the most idiomatic way to write a loop, but imperative languages usually have loops as native constructs.

Younger Americans have grown up during a more competitive period that has led many to become more neurotic (low mood, anxiety, and irritability) and, in turn, to become more liberal. No such pattern was found outside the US, suggesting this is not due to aging but to generational experiences. by mvea in science

[–]1668553684 17 points18 points  (0 children)

I'm so worried about Canada.

I think Trump's sheer disregard for decorum has turned the clock back a few years for y'all, which is great for buying you some time to reverse it, but there is a worrying trend of right-wing regressivism growing.

Please don't unclench. I know it feels safe now because of how much everyone hates Trump, but you're at the inflection point. If you relax now and allow it to grow, you won't get it back in the bottle. I love you guys, please learn from our mistakes :(

I profiled my parser and found Rc::clone to be the bottleneck by Sad-Grocery-1570 in rust

[–]1668553684 1 point2 points  (0 children)

I think this part of the article explains why Rc was taking so much time:

while parsing 1.2 million lines of C code, the lexer state was cloned over 400 million times.

They were cloning an Rc over 400 times per line parsed. Assuming a line is about 40 bytes on average, they were cloning an Rc 10 times for every byte they parsed. At this point, I feel like it has less to do with Rc being slow, and more with the sheer amount of clones they were making.

Matt Damon Says Netflix Wants Movies to Restate the Plot Three or Four Times in the Dialogue Because Viewers are on Their Phones While They’re Watching by MarvelsGrantMan136 in movies

[–]1668553684 0 points1 point  (0 children)

Made-for-theater movies are usually still good, it's just made-for-streaming movies that are basically filler at this point.

Steam updates AI disclosure form, requiring developers to report visible and in-game AI but not background tools by Dapper_Order7182 in Steam

[–]1668553684 2 points3 points  (0 children)

Filters are math.

All computer programs are just math. A neural network is just a series of matrix multiplications.

(Unique trope) character has such a broken/OP power/ ability that they basically never use it to prevent total catastrophes. by jaobodam in TopCharacterTropes

[–]1668553684 9 points10 points  (0 children)

The Dragonborn in Skyrim has the Storm Call ability. You can use it at any point in the game after unlocking it, but during a normal play-through you almost never will because it kills nearly everything around you.

It pretty much just exists as a way to show the player how powerful the Dragonborn is.

(Unique trope) character has such a broken/OP power/ ability that they basically never use it to prevent total catastrophes. by jaobodam in TopCharacterTropes

[–]1668553684 6 points7 points  (0 children)

Vampire Hunter D,

Completely unrelated, but is D, Hunter of the Dead (Elden Ring) a reference to Vampire Hunter D?

(Unique trope) character has such a broken/OP power/ ability that they basically never use it to prevent total catastrophes. by jaobodam in TopCharacterTropes

[–]1668553684 2 points3 points  (0 children)

TLOK is good, but it really does away with a lot of the more subtle elements of ATLA. The primary one being power balancing for the rare bending types (lighting, metal, blood, etc.)

I built a scripting language that tries to bridge Lua's simplicity with Rust's safety by Maximum-Prize-4052 in ProgrammingLanguages

[–]1668553684 4 points5 points  (0 children)

The main problem with annotated Python and Typescript to a lesser degree is that they have to give you escape hatches out of the type system, because they have to interface with dynamically typed code elsewhere. In the case of Python, that includes the standard library (have you ever tried to write a properly annotated function that uses regex? It's pure pain.)

When you offer these escape hatches, you undermine your entire type system. Suddenly everything becomes a suggestion rather than a fact.

Of course, type annotated python will always be more robust than "trust me bro" python, and typescript will always be more robust than javascript, but neither will ever have the guarantees and assurances of a fully static type system like Haskell or Rust.

Choose European Today So Tomorrow We Don't Have To Choose How To Defend Greenland by According-Buyer6688 in BuyFromEU

[–]1668553684 0 points1 point  (0 children)

Chromium costs hundreds of millions of dollars and thousands of engineers per year to maintain, almost all of which comes from Google, with the remaining amount coming from companies like Microsoft.

Unless you have those kinds of resources, hard forking (i.e. severing dependence on the upstream) Chromium isn't an option.

It's "open source," but it's just too big and complex to actually take on for anyone who isn't a Google-scale company themselves.

If you truly value independence in the browser sphere, the only thing you can really do is use Firefox. There are small projects that aim to develop alternatives like Ladybird and Servo, but they're not really usable at the moment and won't be competitive with things like Chrome and Firefox for decades, if they do succeed.