janriemer, to rust

Many people say that is very hard to with or to . 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 on a casual sunday - a thread 🧵

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

1/11

janriemer, to random

While I'm rewriting my from to , I'm actually thinking about writing a nom-to-chumsky transpiler...

➰ 🙃

toxi, to CSS
@toxi@mastodon.thi.ng avatar

Today's features a major update for the https://thi.ng/meta-css toolchain, a data-driven codegen for creating custom modular CSS frameworks, incl. transpiler, bundler, dev/watch mode...

The new version supports callable parametric templates, which not only help to reduce the overall API surface (i.e. the total number of rules) of a generated CSS framework, but also enable advanced operations like those shown in the attached images (e.g. declarations of CSS color variables (in rgb, hsl, lch, or oklch modes) and pure CSS color per-color-channel adjustments...).

Also new, is added support for documentation metadata for all generative CSS class & template specs (incl. template params). Parts of the readme are generated from these embedded docs and the next version will include a new CLI command to generate Markdown files from/for these CSS docs...

The readme for this package is already pretty detailed by now and should cover most important patterns and usage (incl. the new template features). Take a look (also the examples linked from the readme)!

https://github.com/thi-ng/umbrella/blob/develop/packages/meta-css/README.md

Transpiled resulting CSS of the MetaCSS declerations in the previous image, showing the expanded variable definitions and calculations to create the derived color... CSS source code: :root { --link-color-luma: 80%; --link-color-chroma: 100%; --link-color-hue: 0; --link-color-alpha: 1; --link-color: oklch( var(--link-color-luma) var(--link-color-chroma) var(--link-color-hue) / var(--link-color-alpha) ); } a:link, a:visited { color: var(--link-color); } a:hover { color: oklch( calc(var(--link-color-luma) * 1) calc(var(--link-color-chroma) * 0.8) calc(var(--link-color-hue) + 180) / calc(var(--link-color-alpha) * 1) ); }

janriemer, to rust

Currently in the process of rewriting my #transpiler from #nom v4.2 to #chumsky v1.0.0-alpha.6 🤓

It is a lot of fun so far, but I have to say these type signatures are wild!😄

I'm still struggling with it far more than I'd like, but I guess it is just a matter of time until intuition kicks in and it will become more and more natural.

Exciting project ahead!🙂

I'm even able to parse string literals with escape sequences - something I haven't even achieved with nom!

#Rust #RustLang

janriemer, to typescript

This looks wild! 🤯

civet - The Modern Way to Write

https://civet.dev/

janriemer, to rust

The feeling when you bang your head against the wall for 3 hours and then just try something, but don't really believe in it and suddenly all your unit tests pass! 🎉 :awesome:

This is the beauty of - you can just try and guess until it works.😄 It's such a funny experience!

My editor showing the content of the previously mentioned test that is now passing. The most important data that is tested (needs to be transpiled) looks like an SQL statement (but it is not SQL, rather a weird dialect) with a join clause that consists of complicated parentheses and logical operators like "&&" and "||".

janriemer, to rust

It's alive!🎉

I've built a in , compiled it to and integrated it into a 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 .

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

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.

janriemer, to rust

Urgh, + + is such a dream stack! ✨ 💖

Stay tuned for some magic in the next few days... 🤞

(:awesome:)

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