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 4y ago · link · parent

OMG this is so inspiring. Reminds me of early high school days when I’d fire up Turbo Pascal on my 486DX2/66 and play around with the VGA.

It seems like it’s easy to get the creative juices flowing with the TIC-80. Kudos to the author!

comment 4y ago · link · parent

No, it was moved. Essentially slided on six purpose-built rails in a three-hours-long operation.

comment 4y ago · link · parent

In 1962, the church of Mary’s Nativity in Warsaw, Poland, was moved by 21 metres to make room for widening of the nearby major thoroughfare [0]. It was the first moving-of-a-church operation in Europe.

[0]: https://en.wikipedia.org/wiki/Church_of_the_Nativity_of_the_...

comment 4y ago · link · parent

Obligatory xkcd: https://xkcd.com/724/ ; there are implementations (google “Hell Tetris”).

comment 4y ago · link · parent

Once on a kayaking trip, I experienced an angry bird encounter. It was a swan, not a turkey.

The lake was small and really muddy. The only viable path through it was through the small patches of reasonably clear water by the east side, but not having noticed that, I and my partner rowed ourselves into the mud.

The swan was large, female and obviously protective of her herd of cygnets, squeaking somewhere from within the reeds. She got real close and made angry noises at the kayak, waving her wings at us. She would swim away and then start an aggressive run at us, literally running on the mud, braking just inches away of our bow. We protected ourselves, the person in the front holding the row as a weapon, the one in the rear trying to frantically row ourselves back to clearer water.

In the end, we were towed out to safety by another, more experienced duo of our group. But I learned to never underestimate a swan.

comment 4y ago · link · parent

Will it be possible to connect to a running Kandria with a SLIME REPL? (If so, I’d consider buying a copy just for the fun of that.)

comment 4y ago · link · parent

I'm running a side project in Clojure (a guess-the-number-of-covid-cases lottery, https://koronalotek.pl) on a small VPS (Scaleway DEV1-S), and it is no problem either. It runs happily in the 2 GB RAM that the server has; I just installed the JVM, configured a nginx reverse proxy, and am using the standard cli-tools in a screen session to run it.

comment 4y ago · link · parent

Another blog that is a single executable binary (and a Zip archive at the same time) is Redbean: https://redbean.dev/

comment 4y ago · link · parent

https://danieljanus.pl

Made with a bespoke SSG: https://github.com/nathell/nhp

comment 4y ago · link · parent

If the content on your blog is valuable, people will discuss it anyway in various places where discussion happens. They will discuss it on HN, Reddit, Twitter, Facebook, the fediverse. Everywhere where it’s convenient.

I’ve come to the conclusion that adding one more discussion outlet won’t concentrate the discussion in one place. Even when said outlet sits right next to the posts themselves and is ‘canonical’, that’s just not going to happen. On the contrary, it will just contribute to the dispersion of discussion.

Besides, having comments under an article means that the article stops being a document and starts being an application [0], and that’s something I’d like to avoid. So, no comments on my blog.

But I do plan to link to HN threads so it’s easier to find discussion where it happens. I just don’t see value in it happening next to the articles themselves.

[0]: https://blog.danieljanus.pl/2019/10/07/web-of-documents/

comment 4y ago · link · parent

In some languages (e.g., Polish), the word for "serif" is the same as the one for "sheriff".

comment 4y ago · link · parent

> Here’s one such case: Say someone wrote something. You think they’re wrong, so you write a manifesto arguing that they’re wrong.

Whoa, whoa, hold your horses. Pause right there.

How does that "so" conjunction work? Given that you think they're wrong, why would you want to write a manifesto arguing that they're wrong? What's your motivation behind it?

There can be a plethora of possible motivations, all of them valid. Just to name a few:

- The original statement is in direct conflict with your world view. Because it's being read and shared, you want to write a counterpiece because you, too, wish to be heard.

- You believe that the original statement represents a belief that's factually incorrect, so you want to write a corrigendum because you believe that policies based on false premises are bound to lead astray.

- The original statement is written in a way that touches you emotionally. Perhaps it disparages a part of the world that's important to you. You want to respond in defense of that part.

- You don't find the matter particularly important, but you see an omission in the original statement's reasoning that you think you can amend. You write a supplementary response to improve your (and hopefully others') understanding of the problem at hand.

- You just have that irresistible urge originating $GOD knows where, that you have no better name for than "xkcd #386".

Depending on the circumstances, you may or may not want to follow the various norms that Dynomight mentions in their article. But I think it's of paramount importance to be self-aware of our own motivations. It also helps to be explicit about them.

comment 4y ago · link · parent

Nikita Prokopov is developing Humble UI which is worth keeping a close eye on. (Yes, it's Clojure, but Java interop is bound to emerge if it builds up a critical mass and catches on.)

https://github.com/HumbleUI/HumbleUI/

comment 4y ago · link · parent

From HN guidelines:

> Please don't comment on whether someone read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."

comment 4y ago · link · parent

Like every other day, I was shopping this morning at my local bakery in Warsaw, Poland. As I was packing my purchases, a woman next in line after me ordered coffee in Ukrainian.

(We have it lucky. Polish and Ukrainian are mutually intelligible to some extent, which enables basic communication even without knowing each other's languages.)

I said, to no one in particular, "Do widzenia, слава Україні" as I was leaving. She reciprocated the customary "Героям слава" in an obviously moved voice.

Small things matter. We need to support each other in every possible way. Donating helps, so does showing solidarity, and so does spreading the word.

Будь в безпеці, zverok. Our thoughts are with you all.

comment 4y ago · link · parent

Some services delayed by up to 8 hours: https://www.facebook.com/Opoznionypociag/posts/1868989756625...

This article suggests an outage of an Alstom-operated NTP server to which 19 (out of 33) local traffic controlling centres across Poland were connected: https://niebezpiecznik.pl/post/cyberatak-na-pkp-ktorego-nie-...

347.

“Time formatting error” caused rail delays in Poland(reuters.com ↗)

1 points · by nathell · 4y ago · 1 comment

comment 4y ago · link · parent

That’s the adage oft repeated by people who had had a cursory look at Emacs, but haven’t been really using it. In reality, the opposite is true. Emacs is a great editor, but the operating system that it is [0] is lacking in many ways:

- performance is not great (although it’s getting better with the advent of native compilation in Emacs 28)

- the system language is awkward (no namespaces, dynamic scoping by default, ...)

- no preemptive multithreading

- etc.

On the plus side, it is auto-documenting and extremely malleable.

[0]: Yeah, it can be a full-fledged OS. Just add a Linux kernel: http://informatimago.free.fr/i/linux/emacs-on-user-mode-linu...

comment 4y ago · link · parent

OMG, memories come back. My father brought a C64C back from Germany in 1991, complete with a German edition of the User’s Guide. The sample programs ring a bell. I distinctly remember a 7yo version of myself typing in code for the balloon sprite one.

Sadly, I never had the Programmer’s Reference Guide. I did, though, own „Commodore 64” by Bohdan Frelek, sometimes considered _the_ C64 Polish bible.

comment 4y ago · link · parent

Metacomment: I like your approach of explicitly labelling feedback items as bugs, opinions, or ideas. This allows for quick triaging – as a Show HN’er, I’d love to receive feedback in this format. I’m also going to reuse it for the feedback I give.

comment 4y ago · link · parent

There’s a similar algorithm for indexing words in text collections (I know it from the ‘Managing Gigabytes’ book).

Say you want to store the information that the word ‘algorithm’ occurs in documents 42, 2718 and 3141. That’s a sorted list, so as the author notes, you can just store the differences (42, 2676, 423). Those differences can still be arbitrarily large, but if there are many documents, you can expect most differences to be small.

The trick is to store the numbers not as fixed-bit-size integers, but using a variable-length encoding. The algorithm stipulates using a Golomb code with the parameter b = ceil(N / n * ln(2)), where N is the number of documents in total, n is the number of documents containing our word, and ln is the natural logarithm.

For our example, assuming 5000 documents in total, this gives N = 5000, n = 3, b = 1156, and our index entry is 10000101010001010110110010110100111, for a total of 35 bits.

comment 4y ago · link · parent

Seems to work now. Or it might be geographically constrained (I’m in Poland).

comment 4y ago · link · parent

This is great! Previous HN discussion on him becoming a minister: https://news.ycombinator.com/item?id=29540771

comment 4y ago · link · parent

It’d be great to learn about other code by prominent politicians.

Off the top of my head, I only recall one other example: COBOL on Wheelchair [0], a web micro-framework for GNU COBOL, written by Adrian Zandberg [1], a Polish MP.

[0]: https://github.com/azac/cobol-on-wheelchair

[1]: https://en.wikipedia.org/wiki/Adrian_Zandberg

comment 4y ago · link · parent

Get this through Jepsen and it’ll be more dependable than most high-hyped DBMSs out there.

comment 4y ago · link · parent

I've stumbled upon this article before thanks to a tweet by @azforeman (https://twitter.com/azforeman/status/1370779212697628672), which I'll reproduce here:

> I once was sitting in O’Hare airport reading a book of Latin poetry when a guy looking like a monk walks up to me looking utterly lost and asks “Loquerisne Latine”? (Do you speak Latin?) To which I answer “Ita, possumne te adiuvare?” (Yes, can I help you?.)

> Turned out he was indeed a Polish monk and knew only Polish and Latin. Had never been outside Poland before, or even seen the inside of an airport, and needed help finding his way.

> That is my personal story of Latin as an auxlang.

comment 4y ago · link · parent

(Disclaimer: I have never used k8s, so cannot assess the factual accuracy of this piece.)

If Kubernetes hasn’t yet incorporated this article into their documentation somewhere prominent, they should. This is an excellent, and crucial, piece of documentation: providing a mental model and explaining key design decisions. All complex systems should have a document like this one. As a newcomer, this is what I want to read first.

Bravo, author. I hope you get rewarded.

comment 4y ago · link · parent

In 2019, I wrote about the need for a web of documents [0], where I wrote about the importance of having static documents and sketched another approach.

Gemini is a web of documents. A rudimentary one, but very content-focused – the signal-to-noise ratio is typically much higher than on WWW. You can visit any capsule in the Geminispace and have full confidence that it’ll only serve you gemtext to read.

[0]: https://blog.danieljanus.pl/2019/10/07/web-of-documents/

1
111213
31