Better HN
topnewbestaskshowjobs
Log inSign up

nathell

6,186 karma · joined Apr 18, 2010 (16y ago) · 920 submissions

Just another Clojure hacker.

https://danieljanus.pl

meet.hn/city/52.2319581,21.0067249/Warsaw

Submissions

comment 8y ago · link · parent

The lone and level bytes stretch far away.

comment 8y ago · link · parent

The word "empathy" has a somewhat eerie ring to it, as if it were a magical capability. At least in its most common understanding as "the ability to feel what another person feels".

Fun fact: that's impossible. You can never be sure what another person is feeling, because you are not that person. They, and only they, are the sole authority on their feelings.

Instead, I choose to understand empathy as opening up to the fullest extent possible: removing all filters, prejudices and opinions, listening to what another person has to say, and being with them in a mindful way.

As Marshall Rosenberg puts it: “Empathy: emptying our mind and listening with our whole being.”

comment 8y ago · link · parent

There are a couple of things that make me sad about this article, and I’m on the run so I’ll only make a few points.

One is the implied greed of the reader: „They [thank-you notes] improve the frequency and quality of the gifts you receive.” As if expressing gratitude was intended to yield gifts! Maybe for someone, but that’s far from my reasons to say thank you.

Also, the formula that is guaranteed to „never fail” makes a number of hidden assumptions, e.g., that the gift is meant to be used (point 3). What if I live far from sea and get a stone from the ocean from my friend who’s just returned from there? What I’d like to say is: „Dear John, thank you for the stone. I like to think that you had thought of me as you picked it up. When I look at it, I think of you and how important part of my life you are. Thanks for being it.”

There are better formulas. Ones that work for me revolve around non-violent communication: read up Marshall Rosenberg or „The Power of Gratitude” by Liv Larsson for details.

comment 8y ago · link · parent

And SQLite. And, on the more hip side, re-frame – Mike Thompson's writing has a personal, witty style.

comment 8y ago · link · parent

It's fun to look at the ASDF system definition: https://github.com/reddit-archive/reddit1.0/blob/master/redd...

Some Ediware in the dependencies (CL-PPCRE, CL-WHO and Hunchentoot from back when it was called TBNL). I guess they used CL-SQL rather than Postmodern because the latter didn't exist back then.

Should be reasonably easy to get it running on a modern CL.

comment 8y ago · link · parent

OpenSSL has always been nowhere near the level of robustness and bulletproofness that SQLite is at. Just look at how it's tested: https://www.sqlite.org/testing.html

comment 8y ago · link · parent

Per your own sentence, you've just committed a syntax error.

comment 8y ago · link · parent

There's a village in Christmas Island, Kiribati, by that name.

comment 8y ago · link · parent

> In my opinion, the presence of doall, dorun, or even “unchunk” is almost always a sign that something never should have been a lazy sequence in the first place.

I’d say it’s a good rule of thumb, but it’s sometimes justified. For example, `line-seq` returns a lazy seq of lines read from a given Reader; the appeal being you can process them one by one, without keeping them in memory all at once. But if you just want them all, you wrap the `line-seq` in a `doall` in a `with-open`.

My scraping library, Skyscraper [1], has a similar justification for laziness around side-effects: scraping a site returns a lazy sequence of elements, each corresponding to one page. It's terrifically useful to have that sequence be lazy, and there's unchunking code on Skyscraper to enforce full laziness. Incidentally, I'm rewriting it to be based on core.async, but it has a less functional feel to it.

[1]: https://github.com/nathell/skyscraper

comment 8y ago · link · parent

Previous discussions:

https://news.ycombinator.com/item?id=4765067

https://news.ycombinator.com/item?id=9575786

https://news.ycombinator.com/item?id=1319034

comment 8y ago · link · parent

(2015)

comment 8y ago · link · parent

The square brackets in your tr invocation are unnecessary.

comment 8y ago · link · parent

> I think Alan Kay using the word "homoiconic" for Lisp was a mistake. The syntax of Lisp really is not the same as the internal representation, unlike the Tcl (which I understand actually executes by manipulating strings). This is a reason structured editors for Lisp don't seem to work out.

Indeed. Christophe Grand had a talk at EuroClojure 2012 on this very topic: http://confreaks.tv/videos/euroclojure2012-not-so-homoiconic

comment 8y ago · link · parent

It's a she.

comment 8y ago · link · parent

Previous discussion: https://news.ycombinator.com/item?id=7638904

comment 8y ago · link · parent

I can't help thinking of how the early-ITS approach to security (not only was there none, but looking at other users' work was a deliberate feature) was embraced by its users. I'm way too young to remember, but it rings a bell somewhere down my heart.

There's a lot of prominence being given to all kinds of damage malicious users might inflict, and ways to prevent or mitigate, but little to the malice itself. Whence does it arise? What emotions drive those users? What unmet needs?

Meanwhile, when these slowing-down patches for Sceptre and Meltdown arrive, I intend to not run them, to the possible extent. I intend to keep aside a VM with patches for critical stuff, like banking or others' data entrusted to me. But I don't want my machine to be slowed down just because someone, sometime, might invest effort in targeting these attacks at it. Given how transparent I want to be with my life, that's a risk I'm willing to take.

comment 8y ago · link · parent

> The author usually spends months discovering things, and going down blind alleys. At the end, he organizes it all into a story that covers up all the mistakes (and related motivation), and presents the completed idea in clean neat flow. The way to really understand the idea is to re-create what the author left out. Read between the lines.

Pity there's little mathematical writing that actually _does_ contain these blind alleys and mistakes. Part of why I enjoy "Concrete Mathematics" by Graham/Knuth/Patashnik is that it's one of the rare counterexamples.

comment 9y ago · link · parent

Insofar as this is true, the original EMACS was not Emacs, either. Instead, it was a collection of Editor MACroS for TECO.

comment 9y ago · link · parent

Darcs?

comment 9y ago · link · parent

Are the results of that research written up somewhere, or is this purely internal?

comment 9y ago · link · parent

In my app (a search tool for Polish corpora [1]), I'm using ZIP with zero compression (stored files) as a container file format. The upside is that I can easily read the archive contents, and then mmap parts of the file as needed [2].

[1]: https://github.com/nathell/smyrna

[2]: https://github.com/nathell/smyrna/blob/master/src/clj/smyrna...

comment 9y ago · link · parent

I would pay high margins to legal firms whom I'd forward spam and they'd sue spammers on my behalf (in Poland).

comment 9y ago · link · parent

> Thanks to everyone who contributed to it.

One of these people was Anthony Grimes (Raynes), who had prematurely passed away last year. I take this moment to reflect on his memory.

comment 9y ago · link · parent

This so needs a ditaa[0] integration.

[0]: https://github.com/stathissideris/ditaa

comment 9y ago · link · parent

I wrote a Clojure library that facilitates writing this sort of scripts in a relatively robust way:

https://github.com/nathell/skyscraper

comment 9y ago · link · parent

F-Droid is my go-to place for no-nonsense Android apps. By no-nonsense, I mean "typically lightweight and not forcing me to create an account merely to use the core functionality." They may not be very pretty or polished, but they tend to do their job well.

Obviously that's not true 100% of the time. But surprisingly often.

comment 9y ago · link · parent

Just use ag (the-silver-searcher) or ripgrep in lieu of ack.

comment 9y ago · link · parent

The proper pronunciation of TeX is /ˈtɛx/, not /ˈtɛk/, ending with a voiceless velar fricative.

comment 9y ago · link · parent

It still is, as the underlying page allocator for the SLAB/SLUB/SLOB allocators. See http://elixir.free-electrons.com/linux/latest/source/mm/page...

comment 9y ago · link · parent

A candidate I'd consider: Preact. While it doesn't have quite the same support as regular React does, it is touted as having a mostly-compatible API and its license is pure MIT.
1
212223
31