โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile
โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ

@thlorenz

Building at @magicblock. Creator of luzid.app.

ID: 174726123

linkhttps://github.com/thlorenz calendar_today04-08-2010 17:29:29

8,8K Tweet

3,3K Followers

208 Following

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

If you need to run some cleanup code whenever a #rust test assert fails, i.e. to stop running child processes, I got the crate for you. Aptly named and easy to swap in and with the `strict` feature enforcing a cleanup stmt is provided. crates.io/crates/cleanass

If you need to run some cleanup code whenever a #rust test assert fails, i.e. to stop running child processes, I got the crate for you. Aptly named and easy to swap in and with the `strict` feature enforcing a cleanup stmt is provided.  

crates.io/crates/cleanass
โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

TIL: if you write #rust test helpers which include asserts then it is better to write them as a macro instead of a function. That way the assertion error points you to the relevant test code instead of your helper function and you don't have to use RUST_BACKTRACE.

TIL: if you write #rust test helpers which include asserts then it is better to write them as a macro instead of a function.
That way the assertion error points you to the relevant test code instead of your helper function and you don't have to use RUST_BACKTRACE.
โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

โšก Psyched to finally open this for all #solana devs. One of the most challenging + interesting projects I've worked on. Make sure to read to the end of the thread and our blog post which has more details. blog.magicblock.gg/ephemeral-valiโ€ฆ

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

OK so Cody AI gave me the _unaccepted word in my request_ cause the code sample mentioned "fictional". Would've helped to let me know which word was the offender + how is "fictional" a bad word and/or do you think you're gonna prevent jailbreaks just by disallowing it?

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

The Airbnb rating guide provided to us. Obviously invented but made look like this is how Airbnb recommends it. 2 and 1 star not shown at all so I'm left to guess: โญโญ The apartment does not exist โญ The apartment did exist but guest was killed on arrival

The Airbnb rating guide provided to us. Obviously invented but made look like this is how Airbnb recommends it.

2 and 1 star not shown at all so I'm left to guess:

โญโญ The apartment does not exist
โญ The apartment did exist but guest was killed on arrival
โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

How to make #rust use up less of your ๐Ÿง  cells: 1. Write the code as a plain simple and verbose `match {}` 2. Add this comment below: // Rewrite as map 3. Have copilot do the thinking for you and spit out more elegant code

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

So I wasn't sure if rust integration for #neovim was just not working very well or if it was due to my "older" laptop. Turns out all works smoothly on my new M4. No one optimizing for Intel macs anymore I guess.

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

"ChatGPT improve this job description" gone wrong? > As one of the Founding Engineers, you will be detrimental to contributing to contributing on their ecosystem ... #recruiters๐Ÿคฃ

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

I wish #solana explorer would correctly distinguish between a lookup table being 'deactivating' vs. 'deactivated'. At this point it shows the below as soon as I _deactivate_ it (should be 'deactivating'). cc noah gundotra

I wish #solana explorer would correctly distinguish between a lookup table being 'deactivating' vs. 'deactivated'.
At this point it shows the below as soon as I _deactivate_ it (should be 'deactivating').
cc <a href="/ngundotra/">noah gundotra</a>
โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

Claude Sonnet 3.7 seems crazy good. I literally spent about 1 hour trying to write pretty hairy synchronization code and never got it to work. Presented it to Claude, explained the problem, included some logs and it spit out a much simpler solution that works. ๐Ÿคฏ

โšก| Koh Tao ๐Ÿ‡น๐Ÿ‡ญ ๐ŸŒŠ๐Ÿง—โ€โ™‚๏ธ (@thlorenz) 's Twitter Profile Photo

Stayed in an environment with less than strict hygiene guidelines and got pretty bad stomach bugs more than once in short time. This even though we ate vegetarian only and were super careful. ๐Ÿคฎ Definitely appreciating countries with strict health guidelines so much more now.