janriemer, to javascript

and tooling goes brrrrrrrrrrrrr! :ferris:

oxc - The JavaScript Oxidation Compiler - by Boshen (author of Rspack)

https://github.com/Boshen/oxc

Of course it is written in 🦀

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

The open source powered Fyrox game engine just released Fyrox 0.30, their biggest release yet.
https://gamefromscratch.com/fyrox-rust-game-engine-0-30-release/

AstraKernel, (edited ) to rust

🦀

Will it print Hello World?

A. No, it will give compilation error

B. Yes, it will print Hello World

C. No, it will panic at runtime but prints 1

This challenge was brought to you by @tuxmain

rust, to rust
@rust@emacs.ch avatar
gfxstrand, to rust
@gfxstrand@mastodon.gamedev.place avatar

Can I just say I really love . 😍 Not only was I able to eliminate an entire category of bugs today thanks to rust reference semantics but I also love the little language features.

Today's programming joy came from loops being expressions and break with a value. I can't count the number of times I've hand-rolled that in C or made an entire function just for one loop so I could use early returns. Having loop expressions as a language feature is really nice. 😁

epage, to rust
@epage@hachyderm.io avatar

Been giving some thought to how to improve testing in : https://epage.github.io/blog/2023/06/iterating-on-test/

lydiaschoch, to reddit
@lydiaschoch@mastodon.social avatar

With the Apollo app for Reddit shutting down soon, I’m going to need to start relying on Mastodon for all of my cute animal photo, gif, and story needs.

alter_kaker,
@alter_kaker@hachyderm.io avatar

@HistoPol
I am no an experienced developer (I am learning, but my professional work, alas, is in Java) but I'd be interested in contributing what I can to a fork.

@lydiaschoch @stefan @feditips

HistoPol,
@HistoPol@mastodon.social avatar

@alter_kaker

@lydiaschoch @stefan @feditips

👍

Need to say this:

This place (=) is AWESOME 👌 !

ecton, to rust
@ecton@fosstodon.org avatar

Another episode of The Way of the Crab has been released, where @togglebit and I chat about our testing philosophies, evaluating crates, and more. https://wayofthecrab.com/episodes/006/

AstraKernel, (edited ) to rust

🦀 what is the output

A.
0
1
2
3

B. Compilation error

C.
2
1
3

D.
2
3
1

E. None of the above

Credits to @orhun

eurorust, to rust
@eurorust@fosstodon.org avatar

Former Rust Core team member, Founding Executive Director of the Rust Foundation, and Founder of axo, Ashley Williams will be joining EuroRust 2023 as a speaker! 🚀

It’s great to have you on board Ashley!

Stay tuned for updates!

➡️ https://eurorust.eu/

davy, to rust
@davy@hachyderm.io avatar

ezno - a JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance

https://github.com/kaleidawave/ezno

thisweekinrust, to rust
@thisweekinrust@mastodon.social avatar
ManningPublications, to rust

📣New in MEAP📣

Looking to take your Rustlang skills to the next level?

Go beyond the basics by studying design patterns & find tips and tricks that help speed up delivery and make full use of Rust’s lesser-known features: http://mng.bz/GymA

TheSteve0, to rust
@TheSteve0@data-folks.masto.host avatar

Fun for all the cRUSTaceans - you can now write embedded code in with PL/Rust. AND it's a trusted language!

https://github.com/tcdi/plrust

0xor0ne, to rust

Excellent blog post explaining the Cow (clone-on-write) type in Rust

https://blog.logrocket.com/using-cow-rust-efficient-memory-utilization/

image/jpeg

orhun, to rust
@orhun@fosstodon.org avatar

🦀 quiz

what is the output of this program?

eurorust, to rust
@eurorust@fosstodon.org avatar

Our first speaker is confirmed! 🚀

Niko Matsakis, Senior Principal Engineer at AWS and member of the Rust Compiler team, will be a speaker at EuroRust 2023! 🎉

Follow us for updates on the talks, and get your tickets at: https://eurorust.eu/

mo8it, to rust
@mo8it@fosstodon.org avatar

PhantomData of a slice vs a slice of PhantomData?

For example:

PhantomData<(T, U)>

vs

(PhantomData<T>, PhantomData<U>)

Is one variant more friendly to the compiler? 🤔

MadMike77, to rust German
@MadMike77@chaos.social avatar

So I wrote this program where I read and write a fixed size vec!. My algorithm doesn't always work like I want, so I added code to track where I read and write from it step by step to debug it.

The problem is that this tracking "pollutes" my code and I'd like to use a library or a macro to track get and set of this array so I can cleanly switch this tracking on and off.

Does anyone know a library that does this or do I need to write my own?

Boost for range appreciated. 😃

orowith2os, to programming

folks: Any tips for learning it, coming from ?

I'm kind of reliant on the strictness of Rust, especially when it comes to using the wrong types and everything. Some way to force me to follow a similar style would be appreciated.

I'm also very reliant on Cargo, it's so clean and integrates everything nicely. I'm not sure if there's an equivalent for Python that matches Cargo.

also seems interesting for this, I just saw a toot from @airtower that might be useful: https://queer.af/@airtower/110480293814667017

Tips for how to occasionally easily sprinkle in some actual Rust would be nice too.

I will only be developing for .

xgranade, to programming
@xgranade@wandering.shop avatar

New newsletter post! I wrote about 2500 words expanding on my thread a few days ago about values, types, and typeclasses, and explaining why I find it confusing that object-oriented languages conflate types with typeclasses.

https://buttondown.email/xgranade/archive/subclasses-and-typeclasses/

mgorny, to programming

If anyone's up for a challenge, we'd use some help figuring out why importing cryptography on 3.10 causes errors to appear on the error stack.

https://github.com/pyca/cryptography/issues/9010

larsmb, to rust
@larsmb@mastodon.online avatar

$Someone should rewrite in

The rationale given in https://spdk.io/doc/concurrency.html for why it "needs" to be in C no longer holds up in 2023, I'd venture.

cxiao, to rust

In the new Rust Windows kernel GDI code, there is a new global allocator registered named gdi_alloc::Win32Allocator . It calls Win32AllocPool with a fun new pool tag name, "Rust"!

cxiao,

The Rust code in the new win32kbase_rs.sys in the Windows Kernel can also panic. What happens when it does?

There are several places where a panic is invoked in the code - they include bounds check failures (core::panicking::panic_bounds_check), indexing into a slice outside of the length of that slice (core::slice::index::slice_start_index_len_fail_rt), and assertion failures (core::panicking::assert_failed). These all eventually take a common code path through the following series of function calls:

core::panicking::panic_fmt::hd60a775b92204b91<br></br>-> rust_begin_unwind<br></br>--> seh_unwind::implementation::raise_exception::hc52a1220c03bdc19<br></br><br></br>

This calls into a custom panic handler, seh_unwind::implementation::raise_exception, which calls RtlRaiseException, imported from the main ntoskrnl binary!

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