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

That's no longer the case as of April 1st:

https://www.pzh.gov.pl/wp-content/uploads/2020/04/wytyczne-d...

comment 6y ago · link · parent

I've been a Linux user for the last ~15 years, and now I need to do some iOS development so just a few days ago I've ordered a Mac Mini. I guess I'm in for a bumpy ride. Oh well.

comment 6y ago · link · parent

I’m not sure what the situation is elsewhere, but I don’t trust the death statistics here in Poland.

Authorities here will be quick to remove a person from the death toll if they can attribute the death to something else than COVID-19, even when the person in question was tested positive [1].

People who have died in quarantine, having had symptoms but never tested, are also not included [2]. For that matter, testing patients with full-developed symptoms is officially outright discouraged [3].

Press sources in Polish:

[1]: https://mobile.twitter.com/MZ_GOV_PL/status/1243090118270947... [2]: https://poznan.wyborcza.pl/poznan/7,36001,25818730,koronawir... [3]: https://dentonet.pl/wytyczne-gis-nie-wystarcza/#gref

514.

Amazon warehouse in Poland continues to operate despite case of Covid-19(translate.googleusercontent.com ↗)

14 points · by nathell · 6y ago · 7 comments

515.

Poland closes borders, malls, eateries, pubs, casinos(pap.pl ↗)

1 points · by nathell · 6y ago · discuss

comment 6y ago · link · parent

This presupposes rational action on behalf of those in power, which I don't think is a correct premise.

comment 6y ago · link · parent

There is a JavaScript port of the Closure compiler, available from npm: https://www.npmjs.com/package/google-closure-compiler

comment 6y ago · link · parent

> They break backwards compatibility in the Closure Library so much that projects that adopted Closure (like Clojurescript), are stuck with a library from 2017. The project is maintained only to serve Google.

Is that the case? The current version of ClojureScript depends on org.clojure.google-closure-library 0.0-20191016 – I know it's a fork, but I'm not sure to what extent it is being synced with upstream.

comment 6y ago · link · parent

Also in the genre of tiny racing games, this 2004 entry from IOCCC comes to mind:

https://www.ioccc.org/2004/vik1.c

comment 6y ago · link · parent

Sure you can — from repeated usage of said symbol in context. That’s how language acquisition works in toddlers.

Not saying that it’s a preferred way, though.

comment 6y ago · link · parent

It's the ClojureScript runtime, Reagent, re-frame, plus the game's compiled code – it adds up.

Nginx should automatically gzip all assets. But I just checked and apparently it doesn't. I'll reconfigure, thanks!

comment 6y ago · link · parent

I'm considering adding a leaderboard, but that would damage the appeal that the current version runs completely client-side – from server point of view, it's just a few static files served by nginx.

Before I implement one, I'll likely add permalinks to puzzles, so you can race against your friends in solving the exact same riddle just by sharing a URL.

comment 6y ago · link · parent

Overwhelmingly positive. There've been rough edges, and the learning curve is rather steep – especially if you haven't used Clojure before – but it's worth it.

Re-frame [0] in particular has been a joy to use; I've developed a few large apps in it and they've been quite easy to maintain.

[0]: https://github.com/day8/re-frame/

comment 6y ago · link · parent

Thanks! This has been suggested to me before, and integrating a better wordlist is #1 on the TODO.

comment 6y ago · link · parent

Hey HN!

This is a game I originally wrote as a training tool for my friend who was going to appear on a TV talent show.

I’ve written an accompanying blog post that tells that story. Read it here: http://blog.danieljanus.pl/2020/01/03/word-champions/

526.

Show HN: Word Champions, a word game written in ClojureScript(danieljanus.pl ↗)

76 points · by nathell · 6y ago · 22 comments

comment 6y ago · link · parent

I've been renting a $3/mo ARM C1 server from Scaleway for 5 years now (a physical microserver) and doing exactly this. It handles being on HN frontpage without a hiccup. I'm very happy.

comment 6y ago · link · parent

Hey HN! Skyscraper is not new, but I've just released a major rewrite that's been long in the making.

Of this release features, I’m particularly happy about the database abilities of this release – it can almost automagically produce SQLite databases that you can then do arbitrary SELECTs on. See more at https://cljdoc.org/d/skyscraper/skyscraper/0.3.0/doc/databas....

529.

Show HN: Skyscraper, a Clojure framework for structural scraping of whole sites(github.com ↗)

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

comment 6y ago · link · parent

I'm reminded of https://www.ba-bamail.com/content.aspx?emailid=24569. Someone please make a similar test of "modern art vs ML-generated art".

comment 6y ago · link · parent

This looks like a modern-day ddd [1]. Sorely needed. (Not much by me, since I don't do a lot of C these days, but I'd definitely use this if I did.)

[1]: https://www.gnu.org/software/ddd/

comment 6y ago · link · parent

Ooh, DOSAMP! I used to use it to play MP3s in high school, when I was still a heavy DOS user and upgraded to a Pentium-133. Then, on Windows, I was firmly in the Winamp 2 camp.

comment 6y ago · link · parent

Ah, Verne. Brings back childhood memories.

I consumed the entire Verne that was in my primary school library, maybe 15 novels in total. "The Mysterious Island" and "Journey to the Centre of the Earth" were one of the first books I read in English translations (my mother tongue is Polish), around the age of 13. Good times.

534.

Indenting Cond Forms in Clojure(blog.danieljanus.pl ↗)

2 points · by nathell · 6y ago · 1 comment

comment 6y ago · link · parent

Zipper (1851) and ballpoint pen (1888) would be my picks.

comment 6y ago · link · parent

This reminds me of an idea I've had for a while.

In Poland, bills that amend laws are formed in a rigid way. They consist of a long list of recitals like:

"article such-and-such is amended to 'new text goes here'"

or

"after article 1.2.3, article 1.2.3a is hereby inserted with the following content: 'text goes here'"

(random example: http://prawo.sejm.gov.pl/isap.nsf/download.xsp/WDU2019000180...).

It has occurred to me that this kind of bills should be automatically parsable and convertible to a diff. Hence, a collection of amended acts should, in principle, be convertible to a Git repository.

The existing systems that cost heavy money probably already support something like this. But it still would be awesome to be able to do `git bisect` or `git log -S` on such a repo.

comment 6y ago · link · parent

I pointed it at my Clojure project [1]. It correctly inferred [2] that the project is doing multithreaded network connections, which is nice, especially given that Clojure's a rather niche language.

It quite confidently pointed out an "App container" category, on grounds of the repo containing a circleci/config.yml, which is... technically correct, I guess, but less than useful.

[1]: https://github.com/nathell/skyscraper/ [2]: http://pliki.danieljanus.pl/appinspector-skyscraper/

538.

Performance First(tonsky.me ↗)

85 points · by nathell · 6y ago · 95 comments

comment 6y ago · link · parent

http://danieljanus.pl

Made with an ad-hoc static site generator: https://github.com/nathell/nhp

comment 6y ago · link · parent

Comments on the same post on Lobsters: https://lobste.rs/s/bxuqzy/why_lobste_rs_is_better_than_hack...
1
171819
31