Lewis Liu's Avatar

Lewis Liu

@lewisl.net

Building https://reflame.app, so you never have to wait for a deploy again. Formerly @ https://brex.com, https://circleci.com, https://rangle.io.

210
Followers
114
Following
52
Posts
18.06.2023
Joined
Posts Following

Latest posts by Lewis Liu @lewisl.net

I've always just used slice. Works the same across both strings and arrays, and the way negative indices are handled feels more intuitive.

02.12.2024 00:31 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I don't think they have to be for-profit companies, but the existence of another for-profit company competing and potentially outcompeting Bluesky's own app would really put these decentralization ideals to the test.

26.11.2024 22:10 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Would love to join if there's still a spot! :)

26.11.2024 22:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Done! :)

26.11.2024 07:12 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yep, fly still has egress, but a lot more reasonable than AWS! :)

24.11.2024 20:33 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yeah sort of haha, we save the assets to S3 for the durability guarantees, and then serve them over our global nginx-based CDN hosted on fly.

24.11.2024 20:24 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Would love to be a part of this one! :)

24.11.2024 20:19 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Deploy app servers close to your users ยท Fly

Mostly node on fly.io and some Rust and AWS.

24.11.2024 20:17 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yep! We only support client-rendered React apps so far, but we do everything 100x+ faster. :)

24.11.2024 19:59 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Hmm is it just me or is the default Bluesky discovery feed a bit too random?

I've been engaging with tech/programming stuff almost exclusively since I made this account, but 90% of the posts on my discover feed is still not tech/programming stuff.

24.11.2024 19:43 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

reflame.app ๐Ÿ˜ƒ

24.11.2024 19:35 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

๐Ÿ’ฏ

Also why I'm not a fan of git commit/push hooks. A lot of times I commit/push just to save my work, run CI, or deploy a preview to poke around in, any friction added to that process is super painful.

24.11.2024 19:14 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

Missed out on the first one. Hopefully I can make it onto this one? ๐Ÿ™

24.11.2024 19:11 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Not sure if I'm cool enough, but it's worth a shot! ๐Ÿ™‚

24.11.2024 19:09 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Play with the live version here:

reflame.app?%7Er_preview...

Good night!

24.11.2024 09:26 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

And here it is in the opposite corner. ๐Ÿ˜ช

24.11.2024 09:26 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

Yes, of course I did dark mode too. ๐Ÿ˜ซ

24.11.2024 09:26 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

Help. I'm addicted to @motion.dev. ๐Ÿ˜ฑ

24.11.2024 09:26 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
GitHub - tc39/proposal-module-declarations: JavaScript Module Declarations JavaScript Module Declarations. Contribute to tc39/proposal-module-declarations development by creating an account on GitHub.

This capability would be pretty crucial for building a performant polyfill to something like github.com/tc39/proposa... (which I plan on evolving my bundle format into eventually).

Happy to draft up a proposal if someone on tc39 might be willing to help champion it!

21.11.2024 03:56 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

There's no way to assign a custom URL to a dynamic JS module (created through createObjectURL) for the purpose of relative import resolution and import map scoping.

My new JS bundler is at least 10x slower at runtime because of this (see network tab on reflame.app).

21.11.2024 03:56 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yes definitely this too. I use a M2 MacBook Air as my main dev machine specifically for the silence. So refreshing!

I have the M4 Mini on my desk right now running Llama 3.2 vision and fans don't seem to be even spinning up!

18.11.2024 17:02 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Not to mention they have one of the best platforms out there for running LLMs efficiently in terms of both cost and power, thanks to unified memory. Surely that would be an amazing sell for today's server market?

In fact that's exactly why I bought my base M4 Mini.

18.11.2024 09:24 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Apple would probably dominate the server CPU market if they decide to enter it.

I kinda wish they would since everything I deploy to prod end up performing much worse than even on my M2 Air due to how crazy far ahead they are on single threaded perf.

18.11.2024 09:18 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

Apparently the base model M4 Mac mini idles at 2-3w with low power mode, 4-5 without.

That's Raspberry Pi levels of efficiency. Bonkers especially considering the fact that most workloads can finish 100x faster and go to idle 100x sooner than on a pi.

18.11.2024 09:18 ๐Ÿ‘ 8 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

I'm pretty sure I've seen this eyeball icon just about every day for the past decade but never bothered to hover over to see what it does. ๐Ÿคฆ

12.11.2024 17:24 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

These optimizations are great and all, but the UX around having to manually specify entry points has always been a huge point of confusion and frustration.

Thankfully with this change, we'll be able to get the best of both worlds!

22.07.2023 00:14 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

We both cache package installations and bundles and load them for future deployments, and serve them up through our CDN as a separate set of resources from your app, so repeat visitors will always have them cached regardless of how frequently you update your app code!

22.07.2023 00:13 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

2) Since NPM packages change very rarely compared to the rest of your code, we can get a ton of bang for our bucks by caching them independently from the rest of the app.

22.07.2023 00:13 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

... and since NPM package installation & bundling is almost always the bottleneck in the overall deployment process, this can cut down deployment speeds drastically versus other approaches that bundle NPM packages and your own code together sequentially.

22.07.2023 00:13 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Reflame has always required specifying entry points to NPM packages up front, because it enables a few novel and hugely impactful optimizations:

1) We can start installing and bundling packages before we even start looking at the rest of your code...

22.07.2023 00:12 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0