HNHacker News
TopNewBestAskShowJobs

loqi

72 karma · joined June 26, 2011

submissionscomments
loqi··on Nuitka: a Python compiler
Might want to take "somewhat faster" with a grain of salt. I just tried it on a smallish program (CPU-bound, mostly string operations) and got a 20x slowdown.
loqi··on Java Doesn’t Suck
When is quicksort not quicksort? When it's not in-place: http://augustss.blogspot.com/2007/08/quicksort-in-haskell-qu...

I love me some Haskell, but this particular example is kind of a bait-and-switch.

loqi··on Object Oriented Programming is Inherently Harmful
Defining an instance of "concatenable" (eg, Monoid) for some type in Haskell is pretty much isomorphic to overloading some free function (or operator) on some type in C++. It's the same "amount of polymorphism" either way, namely ad-hoc polymorphism.
loqi··on PostgreSQL vs. MS SQL
RFC 4180 is close enough for me.
loqi··on Urbit: a personal cloud computer
It's been sorta mentioned elsewhere on the thread, but there is another (IMO simpler) mathematical intuition behind 0:1 :: false:true that doesn't involve any lambda fundamentalism. It's the algebraic analogy disjunction:conjunction :: addition:multiplication :: union:intersection :: ... which also turns up pretty often in computing.

For instance, if you've got anything like regular expressions, then you've got something with a structure where the "unit" (trivial match) is an identity for sequencing, and the "zero" (failed match) is an identity for disjunction and a zero for sequencing. It's not exactly a formal argument for preferring booleans to loobeans, but a failed regex match sure feels like a "false" to me.

I don't doubt that it's not worth changing at this point, but don't throw the semiring baby out with the lambda bathwater.

loqi··on Urbit: a personal cloud computer
> My feeling is that this statement translates fairly directly into "all user data is available to any corporate entity or state security agency for any purpose"

Speaking as a semi-informed bystander who's been following Urbit for a while now, it certainly seems like one of the problems it's trying to solve is the typical notion of "user data" as something controlled by third parties. Eg [1]:

> Where is Joe's financial data in mint.com? In, well, mint.com. Suppose Joe wants to move his financial data to taxbrain.com? Suppose Joe decides he doesn't like taxbrain.com, and wants to go back to mint.com? With all his data perfectly intact? [...] Imagine the restfulness of 2020 Joe when he finds that he can have just one computer in the sky, and he is the one who controls all its data and all of its code.

[1]: http://unqualified-reservations.blogspot.com/2011/10/persona...

That said, the current implementation has been explicitly called out (in past incarnations of the docs, at least) as not-remotely-trustworthy with sensitive private data.

loqi··on Urbit: a personal cloud computer
Would you use software from some anti-gay-marriage person? Do these types of policies sound at all pathological to you upon further reflection?
loqi··on A SWAT team blew a hole in my 2-year-old son
And yet we keep voting for candidates who support the drug war. This kid's blood is on our hands.
loqi··on Call me maybe: Elasticsearch
I don't, except to note that bad presentation is way more annoying when paired with high-quality content. If it was just about anyone else, I'd have closed the tab.

If enough people complain this time, maybe I won't have to waste a couple minutes clicking "Inspect Element -> display: none" on all the animated junk before reading the next article.

loqi··on Those Who Say Code Does Not Matter
let nan = 0.0/0.0 in nan == nan
loqi··on A guide for programming in style
It's a shame there's no accompanying rationale for any of these (cf. Google's C++ style guide [1]). Seems like a real challenge to maintaining relevant guidelines when change invalidates their underlying assumptions.

[1]: https://google-styleguide.googlecode.com/svn/trunk/cppguide....

loqi··on Unpythonic Python
In the generator case you can define a poor man's let like this:

    def let(x):
        yield x
And use it by "iterating":

    ...
    for x in range(1, 101)
    for divisible_by_5 in let(x % 5 == 0)
Still not as nice as having actual syntax for it.
loqi··on Python 3.5 to Ship with Matrix Multiplication Operator
I'd love to see it used for partial application - f@a instead of functools.partial(f, a). If wishes were better functional programming support in Python...
loqi··on The less Americans know about Ukraine’s location, the more they want ...
Yup. No Ukraine on my globe as a kid in the 80s, just "U.S.S.R.".
loqi··on Why Don’t We Have a General-Purpose Tree Editor?
Assuming one agrees that filesystems map really well to that kind of GUI in the first place. It's not obvious to me that they do.
loqi··on AT&T Exec Calls Netflix’s Reed Hastings “Arrogant” For Net Neutrality Post
I've been told that credit card companies simply forbid this sort of thing as part of their contractual agreements with merchants. Comcast appears to have similar leverage, so I imagine they would do likewise.
loqi··on Attorneys for Barrett Brown want case on linking to hacked material dismissed
...for certain values of "us".
loqi··on The toll of the anti-vaccination movement, in one devastating graphic
This is good advice, but it is sometimes difficult to tell whether or not expert opinion actually exists.
loqi··on Why You Should Never Use MongoDB
While we're dreaming of database ponies, I'd love to see this taken even further - a database that lets you register queries (read-only sprocs) in a language that allows specifying worst-case asymptotic run-time. (Eg, "this should be logarithmic in the size of table foo".) The database would be responsible for establishing any indexes needed to meet the requested performance bounds.
loqi··on [dead]
https://en.wikipedia.org/wiki/Parable_of_the_broken_window
loqi··on Area 51 'declassified' in U-2 spy plane history
Indeed. I don't see how we can even get a reasonable bound on the exponent of P(alien life). That kind of uncertainty behaves counter-intuitively - multiplying it by the size of the universe leaves it essentially unchanged.
loqi··on Comments in JSON
Since I too lack the lofty requisite background for it, I'll just let Mr. Crockford do the job the for me:

> The reason to use semicolons is because coding rigor tends to produce significantly better software.

loqi··on Bitcoin ruled illegal in Thailand
My understanding is that drugs are expensive mostly because of the risks involved in drug trafficking. I doubt you'll see the same kind of risk premiums in a bitcoin market.
loqi··on Why Does Talking About Creepers And Harassment Make People So Angry?
Upvoted for the concise answer, and for having the perfect handle under which to post it.
loqi··on Posting to HN is like exposing yourself to the eye of Mordor
Perhaps nothing perfect has yet been posted?
loqi··on Ask HN: What gets you out of bed?
100mg of caffeine (half a nodoz) taken 30 minutes before I need to get up. I set alarms for both events, but rarely need the second one.
loqi··on Go 1.1 is released
> Writing a language feature is different than writing an application

True enough. But libraries can easily tend toward either of those extremes. And any obstacles to library development will eventually become obstacles to application development.

loqi··on Buzz Aldrin: Get to Mars within 20 years
> It's not going to be the least bit inspiring to send people to Mars and plant a flag, or ride around in a rover.

Uhh... it would definitely be at least a bit inspiring.

loqi··on A taste of Rust
Yup, and parens also allow comments.
loqi··on Adam Smith Hates Bitcoin
It's hard to design a proof-of-work scheme that is both secure and performs "useful" work.
← PreviousPage 2 of 3Next →