's Avatar

@madejejej.bsky.social

32 Followers  |  225 Following  |  41 Posts  |  Joined: 18.11.2024  |  2.2412

Latest posts by madejejej.bsky.social on Bluesky

GPT prompt:

"Based on the history of our conversations, suggest a few types of music that you think I'd love"

Hit reply if it delivered!

20.05.2025 16:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image 26.04.2025 16:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

ChatGPT: Solves PHD-level problems

Also ChatGPT: You should totally mount a towel holder right next to your shower head.

26.04.2025 16:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Listing Bot - #1 for directory submission sites! Over 10,000 directories in db and growing in ListingBott! List SaaS, product, or website on 100+ directories in one click, saving you days of work to focus on more creative tasks. Listing Bot.

You might want to check out listingbott.com by @johnrush.me

09.04.2025 11:23 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Looks very neat!

18.03.2025 11:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I’m available for hire.

I’m an experienced Ruby, TypeScript and CSS engineer looking for a new full-time position.

I can help you with performance, concurrency, testing, architecture and API design problems on tooling or product teams.

I’d really appreciate any personal introductions. DMs open. πŸ™

27.01.2025 19:41 β€” πŸ‘ 110    πŸ” 67    πŸ’¬ 5    πŸ“Œ 1

Interesting, why is that the case?

10.01.2025 11:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Coming from Ruby, I find benchmarking in compiled languages a lot harder.

In Ruby, what I write gets executed. In a compiled language, the compiler can compute what you benchmark in compile-time if you're not careful.

Always looks at the disassembly πŸ˜…

23.12.2024 13:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I really enjoy writing Rust in copilot. Not because it produces valid code (it does not), but usually it gives me clues on how to transform the current object into something a given function accepts that would've taken me a few minutes to get right without it.

18.12.2024 21:45 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Lets try an experiment. Should I post my fitness stuff here or keep bsky tech-related? Here's a random set 8 dips with +45kg. Ever since I started training, I dont feel any back pain from prolonged sitting πŸ’ͺ

#calisthenics #skygym

14.12.2024 13:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Most of the time I'd do smth like `flex-col md/lg:flex-row` and perhaps also center on xs screens. Things usually look nicer centered on small screens.

12.12.2024 15:07 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I have to go to sleep lol

11.12.2024 23:25 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Also, around 10ms is spent rendering SVGs πŸ™ƒ I can LRU cache these calls.

11.12.2024 23:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I'm not gonna do scientific benchmarks for now, but when profiling locally in production mode, it seems that it takes 4-5ms to render one element (MBP M1), and half of it is rendering the dropdown.

And the AR records are all loaded on the first element, so there's a "view penalty" from it as well?

11.12.2024 23:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

No sleeping πŸ˜… The Phlex part is embedded in a Rails view (the whole collection is a single Phlex component though).

It dances with Rails a bit. The dropdown is... a Rails partial that renders a ViewComponent, because I haven't yet migrated all to Phlex. I can profile and see what the bottleneck is.

11.12.2024 22:54 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

The view that takes ~100ms to render is actually Phlex.

It renders a list of entities and has quite a bit of markup because each elem has a dropdown menu.

Here's what it looks like. The collection is uncached.

11.12.2024 22:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

So I rebooted Intel and it works much better now. Still slower than AMD but 1.5x, not 4x πŸ˜…

11.12.2024 22:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah it's a shared one

11.12.2024 22:24 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

OK, I'm onto something. Changed my CPU from Intel to AMD and it starts looking reasonable now.

I'm gonna switch back to Intel once more - perhaps either loud neighbour or smth wrong with physical server?

Or is AMD really THAT MUCH FASTER?!

11.12.2024 22:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

really nothing interesting here.

11.12.2024 22:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Works faster than production locally.

Hetzner is 2x slow as Render even though it has 4vCPU, while Render has 0.5 CPU for web and 0.5 cpu for postgres 😬

Gonna look further...

11.12.2024 22:04 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Good question! Gonna check it out in an hour

11.12.2024 19:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Its probably either a loud neighbour on the cpu or I really f'ed something up when upgrading Rails from 7.2 to 8.0 πŸ€”πŸ€”πŸ€”

11.12.2024 19:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The DB is on the same Hetzner machine as my app

11.12.2024 15:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Same view on render.com

11.12.2024 15:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Soo I'm migrating my Rails app to Hetzner with Kamal. Running Rails & postgres on the same machine.

Even though the machine is much beefier than render.com, the views are rendering super slow. What am I doing wrong? 😬😬

11.12.2024 15:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Holy shit, that sounds like my life too, but I'm a bit less extreme. I force myself to finish (but usually I'm late for activities planned post-work), and I sleep a lot :D

But I really remember my anxiety kicking in in the office when ppl wanted to chat in the kitchen and my head was all abt code

11.12.2024 13:31 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Great stuff!

11.12.2024 13:04 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - zdennis/activerecord-import: A library for bulk insertion of data into your database using ActiveRecord. A library for bulk insertion of data into your database using ActiveRecord. - zdennis/activerecord-import

I've always used github.com/zdennis/acti...

would be smth like:

```ruby
Item.import([{id: 200, other_id: 100}, { id: 400, other_id: 200]] , on_duplicate_key_update: {conflict_target: [:id], columns: [:other_id]})
```

10.12.2024 12:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I would even prefer a single input with a locale-specific mask (eg. 11-08-1980)

10.12.2024 11:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@madejejej is following 19 prominent accounts