janriemer, to rust

It's alive!🎉

I've built a #transpiler in #Rust, compiled it to #WASM and integrated it into a #Vue app! :awesome:

It's called selecuery.✨

It can transpile X++ select statements into query expressions. If you think "X++" is a typo and you don't have any idea of what I'm talking about, don't worry.😄

Have a look at the video below.

This project is dear to my heart! ❤️ I've started it 2019 for learning #RustLang.

I think, I've been transpiled during this project as well.🤪

#Compiler #Magic

A video showing a web app with two code editors side-by-side. On the left, source code is entered, which looks like an SQL dialect. As the code is entered on the left, the code editor on the right updates in real-time. The right editor shows the SQL-like statement in a very different form, namely as a sequence of method calls on a query object. So it has just transpiled a declarative SQL-like statement into a procedural query expression. You can think of it a bit like C#'s LINQ: LINQ also has a declarative form and a procedural form.

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

A bit annoyed by the documentation situation with ... As with most things in Rust land, it's great if you use cargo and it really sucks if you don't.

Unlike rustfmt, rustdoc actually has to be able to compile the code so it needs access to all your dependencies. You can't just invoke rustdoc on foo.rs and call it a day. It really needs to be invoked by the build system. Worse, it doesn't support all the same flags as rustc, some of which are used by meson.

asgrim, to Java
@asgrim@phpc.social avatar

I got a Stream Deck delivered today and started playing around with it already, very handy for step debugging! I have several other ideas already to improve my workflow too...

juliobiason, to random
@juliobiason@functional.cafe avatar

Ok, so I have a Vec<(String, f32)> and I need to, somehow, make it [[String]], but I want to do it lazily instead of converting the whole Vec...

mackuba, (edited ) to ruby
@mackuba@martianbase.net avatar

Oh man… I've been building several different versions of integration between and or JS whole evening… and I feel like this 😵‍💫 and ihavenoideawhatimdoing.jpg 🐶

But it's starting to work and it looks like it should be pretty fast ⚡

gregorni, (edited ) to programming
@gregorni@fosstodon.org avatar

One of the things that bug me about Rust is that you never feel like you just finished doing something, you're never "done". In most other languages, after you work on something, you can be quite certain you implemented it in the best way. In Rust, there's always a shorter, built-in or more performant way to do it, and you always have to worry that you didn't use the best possible one.

hko, (edited ) to random
@hko@fosstodon.org avatar

I just released version 0.9.5 of the opgpcard CLI tool (https://crates.io/crates/openpgp-card-tools), now with manpage generation and generation of shell completions (work by @dvzrv, thanks! 🥳)

janriemer, to rust

Many people say that #Rust is very hard to #prototype with or to #refactor. This couldn't be further from the truth! It is the exact opposite!

Let me share with you one of the most profound experiences I had with #RustLang on a casual sunday - a thread 🧵

I'm currently rewriting my #transpiler from #nom to #chumsky and until now everything has turned out great so far, until I've hit the following road block:
Implementing parsers by using #parser functions that have indirect #recursion.

1/11

cliffle, to rust
@cliffle@hachyderm.io avatar

After 5 years of development, 7 art projects, one commercial product, and at least a dozen subtle soundness bugs, I've decided lilos is ready for big ol' version 1.0.0.

As of this release, lilos is 100% strict-cancel-safe, which afaik is a first.

This release is notable for having no fewer than five contributors other than me! Thanks to one of those contributors, we've even got tests on QEMU now.

C'mon in! We have docs!

https://github.com/cbiffle/lilos/

FineFindus, to rust
@FineFindus@floss.social avatar

You know you have been programming too much
code if you start writing (null) safety comments in

bitprophet, to rust
@bitprophet@social.coop avatar

" / is a modern programming language”, exhibit A.

synlogic, to golang
@synlogic@toot.io avatar

quality of a better programming language:

  • compiler is your Best Fren

quality of a worse programming language:

  • compiler is your Frenemy

The former:



vs

The latter:
#C



janriemer, to rust

😯 Jon's stream is about to start everyone! Yay! :awesome:

They are going to "decrust" the web framework.

See:
https://fosstodon.org/@jonhoo/110776022205705585

blinkygal, to rust

I did another thing. Introduced Error in , and found a suitable pattern to type-erase a concept implementation so that where you'd write &amp;dyn Error in you can write const ErrorBase&amp; in . And Box&lt;ErrorBase&gt; can be constructed from any Error object e with sus::into(e). That means you can write Result&lt;T, Box&lt;ErrorBase&gt;&gt; in order to put type-erased Error-concept-satisfying types into virtual functions or dynamic library ABIs.

Gotta write a boatload of tests before I put it up as a PR, but I thought this was cool. Particularly pleased with the repeatable mechanism for type-erasure of a concept without being intrusive at all of the type satisfying the concept. That's demonstrated here by the fact one of the error types is actually an enum.

kernellogger, to rust
@kernellogger@fosstodon.org avatar

Correlation vs. Causation

Reminder: the support for programming the [ using aka is not used for anything at all yet within the – and most likely disabled in this user's kernel image]

jpm, (edited ) to rust
@jpm@aus.social avatar

Hey makers, hackers, and electronics folks of the fediverse, what’s your go-to small cheap dev board that ISN’T an ATmega (too small) or ESP32 (too cursed)? I’m asking because I’m writing a gadget-device framework in Rust, and would like to port it to the most popular dev boards.

mo8it, to rust
@mo8it@fosstodon.org avatar

If your project doesn't use rustfmt and Clippy, you are not really welcoming contributions.

Probably a one-person show with your subjective style.

RL_Dane, to rust
@RL_Dane@fosstodon.org avatar

WHOA, just got forked!

https://github.com/crablang/crab
https://news.ycombinator.com/item?id=36122270

And of course, it's hosted on the site run by the company that's going bollocks to the wallocks with ai and GPL violations, because we hate humanity. Yep.

Still, interesting development. Not sure if this will be a LibreOffice or a Glimpse yet, but time will tell.

Addendum: Yeah, this isn't exactly new. Gotta love the HN hype cycle ;)

janriemer, to rust

makes some happy screaming noise :awesome: :ferris:

will end this year with a long awaited feature that will define it's future:

We will get "async fn and return-position impl Trait in trait" ( & ).

It will be stabilized in the next version 1.75, which will be released on 28 December, 2023.

https://releases.rs/docs/1.75.0/

PR:
https://github.com/rust-lang/rust/pull/115822

Thank you Rust for all of your hard work! ❤️

AdeptVeritatis, (edited ) to GraphicsProgramming
@AdeptVeritatis@social.tchncs.de avatar

Uploaded a preview of "pw-videomix" with a new render backend.

Amazing new possibilities!

Complex chains of mixers and mandala filter lead to marvelous animations. Even loopbacks between two mixers don't break anything. (Maybe keep an eye on GPU temps.)

Still more like a prototype, but the framework seems pretty solid.

Menu allows for a little bit more customization now.

You can find compiled binaries here:
https://gitlab.freedesktop.org/AdeptVeritatis/pw-videomix

kernellogger, to rust
@kernellogger@fosstodon.org avatar

Andrea Righi[1] wrote a scheduler in / using sched-ext[2]; he claims he was "'"pretty shocked to see that it doesn't just work, but it can even outperform the default scheduler (EEVDF) with certain workloads (i.e., gaming):"'"

He shared it on the : https://twitter.com/arighi/status/1746938387968254371

Github page: https://github.com/sched-ext/scx/

Video: https://www.youtube.com/watch?v=oCfVbz9jvVQ

[1] engineer @ Canonical
[2] https://lwn.net/Articles/922405/

kubikpixel, to webdev German
@kubikpixel@chaos.social avatar

Am I the only who has never heard of ? 🤔

Of course I know and use for databases but I have never heard of SPARQL and that there are also solutions ⚙️

What do you think, should I learn and use it over in a project or do I understand it wrong? 🤷‍♂️

👉 https://en.wikipedia.org/wiki/SPARQL

alice_i_cecile, to bevy
@alice_i_cecile@mastodon.gamedev.place avatar

Hi ! It's time for another 😁 Want to see how you build an game engine? Then follow along while I go over the 11 community-approved PRs in our backlog today https://github.com/bevyengine/bevy/pulls?q=is%3Aopen+is%3Apr+label%3AS-Ready-For-Final-Review+-label%3AS-Controversial+-label%3AS-Blocked+-label%3AS-Adopt-Me+

bitprophet, to random
@bitprophet@social.coop avatar

: alright. you got this! 94/95! your final task: to wrap your head around the AsRef and AsMut traits!

MY BRAIN, WHICH PRACTICALLY SPEAKING HAS NEVER WRAPPED ITSELF AROUND ANYTHING LOWER-LEVEL OR MORE COMPLEX THAN PYTHON: 😭🤷🏻‍♂️😵‍💫

(This isn't really asking for help, just whining. lol)

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

Leaving Rust gamedev after 3 years

This is one of those scary articles because it’s hard to find fault with it and the author’s experience beats my own in terms of time with rust and breadth in gamedev. https://news.ycombinator.com/item?id=40172033

  • 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