Markus Ast
@brainafk
Followers
163
Following
428
Media
288
Statuses
2K
Self-employed web engineer π¦ #Rust #Wasm #Go #TypeScript #React #Aviation π @[email protected]
Germany / Dresden
Joined October 2008
I just made this #rustlang `sql!` macro to write compile-time checked database queries similar to how `format!` works public:
github.com
An `sql!` macro to write compile-time checked database queries similar to how `format!` works - rkusa/sqlm
Dang it, I got sidetracked again β but I have to admit, I quite like the idea of a #Rust sql! macro that behaves as close as possible as format! (but creates parameterized queries) ...
0
0
2
Good thing about the decline of Twitter: since I stopped using it on a regular basis, I donβt know anything about the most recent JS frameworks anymore
0
0
0
Made a v2 with focus on being quieter. Happy with how the stabilisers turned out β not perfect but a huge improvement compared to v1 which my partner heard two rooms away. No custom printed keycaps this time as they didn't last very long β missing the red Esc key though #keeb
0
0
1
It saddens me, that Frankfurt is the worst upon the test regions for both ...
0
0
0
It is possible that either of both is closer / in the same data center as the servers the tests were run from. So the results need to be taken with a grain of salt. Main takeaway for me is at least that it doesn't seem like I'd deteriorate the latency of my app.
1
0
0
Did some non-scientific latency tests. Instances (on @flydotio) instead of workers on a CDN looks good. First picture is CDN, second is multiple instances. I've been running an instance in each of those test regions, and the CDN has nodes in all of those test regions (AFAIK).
Contemplating moving my frontend back from workers to instances, due to the local dev experience being a recurring headache / to be as close to production as possible β¦
1
0
0
β¦ and getting tracing integrated would be much easier within my private network and with a simple node process (even though I dislike running non-compiled code on my own instances).
0
0
0
Contemplating moving my frontend back from workers to instances, due to the local dev experience being a recurring headache / to be as close to production as possible β¦
1
0
0
New must have for editors: custom treesitter language injection queries. Makes an sql! macro (and similar use-cases) even better:
0
0
1
Most recent major change was to move element attributes before their content. Even though having attributes at the end like SwiftUI is somewhat pretty, it is very hard to read / reason about for large / deeply-nested tags ...
0
0
0
My PC is cursed. Doesn't want me to work on it. I can game on it all day (so hardware seems fine I suppose), but VSCode crashes every couple of minutes, Sublime Text has frequent freezes, Fleet bluescreens my PC, and even Firefox crashed while I tried to write this tweet ...
2
0
0
Not the greatest error message to work with though (even worse on stable where it is a u64 hash instead of the actual column name; e.g. 189237198 instead of "name"). But all I can do since I want the type to be inferred (rather than having to use `sql!(User, "SELECT ...")`.
0
0
0
This #rustlang sql! experiment escalated a bit. First steps towards basic compile-time query checks are done ...
Dang it, I got sidetracked again β but I have to admit, I quite like the idea of a #Rust sql! macro that behaves as close as possible as format! (but creates parameterized queries) ...
1
0
0
Http routes is a #rustlang topic where I always end up using a simple and verbose match (with helper get!/post!/... macros for readability). Not ideal, but each time I try to use a popular library with a flexible builder-pattern, I get frustrated trying to get the types right ...
0
0
2