Viewing profile — ptarjan
ptarjan
HN member- Joined
- Sat, Jul 04, 2009, 5:39 AM UTC
- HN karma
- 576
- Public activity
- 130 items
- HN profile
- View on Hacker News ↗
About ptarjan
Recent public activity
-
comment
Comment #47025255
HN Frontpage in Ingglish: https://ingglish.com/?url=https%3A%2F%2Fnews.ycombinator.com...
-
story
Show HN: Ingglish – What if English spelling made sense?
My 5-year-old is learning to read and I keep having to say "yeah sorry, that letter is silent" and "no, those letters make a different sound in this word." So I built Ingglish — En…
-
comment
Comment #45048787
https://www.vimgolf.com/ is what taught me to VIM
-
comment
Comment #40562276
The metric system seems like a similar analog to geometric algebra vs vector calculus. You are saying the same thing but the language you are using is much more internally consiste…
-
comment
Comment #38668798
> As for detecting gravitational waves, except for violent events like black hole mergers, we don't detect any; what few such gravitational waves there are are far too weak for us …
-
comment
Comment #22263937
My favorite time I had to do this was for a real-life situation. I wanted a script that was both a bash script (for speed) and a ruby script (if you installed it the default way). …
-
comment
Comment #20240537
The parser for Sorbet was actually entirely given to us by GitHub. They were fabulous partners early on in the project and we're grateful for their contributions.
-
comment
Comment #20240494
Nice spelunking! Yeah, this word means nothing really. Sigil, pragma, directive, typed comment, whatever. Feel free to call it "dohicky" if you'd like.
-
comment
Comment #20238090
We believe that the main goal of a typechecker is to give you nice error messages. We've found giving names to things makes it easier for folks to reason about their errors, and in…
-
comment
Comment #20237980
Thank you! Ruby has been kind to us, we'd like to be kind back.
-
comment
Comment #20236582
Thanks for the idea. We used `params` because Method#parameters was what they called it in the standard library. I actually had it as `args` originally until someone pointed this o…
-
comment
Comment #20236521
Thanks for pointing that out. It can be called all of those. We liked sigil from its connotation: > Google defines sigil as, “an inscribed or painted symbol considered to have magi…
-
comment
Comment #20236488
Great find! Fixing now, thanks.
-
comment
Comment #20236459
Sorbet supports both formats. You can see the inline syntax on https://sorbet.run/
-
comment
Comment #17226332
Hi and thank you for working on RDL! We do love the project and spoke with Jeff Foster a few times last year. We did use your standard library annotations for Sorbet and have many …
-
comment
Comment #17226263
Thank you so much for all the interest! We're flattered and excited to see all the discussion about the project. Try it out: https://sorbet.run If you would like to get in touch wi…
-
comment
Comment #17224214
It is a similar idea, yes.
-
comment
Comment #17224093
(one of the authors here) We'd love that too! We're chatting with the Ruby folks to see if anything like that is feasible. We experimented with lots of other syntaxes (comments, ya…
-
comment
Comment #17224057
(author of the demo site here) I just was looking for a quick editor for the demo, and ace seemed to work well for this. Thanks for the pointer to manaco, I'll look at that for nex…
-
comment
Comment #13999950
Thanks! The buckets are already done per-user so it is very simple to make the constant factors be user-dependent. For my example in https://gist.github.com/ptarjan/e38f45f2dfe6014…
-
comment
Comment #13999385
In a token bucket algorithm you don't actually have a separate replenish step, it is baked into the next check you do. Similar to how in the example you linked the removal of the o…
-
comment
Comment #13998993
This can be done either way, and is really infrastructure dependent. There are pros and cons on both sides. We opted to bake it into the web stack instead of in front so that we ge…
-
comment
Comment #13998963
Thanks so much. I'm really glad you liked it.
-
comment
Comment #13998955
Both should work. Token buckets only have to store two things (count and timestamp) where a timestamp set has to store all N timestamps. I like the simper approach since I don't ac…
-
comment
Comment #13998907
We actually use the LUA scripts on Redis to guarantee the atomicity that the token bucket algorithm needs. Then the Ruby middleware does the HTTP 429 response logic. The code sampl…