HackerTrans
TopNewTrendsCommentsPastAskShowJobs

denys_potapov

no profile record

Submissions

[untitled]

1 points·by denys_potapov·il y a 8 mois·0 comments

Porting is-odd NPM to OCaml using remelange compiler

dev.to
5 points·by denys_potapov·l’année dernière·0 comments

comments

denys_potapov
·il y a 3 mois·discuss
tl;dr replace SQLite with Map ~ 2x speed up, replace zod validation with ifs ~ 2x speed up. Bun had a memory leak on unresolved promises - now fixed
denys_potapov
·il y a 7 mois·discuss
As the author of a JS-to-OCaml compiler [1], I must admit that Poe’s Law applies here [2]:

“Without a clear indicator of the author’s intent, any parodic or sarcastic expression of extreme views can be mistaken by some readers for a sincere expression of those views.”

[1] https://dev.to/denyspotapov/porting-is-odd-npm-to-ocaml-usin...

[2] https://en.wikipedia.org/wiki/Poe's_law
denys_potapov
·il y a 7 mois·discuss
Always. Probably you can't get in top 100 with python[1]. But I like dicts with tuple keys, bigints, all the list things.

[1] My best is around 1300 place in HackerCup.
denys_potapov
·il y a 7 mois·discuss
Cool. Recursion in python is common bottleneck in competitive programming. Will give it a try. I created a similar tool for recursion [1]. But ended with rewriting AST and emulating stack. Pros - no need for accumulator, cons - almost unusable in real world.

[1] https://dev.to/denyspotapov/callonce-python-macro-for-unlimi...
denys_potapov
·l’année dernière·discuss
I'm working on a block-based visual programming environment for kids — a sort of Scratch alternative — but instead of inventing a new language, it's a subset of Elixir. I'm using Google’s Blockly to generate real Elixir code from the blocks.

Right now, I'm building a Space Invaders clone in Elixir with LiveView, and integrating Blockly so the game's core logic can be edited visually. Hoping it becomes a fun way to learn both functional programming and web dev.