ramikrispin, to rust
@ramikrispin@mstdn.social avatar

(1/2) I recently posted a few posts about Rust 🦀 and my intention to leverage it for data science applications. Multiple people asked if Rust is a substitute for R or Python, and the short answer (in my opinion) is no. I see Rust as a complementary or supporting language that could make languages like R and Python faster.

Polaris 🐻‍❄️ is one example of a Python 🐍 application that uses Rust on the backend. 🧵👇🏼

secana, to rust
@secana@mastodon.social avatar

https://nexte.st/ is awesome. The expression language to filter for tests or simply display a list of available test made is "must-have" for me.

argv_minus_one, to rust
@argv_minus_one@mstdn.party avatar

I wonder if anyone has ever written an embedded in which there is no run-time interpreter, and all SQL queries are translated into machine code at compile time.

Kinda like sqlx, except queries are fully compiled at compile time, not just checked for correct syntax and types.

I'm guessing this would be extremely specific to one language, and outright impossible in most programming languages.

PixelPerfectEngine, to opensource
@PixelPerfectEngine@peoplemaking.games avatar

Is this AI generated, or someone thinks middleware aimed for game development is the same as a game engine?

Regardless, can someone help me in finding some kind of #opensource middleware similar to #raylib, #sdl, #sfml, and #glfw? I can't find anything else, especially thanks to #seo and/or people not understanding the difference between engine and middleware. All I need is a fixed buffer audio stream (worst case scenario, I'll use my own that I started writing for my own middleware I can't finish due to lack of time), input handling, and creating an OpenGL window. I don't have enough time to tinker with my own middleware and/or directly hooking into the OS (thanks to SEO, a lot of the search results are also garbage for stuff like rawinput).

#gamedev

jaycalixto,

@PixelPerfectEngine I know of macroquad for #rust that is kinda similar to raylib https://github.com/not-fl3/macroquad

mizah, to rust
@mizah@macrofurs.social avatar

It continues to surprise me how, with just kinda works once it compiles...

Yeah, not a 100% success rate, but... It's still surprisingly good at forcing you to put the square pegs into the square holes.

janriemer, to rust

"Can't move a closure into a spawned thread"

https://users.rust-lang.org/t/cant-move-a-closure-into-a-spawned-thread/111332

or phrased differently: "Misunderstandings of what the 'static lifetime in #Rust means".

Kornel's excellent answer:
https://users.rust-lang.org/t/cant-move-a-closure-into-a-spawned-thread/111332/8?u=janriemer

"Note that any lifetime bounds, including 'static, apply only to references and types containing references. They do nothing when applied to self-contained types. This means that String is not 'static, but rather it isn't affected by any lifetime bound."

#RustLang #BorrowChk

outfly, to space
@outfly@mastodon.social avatar

#OutFly v0.9 just took off!

✅ Implemented various challenging Achievements
✅ Implemented game menu
✅ Implemented game over screen
✅ Beautiful new planetary/lunar textures by Björn Jónsson, https://bjj.mmedia.is/data/planetary_maps.html

https://yunicode.itch.io/outfly
https://codeberg.org/hut/outfly

#space #game #rust #bevy #gamedev

frankel, to FunctionalProgramming
@frankel@mastodon.top avatar
noth, to rust
@noth@ilyamikcoder.com avatar


ah yes

robert, to rust
@robert@toot.kra.hn avatar

> Unfortunately, most people seem to have taken the wrong lesson from Rust. They see all of this business with lifetimes and ownership as a dirty mess that Rust has had to adopt because it wanted to avoid garbage collection. But this is completely backwards! Rust adopted rules around shared mutable state and this enabled it to avoid garbage collection. These rules are a good idea regardless.

Yes, so much this! I'm using not because I'm building low-level resource constrained systems (far from it) but because it allows for local reasoning about state. Paired with the ML inspired syntax that makes pattern matching easy this leads to far more reliable programs.

This is also why I like so much. Clojure's refs / atoms /agents allow for scoping mutability in an otherwise purely functional system. Scratch for the same itch. But Rust's compile time checking avoids pushing issues into the runtime, increasing reliability and hugely reduces time needed for debugging. The trade off here is no interactive / live development.

https://without.boats/blog/references-are-like-jumps/

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

Tomorrow is a day of oxidized crab 🦀 — Rust programming language birthday 🎉

https://blog.rust-lang.org/2015/05/15/Rust-1.0.html

fj, to random
@fj@mastodon.social avatar

I've been wanting to look into formally verifying code with for a while, but wasn't sure where to start.

Thankfully Lucas Franceschino from @cryspen has now a tutorial to get started!

https://hacspec.org/blog/posts/announcement-tutorial/

kellogh, to random
@kellogh@hachyderm.io avatar

the news is cool, but now i want to see an embedding model that i can use with a streaming interruptible conversation

kellogh,
@kellogh@hachyderm.io avatar

also, now with , latency is going to be critical if you’re doing streaming audio/video, so may start looking less appealing. what’s the new language? ? ? ? ?

kellogh,
@kellogh@hachyderm.io avatar

i predict that there’s always going to be strong advantages to using for , but with streaming audio & video of , there’s not enough latency slack for python.

i think a framework will emerge, similar to pyspark, where you can write python code that gets compiled into a steaming plan, and executed as highly optimized low level code with the possibility of python UDFs. i figure it’s still a couple of years from being really usable rn

adam_chal, to rust
@adam_chal@hachyderm.io avatar

"References are like jumps, or why we need guarantees about shared, mutable state"

https://without.boats/blog/references-are-like-jumps/

hgrsd, to rust
@hgrsd@hachyderm.io avatar

Which IDE do you use for Rust development?

I've been moving between neovim, helix (can't get over the slightly different mental model compared to vim), vscode, rustrover... Curious what others use.

lily, to rust
@lily@glaceon.social avatar

here's an interesting way of expressing logic in a rust program:

match statements where the patterns are produced by a local macro.

one of the main problems with rust pattern matching imo is just how large the match statements often are, and local macros fix that.

it's much nicer to write key!('q') instead of Event::Key(KeyEvent{ code: KeyCode::Char($code), .. }

TehPenguin, to random
@TehPenguin@hachyderm.io avatar

I've been helping to investigate a few LLVM and Rust bugs recently, and I keep running into pet peeves with how these bugs are reported, so I'm going to put together some

I don't want to discourage anyone from filing a bug, please do! But... be aware with how you represent the issue that you're seeing.

I also know that there are folks on here who are vastly more knowledgeable than I am, so feel free to suggest corrections, perhaps by filing some sort of report...

TehPenguin,
@TehPenguin@hachyderm.io avatar

If you're going to claim something is a security issue, please explain what the attacker has gained by exploiting the bug. That is, what they can now do they couldn't before.

If you can't explain what the attacker has gained, then that's not a security bug, that's just sparkling MS07-052 (https://web.archive.org/web/20100930203109/http://blogs.msdn.com/b/oldnewthing/archive/2007/08/07/4268706.aspx#4282521)

TehPenguin,
@TehPenguin@hachyderm.io avatar

If the feature has docs, then please explain how the actual behavior doesn't match the docs.

If you don't like how the feature works, that's not a bug, but you can still ask for the feature to be changed.

If there are no docs, or there's a gap, then please help to fill that gap (adding your own observations in the bug report are a good start).

TehPenguin,
@TehPenguin@hachyderm.io avatar

The more specific you can be on when a regression occurred, the better. A range of versions is good, a single version is great, a single commit is amazing.

Tools like git bisect are really helpful for this.

Providing a standalone example that reproduces the issue so that someone else can do that work is also great, with the bonus that it can be added to the regression tests.

lily, to rust
@lily@glaceon.social avatar

the rust "impl" keywork is kinda weird.

usually, it is used to define methods, but in function arguments, it serves as syntactic sugar so you don't have to name generic types... but in a return type, it has a meaning that is slightly different, and actually expresses a semantic not even vanilla haskell can represent!

basically, instead of being able to return any type implementing a trait, it states that it can return at least one type that implements a trait.

in haskell terminology, specifying a generic type parameter is "forall a", while returning an "impl" is "exists a".

elevenhsoft, to programming Polish
@elevenhsoft@mastodon.social avatar

Wooohooo! Finally, we are on #flathub, friends! :)

#COSMIC Web Apps is available to install via #flatpak directly from flathub: https://flathub.org/apps/io.github.elevenhsoft.WebApps

I'm happy ^^

#cosmicdesktop #programming #rust

folkertdev, to rust

Second result: zlib-rs now works with no_std (on main)

most work was done by fellow unconf attendee Jonas Kruckenberg.

This ability is cool not only because zlib-rs can now be used on embedded devices, but also because it guarantees we don't sneakily use rust's allocator: allocation in the library should only happen through some function pointers that get passed in.

I've set up an example with the nrf52840 here:

https://github.com/folkertdev/no-std-zlib-rs

makes running code everywhere easy!

smallcircles, to loom
@smallcircles@social.coop avatar

Cap. An #AGPL-licensed self-hostable alternative to #Loom:

https://github.com/CapSoftware/Cap

Implemented in #Typescript and #Rust.

slint, to rust
@slint@fosstodon.org avatar

We're pleased to "spring" a new release, v1.6: Improved design mode, new Python packages, and enhanced accessibility. 🥳🐣

https://slint.dev/blog/slint-1.6-released

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