Better HN
topnewbestaskshowjobs
Log inSign up

cynik_

36 karma · joined Apr 6, 2014 (12y ago) · 41 submissions

explog.in
Submissions

comment 4y ago · link · parent

Most recently, I've been building a small server for myself to track my day, todos, and just act as a frontend for some easy scripts (eg. just a direct line to running date to get timestamps). It's been a joy to use htmx and flask and just crank out features quickly.

comment 4y ago · link · parent

I wrote about this a long time ago too: https://explog.in/notes/units.html. Units are critical, particularly when crossing language/engineer boundaries.

comment 4y ago · link · parent

I took a stab at generating a visualization of all the solutions with one brute force based approach: https://twitter.com/kunalbhalla/status/1486189627644035078

comment 5y ago · link · parent

Org Babel is the computational bit

comment 5y ago · link · parent

> you should always bias heavily for buy/download over build, That's a good point; I haven't spent much time thinking through this based on the work I've done so far (heavily leaning towards build over buy, with an existing complex internal tool ecosystem).

I think I might still push for build (or maintain the ability to heavily customize) for things that are particularly important for areas the company aims to have a strong advantage in/are business critical.

comment 5y ago · link · parent

That was a really fun post to read: I really like the approach you're taking with abbot -- making it easy to write new tools quickly by only adding the business logic while having fun. Not needing to worry about UIs is also excellent, and I suspect one of the biggest time sinks otherwise.

7.

Building Developer Tools(explog.in ↗)

3 points · by cynik_ · 5y ago · discuss

8.

Building Developer Tools(explog.in ↗)

2 points · by cynik_ · 5y ago · discuss

9.

How I Build Developer Tools(explog.in ↗)

1 points · by cynik_ · 5y ago · discuss

10.

Approaching Debugging(kunalb.github.io ↗)

2 points · by cynik_ · 5y ago · discuss

11.

Approaching Debugging(explog.in ↗)

2 points · by cynik_ · 5y ago · discuss

comment 5y ago · link · parent

This is cool, but I'd love to see a plot with all the axes (including color gradients) held constant across all charts so that they can be directly compared.

13.

A Simple Neural Network (200 loc, rust)(explog.in ↗)

2 points · by cynik_ · 5y ago · discuss

comment 6y ago · link · parent

I installed arch linux on my personal macbook air (2012) and it's given a new lease of life to the laptop; and I enjoyed it enough to switch from a macbook to a Thinkpad at work as well. (I like more minimal UIs, so I ended up going with dwm/dmenu instead of dealing with Gnome).

comment 6y ago · link · parent

I tried to do a 100 days of writing a few months into the pandemic for exactly the same reason (petered out around ~90 days in, but now I write without tracking religiously) -- https://explog.in/notes/100days.html. It was definitely worth it in terms of making writing easier, and also in helping me get better at thinking through writing.

Now trying to make it a permanent daily habit.

comment 6y ago · link · parent

Alternatively, are there any specific resources / attorneys you recommend reaching out to for EB1 evaluations? [particularly in/around NY for my case, but I guess that's not very important anymore]

comment 6y ago · link · parent

Yeah, I was thinking along those lines. A more readable version of this library that I sketched out might be something like --

An eagerly executing coroutine to consume the original generator and put it in a queue, and a new simple generator that yields values from the queue till it's told to stop.

I'm not sure if this matches the behavior of the original library for task cancellation though.

    def eager_gen(gen):
        end_marker = object()
    
        queue = asyncio.Queue()
    
        async def consumer():
            try:
                async for val in gen:
                    await queue.put(val)
            except Exception as e:
                await queue.put((end_marker, e))
            else:
                await queue.put((end_marker, None))
    
        async def new_gen():
            while True:
                item = await queue.get()
                if isinstance(item, tuple) and item[0] == end_marker:
                    break
                yield item
    
            if item[1]:
                raise item[1] from None
    
        _task = asyncio.create_task(consumer())
        return new_gen()

[Edit] This would also make a good decorator.

comment 6y ago · link · parent

I wrote and open sourced something very similar recently: https://github.com/kunalb/panopticon. I don't think it's as sophisticated as function trace, but it generates chrome/catapult compatible traces instead and has some additions for async coroutines/generators.

Firefox's profiler looks pretty cool, I wish it could also accept catapult traces as is -- it doesn't seem to be the case. Now I know of:

- chrome://tracing - Firefox's profiler - Perfetto: https://ui.perfetto.dev/#!/ - Speedscope: https://www.speedscope.app/ - Brendan Gregg's flamegraph generator

to help visualize traces. Are there other good ones?

19.

Panopticon – A Python Tracer(explog.in ↗)

1 points · by cynik_ · 6y ago · discuss

20.

My [Emacs] Writing Setup(explog.in ↗)

1 points · by cynik_ · 6y ago · discuss

comment 6y ago · link · parent

I started writing daily: exploring different things, but particularly asyncio and event loops. Also built a small library to visualize python code execution (to be open sourced soon).

https://explog.in/notes/100days.html#org0b7f5fd

comment 6y ago · link · parent

I bought a Surface Go and found out Drawboard PDF to comfortably read large books and annotate them with the stylus.

23.

The unreasonable effectiveness of sys.settrace (and sys.setprofile)(explog.in ↗)

1 points · by cynik_ · 6y ago · discuss

24.

Heuristics for Learning Tools(explog.in ↗)

1 points · by cynik_ · 6y ago · discuss

25.

Approaching Debugging(explog.in ↗)

2 points · by cynik_ · 6y ago · discuss

26.

An Incomplete Notebook Style Guide(explog.in ↗)

1 points · by cynik_ · 6y ago · discuss

comment 6y ago · link · parent

I've been maintaining a list of books I've read over the past years at https://explog.in/books/list.html; some that come to mind –

1. Small Gods, Terry Pratchett (this might actually be more than 10 years ago, but I'll still list it)

I really like this one because it emphasizes the value of caring about the _core_ of anything instead of the _trappings_ that will spring up around it. Keeping this book in mind reminds me to focus on the thing instead of the appearance of the thing.

2. On Writing Well, William Zinsser

I'm a programmer, and I've often found that improving my ability to write clearly translates directly to programming well: On Writing Well is the best – and warmest – book I've read on writing nonfiction.

3. Incerto, NN Taleb

This series forced me to revisit several assumptions. Something that still resonates is valuing anything – particularly books – that has aged well across several years, because it's clearly valuable; and to discount the new shiny.

4. The Pragmatic Programmer, Andy Hunt & David Thomas

I started an open source project in my 3rd year at college – as part of Google Summer of Code; inevitably every release would break something and I started hungering for skills that would let me create new releases _without_ breaking the world every time. I stumbled across the pragmatic programmer in my 4th year, and immediately started applying it on my project. This carried through to work and helped me a lot early in my career.

5. The Art of Doing Science and Engineering, Richard Hamming

There are so many gems in this book: from the emphasis on fermi numbers for quick approximations, to a simple demonstration of the distance covered by a random walk as opposed to the distance covered by choosing a direction, to asking the question: "Am I working on the most important thing I could be? If not, why not?". He also predicted that great programmers will have one thing in common with great writers – clarity of thought.

There are some books I'm reading right now that I suspect will end up on this list: Psychology of Intelligence Analysis (available at https://www.cia.gov/library/center-for-the-study-of-intellig...) – for making better decisions with limited data; and The Power of Choice – to allow me to pay attention to the non-technical parts of doing valuable work.

28.

Always Include Units(explog.in ↗)

2 points · by cynik_ · 7y ago · discuss

29.

Making Poet, an Emacs theme(explog.in ↗)

1 points · by cynik_ · 7y ago · discuss

comment 7y ago · link · parent

I started in rust but switched over to C (just because I get to apply NIH and have fun writing out things I wouldn't have any reason to otherwise) – currently doing 15; will try to wrap up before the year ends.

This is my first time trying and I'm enjoying it a lot.

12