312 karma · joined Feb 9, 2017 (9y ago) · 138 submissions
1.
Rust Service Isn't Leaking – It Could Be the Allocator(pranitha.dev ↗)
7 points · by abhirag · 4mo ago · discuss
2.
Your Rust Service Isn't Leaking — It Could Be the Allocator(pranitha.dev ↗)
2 points · by abhirag · 4mo ago · discuss
comment 6mo ago · link · parent
Remote: Yes
Willing to relocate: Yes
Technologies: Rust (Tokio, Axum, Pingora), RocksDB, Python, Kubernetes, AWS/GCP, OpenTelemetry, NATS
Résumé/CV: https://abhirag.com/resume.pdf
Email: hey@abhirag.com
Systems engineer, ~5 years of Rust in production. Most recently:
- Helped build a distributed notification engine (3.3B notifications/day at 300k/sec, 99.9999% dispatch reliability)
- Feature store serving 60M daily requests at p99 < 5ms
- Pingora based L7 reverse proxy
- DBSP based stream analytics engine processing 3.3M events/sec on a single node
Open to anything interesting, especially where Rust is the primary language. Happy to chat!
comment 7mo ago · link · parent
The only other language I am still curious about trying for livecoding is forth, for example Sporth(https://paulbatchelor.github.io/proj/sporth.html)
comment 7mo ago · link · parent
Regarding advantages/disadvantages, Lisp is always very terse which helps and with structural editing juggling parens becomes a non-issue. Dev environment being fiddly and fragile is the biggest con, you need to put some effort upfront in that.
8.
In which Lisp generates music(abhirag.com ↗)
6 points · by abhirag · 7mo ago · 7 comments
9.
Benchmarks for IPC strategies in Rust(pranitha.rs ↗)
2 points · by abhirag · 2y ago · discuss
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Just to give an example of what can be done using org-mode, this is the project I am using to grok Literate Programming -- http://ray_tracer.surge.sh/
The whole thing is generated using one org-mode file -- https://gitlab.com/snippets/1710454
and this org-mode file is the one I work in, it will eventually generate the source code in separate files too, once I have finished the project.
This is what my setup looks like -- https://i.imgur.com/mqi8vPR.png
Anyways I can't convince you to use it, but hopefully I can convince you to give it a try, it isn't easy but it is worth it :)
comment 8y ago · link · parent
1. Plain text format, git and git diffs work
2. You can combine many languages in a single document, and every code block can be part of a separate session, as an analogy to Jupyter Notebooks, you can have multiple kernels backing a single notebook and you can decide what kernel you want the current code block to run in.
3. You can edit a code block in the major mode for that language, i.e. you get all the features of Emacs while editing code: documentation, auto-complete, snippets and anything Emacs can do, and Emacs can do a lot :)
4. You can have internal and external links to any part of the document (or any other org-mode file) within the editor which get exported as links in the HTML file too. Want to refer to a code block you used before, just name it and drop a link. Extremely useful in binding the whole document together.
5. Literate Programming support -- You can decide the order the concepts are introduced in according to the human reader, not according to the execution order the machine demands it to be in:
#+NAME: named_code_block :eval no
function_not_defined_yet()
#NAME: complete_code_block
def function_not_defined_yet():
print("nice function innit?")
<<named_code_block>>
The <<named_code_block>> gets expanded to whatever you defined it and you control the way you want to structure the document to be the most readable. You can keep working backed by a REPL in the initial stages and then extract(tangle in literate programming speak) to a file, again in the order you want using the <<named_code_block>> (NOWEB syntax). So one org-mode can generate your whole project if you wish so.6. With the internal and external links and <<named_code_block>> (NOWEB syntax) the org-mode file is closer to being a hypertext file than Jupyter Notebook even though Jupyter Notebook is the one running in a browser.
I have covered only the major features of org-babel, I haven't even covered all the features. I love Jupyter Notebooks too, but org-babel is something else. I am currently working on a toy ray tracer in Clojure in literate programming style and loving every moment :)
comment 8y ago · link · parent
comment 8y ago · link · parent
1. The Art of the Metaobject Protocol (https://mitpress.mit.edu/books/art-metaobject-protocol)
2. The Art of Prolog (https://www.amazon.com/Art-Prolog-Second-Programming-Techniq...)
but haven't been able to find any other motivation to buy them. Also I have never printed the Common Lisp Quick Reference(http://clqr.boundp.org/clqr-a4-booklet-all.pdf) because I always imagine it having a really pretty cover, and everything I try just falls short.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Not implying that the lack of empathy is in anyway acceptable, but people should know that when machines are involved in such scenarios it is much easier for them to distance themselves emotionally, this is not new, weapons are a prime example of this. Maybe by knowing this dilemma people can react better to such tragedies.
I hope people show more empathy knowing this.
comment 8y ago · link · parent
I love why the lucky stiff's writing, I love POODR (http://www.poodr.com/) and the two languages have a lot in common if you just keep an open mind about it :)
comment 8y ago · link · parent
comment 8y ago · link · parent
"Recursion + memoization provides most of the benefits of dynamic programming, including usually the same running time." -- Steven Skiena
lru_cache decorator is great for people who are happy to let the language handle the caching of results for them, and often leads to code which is much more concise than the dynamic programming approach. The limitation you are referring to is that the decorator uses a dictionary to cache results and that dictionary uses the arguments as keys so the arguments need to be hashable. That limitation can be avoided by using immutable data structures (Clojure also has a higher order function called memoize which does the same thing and has no limitations because the core data structures in Clojure are immutable) and although Python not having structural sharing can mean that this approach can hurt memory and GC efficiency a bit, but that trade-off is at least worth considering :)
Still have to keep the stack depth less than sys.getrecursionlimit() so no substitute for tail recursion but surely a substitute for dynamic programming in a lot of cases.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Example -- (https://github.com/Day8/re-frame/blob/master/examples/todomv...)