HNHacker News
TopNewBestAskShowJobs

azag0

517 karma · joined September 22, 2014

submissionscomments
azag0··on Reducers, transducers and core.async in Clojure
Or, with a little setup, the Closure snippet

    (def s (range 0 10))
    (reduce + (map inc (filter even? s)))
can be turned into Python's

    from functools import reduce
    from operator import add

    def inc(x): return x + 1
    def even(x): return x % 2 == 0


    s = range(0, 10)
    reduce(add, map(inc, filter(even, s)))
Everything's lazy in there. It's just... not very Pythonic.
azag0··on How Thou Canst Maketh a Fine Program in Fortran
Personal experience: My general language-to-go is Python, and I'm very fond of Rust. But Fortran has no competition in numerical computing at native speeds in terms of convenience. I was just recently rewriting a small Fortran library (that I usually but not always call from Python) to C, and it was a pain. So, as a result of that, Fortran is still used heavily in scientific computing. (On the other hand, Fortran is a pain for anything else than numbers and arrays.)

It is also the only language I'm aware of that has a special syntax for distributed memory [1], making parallel distributed computing potentially extremely convenient.

[1] https://gcc.gnu.org/wiki/Coarray

azag0··on The young Japanese working themselves to death
You are a European citizen, but you want to live in Taiwan, or NZ, Canada, or US. I don't blame you, but that seems to be the source of your struggles. I'm sure I might have problems getting into those countries as well. Any particular reason you don't want to live anywhere in EU?
azag0··on Facebook is an attack on the open web
Thanks! I didn't know this was possible. I was locked in Facebook because of the Messenger: that's how I communicate with most of my friends. I just deactivated my Facebook account and kept the Messenger.
azag0··on A Practical Guide to Linux Commands, Editors, and Shell Programming (2010) [pdf]
From that website:

"A Practical Guide to Linux Commands, Editors, and Shell Programming -- 3rd Edition - you can download the 2nd edition as a pdf but it's missing the new chapters in the 3rd edition on Mysql and Python."

azag0··on What's new in gnuplot 5.2
Python with pandas for data. Matplotlib and seaborn for plots. Export to PDF with the same font as used in the main document.

If I need to include 3D graphics, I export the data from python to csv or json, and load in Wolfram Mathematica, which is extremely flexible for declarative composing of both 2D and 3D graphics.

azag0··on Keybase is out for iPhone, Android
Re the final point: Was it like this from the beginning? I still have some identities signed by my original PGP key with which I signed up to Keybase https://keybase.io/azag0/graph
azag0··on Keybase is out for iPhone, Android
You need the private key for decryption. Private keys sit locally on each device and don't go anywhere. Messages are encrypted with all public keys of the recipient and yourself, so every party can read the conversation on any device.
azag0··on Keybase is out for iPhone, Android
I think of Keybase more as a cryptographic platform which can bundle devices and identities into a single package, see my "tree" for an example https://keybase.io/azag0/graph

It also provides crypto for files, both signing (public sharing, https://keybase.pub/azag0/) and encrypting (private sharing).

EDIT: And this short description doesn't really make Keybase justice. The whole project is much grander.

azag0··on Uber hit by legal setback in Europe
Prague has Liftago [0] (from English "lift" and Czech "tágo", colloquial for taxi). It basically unites licensed taxi drivers. Payments are processes by Liftago. Works very nicely.

I don't see a reason why a licensed taxi company couldn't work as Uber on the outside. (Liftago does.)

[0] https://www.liftago.com/

azag0··on French election: Macron defeats Le Pen
In line with her being (at least publicly) less extreme than her father
azag0··on French election: Macron defeats Le Pen
Just read the wikipedia article on fascism for a start
azag0··on Introducing Surface Laptop
That kind of misses the point for school use. But yes, for personal use you're right
azag0··on Show HN: Kobble – Notes app that saves directly to GitHub
Especially when you can access notes on your own IMAP server with Apple Notes.
azag0··on Robinhood stock trading app confirms $110M raise at $1.3B valuation
Casinos do not make money on borrowing for gambling, but on gambling.
azag0··on Cormac McCarthy Explains the Unconscious
Thanks for reminding me about the corpus callosotomy. I think I've read about it at some point, and then it somehow merged with lobotomy in my mind, although it's of course almost unrelated. Do you have a recommendation for some good literature about the condition?
azag0··on HPTT: A High-Performance Tensor Transposition C++ Library
A tensor is any quantity that transforms in a specific way under rotations. Essentially, it is required that a tensor describing some process gives the same answer no matter from which point (literally) one looks at it.

Tensor fields are spatial functions whose function value at each point is a tensor.

azag0··on HPTT: A High-Performance Tensor Transposition C++ Library
The reason probably is that tensors (in math/physics) can be represented as multi-indexed quantities, which are naturally expressed as multi-dimensional arrays in computers. 0-rank tensors are scalars, 1-rank tensors are vectors, 2-rank tensors can be represented as matrices (but strictly speaking are not matrices), and there are no specific names for higher-rank tensors.
azag0··on Billionaire Mike Novogratz says 10% of his money is in Bitcoin and Ether
It saddens me that bitcoin's path towards a common payment network is so slow. I've always liked the technology (or the core ideas behind it), but its adoption is hindered by popular and factual association with illegal activities, and by the recent stagnation regarding scaling.
azag0··on It’s now illegal in Russia to share an image of Putin as a gay clown
Illegitimate should not imply illegal, because there is no fine line, and this kind of legislation all too quickly leads to non-democracy.
azag0··on JavaScript vs. Python in 2017
ad the last point: Isn't this perfectly fine in principle (minus the fact that Mypy is third-party)? Compilers in static languages also work only with the source code, in a way, as there is no runtime interpreter. So there should be no reason for type checkers on dynamic languages to require the runtime. Granted, this forces you to essentially write type-statically in a dynamic language, which might limit your expressiveness, but that's probably your point anyway if you do type checking. Now I'm not saying that Mypy is anywhere near this hypothetical situation. My point is that type checkers over dynamic languages should not need the runtime in principle. Conversely, the runtime should not need to do the type checking, for performance.
azag0··on Insect: a fast, repl-style scientific calculator
Would you expect a complex number as an output? I wouldn't, if someone didn't tell me that it supported complex numbers.
azag0··on What can Rust do for astrophysics?
I definitely encountered such issues in solid state physics. But they are very rare. The likelihood of a crash or an obviously wrong result is perhaps three orders of magnitude higher.
azag0··on The Wall Street Journal to Close Google Loophole Entirely
Obviously, this is too complex a problem to discuss here, so I'll make only a few points: (1) It isn't really relevant for my point about paying the publishers. If anything, IP protection makes my point stronger. (2) I'm not suggesting to abolish IP protection, because I'm not sure I'm right. That's why I said I believe IP protection is not needed. I know I cannot argue my opinion sufficiently. (3) My biggest issue with IP protection is that since there is no unambiguous definition of what IP is, all IP laws are necessarily too restrictive. Leading e.g. to the current craziness with patents. (4) Film crews out to be paid. There are different models of financing than copyright. Music industry got pretty far with the transition. (5) As for drugs, the governments should announce which drugs are needed, and when companies deliver such drugs, they should get a one-time payment. In present language, the governments would buy the copyright from the companies and release the recipes to public domain. It would be financed from health insurance.

Etc, etc. But again, I know there are holes in my reasoning.

azag0··on The Wall Street Journal to Close Google Loophole Entirely
No. The publisher wants their subscribers to be able to share the stuff they pay for with other people. If you use that feature to read for free any content they publish, you misuse it. Now, I am very much against any DRM, I don't even really believe that intellectual property should be protected by law, but I believe that content creators have legitimate (but not necessarily legal) right to be paid for their content. (If they want to have legally enforceable income, they need to find different schemes.) If you avoid paying, you're denying them that right. Again, I don't think this should be covered by law, but I also don't think it's fair.
azag0··on The Wall Street Journal to Close Google Loophole Entirely
How come this isn't culturally perceived in the same way as not paying for software or movies or music? I've read various reasons why people don't want to pay. That's fine. But then simply don't read it.
azag0··on Numerical Recipes: The Art of Scientific Computing
Can we stop calling it stupid? It's different. I prefer 1-based in Fortran where I deal exclusively with matrices, and 0-based in any more general programming.
azag0··on Lavabit Reloaded
What would be the point of that? That portion of the traffic is already encrypted if you do encrypted IMAP.
azag0··on Yes, organic farming will kill us all
Clickbaity, yes, but in an obvious way. The article is a response to a criticism, and the title conveyed that well. As much as I dislike click baits, I didn't mind this one.
azag0··on Hedge Fund Is Building an Algorithmic Model From Its Employees’ Brains
No one can think 100 years into the future, that's just ridiculous. Chaotic systems -- all real-world human systems on some time scale -- are unpredictable no matter how awesome you are.
← PreviousPage 5 of 6Next →