cuchaz, to random
@cuchaz@gladtech.social avatar

Once again I get foiled by switching languages. :blobcatfacepalm2:

In Javascript, you have to compare strings with ===, not ==, or else you'll run into type coercion problems, because Javascript thinks 1 == "1" is a totally fine thing to be true. (it's not)

But in Kotlin, === compares identity not equality for strings. But in the JVM, string values are aggressively cached, so === actually does what you want most of the time. Unless your strings come from weird places, like JNI code. Then you get awful non-deterministic behavior that's incredibly hard to debug, but it totally goes away when you use the correct comparison operator == for strings.

sigh I'm not really as good at this whole programming thing as I should be by now.

happyborg,
@happyborg@fosstodon.org avatar

@cuchaz
Programming is hard.

A skill is choosing systems and tools that make it easier and making meta choices to enable you to maximise your agency in those choices.

I remember the pain I endured learning #nodeJS a decade ago, then looking at #Angular [shudder] and #React hmm.

Then the pleasure that followed learning to use #Svelte and #Rust. You'd have a hard time getting me to use anything else now. Not happening.

My debut Rust project is now part of debian / Ubuntu.

"===" 🤣
#RustLang

ekuber, to rust
@ekuber@hachyderm.io avatar

Request for feedback: how would you change this compiler error? Can you tell what's going on? What the problem is? Do you get a sense of how you might be able to solve it?

frankel, to rust
@frankel@mastodon.top avatar
leanpub, to rust
@leanpub@mastodon.social avatar

Rust In Practice, Second Edition: A Programmers Guide to Build Rust Programs, Test Applications and Create Cargo Packages https://leanpub.com/rustinpractice2 is the featured book on the Leanpub homepage! https://leanpub.com #Rust #DataStructures #SoftwareEngineering #DistributedSystems

ramikrispin, to rust
@ramikrispin@mstdn.social avatar

I recently started to learn Rust programming, and I made a list of resources that I found useful to get started with the language 👇🏼

https://medium.com/p/928bf7b8418f

vascorsd, to rust
@vascorsd@mastodon.social avatar

Oh shit. 9 years??

Time passes fast as fuck. In my mind it is 1 or 2 years old only 😅. But I started following it a little after they removed the @ symbols I guess.

Well, for me Rihanna and Miley Cyros is extremely new and recent in my head too so... 😅😞. I have no idea what kids listen to these days... But I ramble 🤣


through the ages
https://www.ncameron.org/blog/rust-through-the-ages/

vascorsd, to rust
@vascorsd@mastodon.social avatar

Sending a PR for Coreutils; fixing a bug related to "no pid" when killing a process
https://www.youtube.com/watch?v=wzWNkNPHJx0

joeposaurus, to rust
@joeposaurus@chaos.social avatar

My main takeaway from the @rustnl conf as a test engineer who has just started their journey: these people really like their fuzz testing.

outfly, to fallout
@outfly@mastodon.social avatar

Fresh out the oven, version 0.8.5 of the open source space game !

✅ New flashlight
✅ Redesigned HUD, with -4-like bars for health/power/O2, and -dashboard-like warning lights
✅ New, well-balanced cruising vehicle
✅ Implemented power drain
✅ Much improved texture for

Btw, see how the hat of the chef doesn't cast a shadow? Because it ain't real! Just an illusion, which you can toggle with <TAB> :)

https://yunicode.itch.io/outfly

kubikpixel, to rust
@kubikpixel@chaos.social avatar

Do any of you developers know what the Server @stalwartlabs uses for an solution – Is it or even Sequoia--PGP? 🤔

I would like to use @sequoiapgp on the basis of personal arguments and this E-Mail 🔐📧

javier_salcedo, to rust
@javier_salcedo@mastodon.gamedev.place avatar

I’ve been using new shiny languages for a while now. , and in particular.
I love Rust’s tooling, Swift’s syntax, and Zig’s philosophy, but I feel like good old is still the goat.

Yeah, the syntax can get out of hand really quickly.
Yeah, the STL is bloated.
Yeah, the tooling ecosystem is a mess.

But at the end of the day, with a good style guide and some discipline, it can check most of my boxes.

But learning new languages is always fun so I’m still doing it 😬

nlnetlabs, to rust
@nlnetlabs@fosstodon.org avatar

We love contributing to the community! For day 2 of @rustnl 2024, @alexband passed the hosting baton to the newest member of our dev team, @terts. 💚🦀

thompsondt, to rust
@thompsondt@mastodon.social avatar

@diyelectromusic, since you're into embedded tech and microcontrollers, you may appreciate this one.

It's a Real-time Operating System kernel I wrote in C and Assembly for AVR chips. My intent was to learn about how operating systems interface with hardware.

I'd like to rewrite it with and finish the task scheduler.

https://gitlab.com/thompsondt/simplicity

jhpratt, to rust
@jhpratt@mastodon.social avatar

So now that -Zcheck-cfg is stabilized and enabled by default, there's no way to tell the compiler about custom cfgs other than a build script?

I routinely use a custom cfg for rustdoc so that I can use nightly features when publishing (both with docs.rs and CI). #[cfg(coverage)] is also used in some places.

Apparently spurious warnings are extremely wide-spread, so I'm not clear on why this was stabilized with such a glaring hole in it.

hds, to rust
@hds@hachyderm.io avatar

I came across this article the other day, titled “Why Rust cannot replace C++”.

I feel that the author completely fails to understand the opposing argument. The article claims that with “new” C++ features like smart pointers, you can write safe code in C++, therefore Rust is unnecessary.

But I don’t want a language where I can write safe code, I want a language where I must write safe code.

https://medium.com/@pepitoscrespo/why-rust-cannot-replace-c-but-quite-the-contrary-5577e1f5af0a

o76923, to rust
@o76923@kitty.social avatar

Can someone tell me the URL to find the emoji manifest in ? Some equivalents are

Sharkey: /api/emojis
Pleroma: /api/v1/pleroma/emoji
Glitch-soc: /api/v1/custom_emojis

I know that such a file has to exist because emojos.in works correctly for void.rehab but I don't know enough to figure out where they're getting the path out of the server instance.

kellogh, to rust
@kellogh@hachyderm.io avatar

ooo promising new framework. Check out the ad! 😂 https://youtu.be/YpHFthVa7nU?si=QCJHyg7_dEmBeGTu

mort, to Kotlin
@mort@fosstodon.org avatar

I can't deal with languages with optional semicolons! I like languages without semicolons, but when they're optional, especially if they feel "C-like", I always end up adding semicolons to some lines even when I try to write in a semicolon-less style. I'm writing some now and I decided to just use semicolons consistently because the alternative is seemingly to use them inconsistently.

Strangely, this isn't an issue I have in . I do have it in however.

rommudoh, to c64
@rommudoh@social.tchncs.de avatar

After getting the and running again, the next device to repair is the .
It had and on the main board and the power supply is beyond repairworthiness. I'd replace the latter with a RD-35 with 5 and 12 volt output.
One was rusty, a few traces needed and five looked bad. Hope the black hybrid chip is still okay.
Sadly, the lower read head seems to be broken, my work might've been in vain.

the worst corrosion on the main board. a rusty diode and a few other rusty pins.
the same section after cleaning and replacing the diode and five resistors (the blue ones). the fixed traces have been covered by soldermask again
the mechanics schowing the read heads. sadly, the lower head is reading open circuit where it shouldn't, indicating broken coils.

TehPenguin, to rust
@TehPenguin@hachyderm.io avatar

I've begun the process of switch Rust's Windows CI to Server 2022, starting with the mingw builders: https://github.com/rust-lang/rust/pull/124562

This was tried a couple of years ago, but there some issues with mingw - so kudos to the folks that investigated and fixed those (sorry that I don't have links)!

Next step, the MSVC builders, which will require bumping the version of Clang that's used to build LLVM first...

smallcircles, to accessibility
@smallcircles@social.coop avatar

Hi @matt 👋

Yesterday in chat I named the project, a real adorable 😍 effort that's still lacking on the side, i.e. could do with some on board.

Today I found out that Makepad is apparently part of a appdev effort, called . Another project here is .. also in for @accesskit support.. maybe. 🤔

Robius looks like a very loose conglomeration of independent projects. Maybe AccessKit is even a fit to it?

https://github.com/project-robius

hds, to rust
@hds@hachyderm.io avatar

The next Rust for Lunch will be next Tuesday, 14 May! Announcement about speaker and talk to come soon.

https://lunch.rs/meetups/2024-05-14/

mizah, to rust
@mizah@macrofurs.social avatar

I legit am kinda blown away by how much functionality I'm getting from Rust-Analyser.

I always thought I needed a full-blown IDE to get autocompletion, code actions, adding import/use statements, function extraction, inlining, etc...

How long have I been missing out on this?

rustnl, to rust
@rustnl@fosstodon.org avatar

RustNL 2024 starts tomorrow! Still figuring out logistics? ⬇️

There will be dedicated boats from Delft central station to the venue: https://2024.rustnl.org/boat/

Other travel directions: https://2024.rustnl.org/directions/

See you tomorrow! 🦀

ktemkin, to random
@ktemkin@chaos.social avatar

Thanks so much to everyone who hung in this week as we’ve all worked to fix the state of the Nix community. It’s been a ride; but I think things are going to get better.

Here’s the last major piece of the puzzle — the product of several months of work from an absolutely incredible team. It’s not ready for a full announcement, but we’ve opened our beta so people who are fleeing the core Nix community have a place to go.

https://lix.systems

smallcircles,
@smallcircles@social.coop avatar

@jakehamilton @ktemkin

Btw, probably well-known by those closely involved in Nix et al, there's also #TVIX by The Virus Lounge, a #Rust reimplementation of the #Nix language. And a project that got funding from #NLnet @NGIZero

https://code.tvl.fyi/about/tvix

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • thenastyranch
  • mdbf
  • khanakhh
  • Youngstown
  • slotface
  • hgfsjryuu7
  • ngwrru68w68
  • rosin
  • kavyap
  • Durango
  • PowerRangers
  • DreamBathrooms
  • Leos
  • magazineikmin
  • modclub
  • tacticalgear
  • osvaldo12
  • GTA5RPClips
  • everett
  • ethstaker
  • vwfavf
  • tester
  • normalnudes
  • cisconetworking
  • cubers
  • provamag3
  • All magazines