Better HN
topnewbestaskshowjobs
Log inSign up

dmitrytsepelev

125 karma · joined Jan 29, 2019 (7y ago) · 21 submissions

Submissions

1.

LLM Layer for a Rails Application(dmitrytsepelev.dev ↗)

3 points · by dmitrytsepelev · 6mo ago · discuss

2.

I wrote a terminal dungeon crawler game with pure Ruby in less than 150 lines(dmitrytsepelev.dev ↗)

3 points · by dmitrytsepelev · 2y ago · 1 comment

3.

Service objects in Ruby on Rails are broken(dmitrytsepelev.dev ↗)

4 points · by dmitrytsepelev · 3y ago · 1 comment

comment 3y ago · link · parent

Memory bloat in Ruby happens when someone loads a lot of data to the memory. Ruby Virtual Machine does not return most of the allocated memory to the operating system even after data is collected as a garbage. It’s not a big deal for local development or console programs, but if you have a bloat in the big Rails app it might cost you a lot of money.

It is quite easy to find a fix memory bloat when it happens, but can we prevent it?

5.

How to find a memory bloat in your Rails app before it happens(dmitrytsepelev.dev ↗)

1 points · by dmitrytsepelev · 3y ago · 1 comment

6.

Applicative programming in Ruby: railway reimagined(dmitrytsepelev.dev ↗)

1 points · by dmitrytsepelev · 3y ago · discuss

7.

On chosing the ideal architecture of the web application(dmitrytsepelev.dev ↗)

1 points · by dmitrytsepelev · 4y ago · discuss

8.

Understading why attr_accessor in Ruby is faster than a regular method(dmitrytsepelev.dev ↗)

3 points · by dmitrytsepelev · 4y ago · discuss

9.

Making the Ruby interpreter run a program written in a natural language(dmitrytsepelev.dev ↗)

52 points · by dmitrytsepelev · 4y ago · 2 comments

10.

Making the Ruby interpreter run a program written in a natural language(dmitrytsepelev.dev ↗)

2 points · by dmitrytsepelev · 4y ago · discuss

comment 4y ago · link · parent

Java does use string interning for constants. It can help in any case when you have a lot of instances of the same string (and when you need to compare that strings)

comment 4y ago · link · parent

Thank you for catching that! Not sure where my eyes were, feels like it's a remnant of another version of the sentence. Removed

13.

Why Ruby Has Symbols(dmitrytsepelev.dev ↗)

142 points · by dmitrytsepelev · 4y ago · 89 comments

14.

Why Ruby Has Symbols(dmitrytsepelev.dev ↗)

2 points · by dmitrytsepelev · 4y ago · discuss

15.

One row, many threads: How to avoid database duplicates in Rails applications(evilmartians.com ↗)

9 points · by dmitrytsepelev · 5y ago · discuss

comment 6y ago · link · parent

In this case the row size can become huge. Also, how to make sure it's consistent? (I mean foreign keys/unique indexes/etc)

comment 6y ago · link · parent

Great post! By the way, the reason why ar_lazy_preload exists is that neither me nor anyone else around me heard about goldiloader at the moment when ar_lazy_preload was created

18.

A second part of “GraphQL on Rails” tutorial(evilmartians.com ↗)

2 points · by dmitrytsepelev · 7y ago · discuss

19.

Tutorial on building modern Rails app with GraphQL(evilmartians.com ↗)

3 points · by dmitrytsepelev · 7y ago · discuss

20.

GraphQL on Rails: from zero to the first query(evilmartians.com ↗)

2 points · by dmitrytsepelev · 7y ago · discuss