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

I'm practicing mindfulness (in the Kabat-Zinn sense), and an interesting and deeply moving exercise for me was to realize my feelings and thoughts that appear on reading a document like this. Which are, for the most part, compassion and admiration of the extreme courage and honesty that it takes to publicize something like this.

comment 10y ago · link · parent

The slide deck from the talk (which was actually given in Polish) is here: http://danieljanus.pl/2016-continuations/index-en.html

693.

Show HN: Proof-of-concept continuation-based webapp in Ruby(github.com ↗)

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

comment 10y ago · link · parent

This comes from Zarf, someone who deeply cares about IF and the way it is told and experienced.

comment 10y ago · link · parent

Just finished "Love's Executioner" and "Creatures of a Day," both by Irvin Yalom. A deeply touching glimpse into the world of psychotherapy. Highly recommended.

comment 10y ago · link · parent

Thanks for pointing this out. I overlooked it, presumably because it's in the last paragraph of "Details" and not illustrated in any example.

I still maintain there's a wart in what I'd described, which is `do.call` not accepting vectors as the second argument. Also, `collapse` is idiosyncratic: I have to remember a special knob for every function that has a vararg and non-vararg flavour.

You raise the point of taking the time to learn the language, and I acknowledge this. Yet, as an occassional user, this is precisely what I'd like to avoid. When working with R, I'm pragmatic: what I'm after is a working solution to the problem at hand, rather than its most succinct or elegant formulation. When I find one, I move on. In production code this would incur a technical debt, but due to R's exploratory nature, this is typically not much of a problem. Had the language been more consistent, it would take less time to learn it thoroughly.

comment 10y ago · link · parent

R. Or a mixed approach, with Clojure for data preprocessing and R for the analysis proper. Case in point: I wrote the Clojure scraping library, Skyscraper [1], and made it output CSV by default so as to be able to easily drop the resulting files to R.

For statistics, Clojure has Incanter, but it's very basic in comparison. There are easily usable Java libraries for certain tasks (MALLET comes to mind), but these are few and far between.

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

comment 10y ago · link · parent

I have a love-hate relationship with R, being a predominantly Clojure (and Ruby these days) programmer who only occassionally dabbles in data crunching.

The apply/sapply dichotomy that the article mentions (actually a hexachotomy, there are also mapply, sapply, tapply and vapply) is one example of a gazillion warts that the language has.

Another random one: R has a useful function, paste, that concatenates strings together. Only it takes varargs, not a character vector, so if you have a vector v of strings, you have to use do.call(paste, v). Only not, because do.call insists that its second argument be a list, not a vector, so you do do.call(paste, as.list(v)). And if you want to separate the strings, say, by commas, you have to affix the named argument sep, obtaining do.call(paste, c(as.list(v), sep=",")).

And R's three mutually incompatible object systems. And so on and so on and so on.

There are things to love. The packaging system works really well. I like the focus that R puts on documentation: hardly anywhere is it so comprehensive, with vignettes and all. There are things plainly inspired by Lisp (R is just about the only non-Lisp I know that has a condition and restart system akin to CL). And ggplot2 is one hell of a gem of API.

In many ways, R is the PHP of data science. (Though the core language's still nowhere near as abysmal as PHP.) Despite all the warts, there are all sorts of statistical analyses that are just a package.install() away. Put another way, R is to data science what LaTeX is to typesetting. It's a heavy pile of ducttape, but it's here to stay because it's just so damn useful.

comment 10y ago · link · parent

Or rbenv.

700.

So You Want to Use Pathnames in Ruby(blog.rebased.pl ↗)

3 points · by nathell · 10y ago · discuss

comment 10y ago · link · parent

Mks_vir, especially its DOS incarnations from its heyday back when it was developed by Marek Sell himself, definitely deserves much more international publicity than it got.

comment 10y ago · link · parent

Translation of the Facebook description of the photo:

"[...] Yesterday I stumbled upon a service company that balances driveshafts. You won't believe what the owner uses to compute the mass of the weights. The system is based on a homemade bench for balancing shafts connected to a generator of sinusoidal alternations and piezoelectric sensors that measure the vibrations of the rotating shaft. The photo should give you a hint. The thing has been working uninterrupted for the last 25 years, even though the computer at some time had been flooded through a leaky roof window and apparently shit at by pigeons. The program was developed in-house. And it works, gentlemen. It works!"

703.

A Commodore 64 being used in production in Poland (2016)(facebook.com ↗)

2 points · by nathell · 10y ago · 3 comments

comment 10y ago · link · parent

Wow, never heard of Scrapy! Looks like I've reinvented it in Clojure: https://github.com/nathell/skyscraper/

comment 11y ago · link · parent

I'd wager a guess that most of the countries in the Eastern Block did have their own computers.

In Poland, for example, there were the 8-bit Meritums [1], the Elwro 800 Juniors [2], the Bosman 8s [3], the Mazovia PC clones [4] complete with their own Polish characters encoding that has the peculiarity of containing one character that had never existed in Unicode [5], to name but a few, not to mention the Odra mainframes [6].

[1]: https://pl.wikipedia.org/wiki/Meritum_(komputer)#/media/File... [2]: https://pl.wikipedia.org/wiki/Elwro_800_Junior#/media/File:E... [3]: https://www.youtube.com/watch?v=79YSyyV9f2Y [4]: https://pl.wikipedia.org/wiki/Mazovia_(komputer)#/media/File... [5]: https://en.wikipedia.org/wiki/Mazovia_encoding [6]: https://en.wikipedia.org/wiki/Odra_(computer)

comment 11y ago · link · parent

TF-IDF solves an important problem and it's good to know about.

However, in some applications, such as Latent Semantic Analysis (LSA) and its generalizations, there are practical alternatives such as log-entropy [1] that I've found to work better in practice.

[1]: http://link.springer.com/article/10.3758%2FBF03203370#page-1

comment 11y ago · link · parent

Related, but much much less complete: https://github.com/nathell/lithium

comment 11y ago · link · parent

Clarification: Turbo Vision was not around until TP 6.0 (TV 1.0 was released with TP 6.0, while TV 2.0, much extended, came with TP 7.0).

Turbo Pascal 4.0 through 5.5's IDEs were, TTBOMK, not based on Turbo Vision.

709.

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

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

comment 11y ago · link · parent

Does it cover the whole of Greater London?

711.

Libgen Goes Down as Legal Pressure Mounts(torrentfreak.com ↗)

2 points · by nathell · 11y ago · discuss

comment 11y ago · link · parent

Dear author, please don't ever even think of coming to Poland and admiring its extensive network of bicycle routes with world-class solutions like this one: http://bi.gazeta.pl/im/14/25/ba/z12199188P,Sciezka-rowerowa-...

In comparison, London is awesome. I miss the CS3.

comment 11y ago · link · parent

Limes inferior has not been translated to English (I was only able to find amateur translations of the first chapter [1]) and as such remains largely unknown outside Poland. Which is extremely unfortunate.

[1]: http://paczemoj.blogspot.com/2011/11/limes-inferior-chp-1.ht...

comment 11y ago · link · parent

I first heard of Michał when he won a 1996 contest for a computer-themed sci-fi short story with an oneiric tale about an astoundingly complex self-modifying virus. He would have been 15 back then. I was 12, and I thought to myself "wow, I will never be as smart as this guy."

Fast forward 19 years, and the impression still stands.

comment 11y ago · link · parent

Per 5.1.2.2.1 [C11 Final Draft], the `main` function should be declared as either

    int main(void) { /* ... */ }
or

    int main(int argc, char *argv[]) { /* ... */ }

comment 11y ago · link · parent

And that's not even the highest distance between two OSI stations. The two furthest apart are apparently Marylebone and Paddington (0.8 mi).

http://www.oyster-rail.org.uk/osi-list/

comment 11y ago · link · parent

How about this one? It's not standards-compliant, but GCC swallows it even with -Wall (or at least it used to), and it's by far my favourite:

    int main(int args, char *argv[printf("Hello, world!")]) { }

comment 11y ago · link · parent

One of these reminded me of my woeful attempts at IOCCC-like code, a Hello World implementation:

http://students.mimuw.edu.pl/~dj189395/nhp/czynic/programy/t...

comment 11y ago · link · parent

Funny thing, I had exactly the same idea the other day. Here is a breakdown of opcodes in a random binary of BusyBox 1.22.1 I had lying around (as disassembled by ndisasm):

https://scontent-fra3-1.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/1...

comment 11y ago · link · parent

There's zepto.js, which is supposed to be a drop-in replacement for jQuery. Not sure how it fares wrt Bootstrap, though.
1
232425
31