Better HN
topnewbestaskshowjobs
Log inSign up

nmrm

534 karma · joined Mar 2, 2014 (12y ago) · 299 submissions

Submissions

comment 12y ago · link · parent

> Anarchocapitalism... in practice opting out of all the existing laws except the obvious ones most people won't have a problem with.

This sounds, if anything, less realistic than the OP's proposal.

It's also completely vacuous... which ones are obvious? The process of finding a sufficiently acceptable set is called politics.

comment 12y ago · link · parent

You have it exactly backwards.

McCarthy is not ancient history, and Marxism is still viewed mostly met suspiciousness and ridicule in the us.

No one in the US and in their right mind would claim to be Marxist in order to fit in our due to social pressure. If anything, the exact opposite.

comment 12y ago · link · parent

> If someone doesn't like the political system, then you're acting immorally and violently by forcing them to abide by it.

Do you really mean this? It seems completely unrealistic, and is just the flip side of the parent's comment.

I don't know of a single political system in the entire world which allows residents to opt out of its legal system, and nor should they.

Maybe you mean something rather specific by political system and I just don't understand what you're saying?

comment 12y ago · link · parent

Alright. This also seems more in-line with the type of work the people involved in the study were doing (episodic). Thanks for the perspective.

comment 12y ago · link · parent

> the few days’ wages they sometimes earned from episodic work with logging or oil companies.

$100 is way less than "a few days' wages" for most people in the US/EU, right?

comment 12y ago · link · parent

> Pure functional code just might outsource shared mutable state to an external database.

There's an important distinction between essential side-effects and inessential side-effects.

Some data you have to store in a database is an essential side effect.

Modifying iterator or flag (e.g. bool isOpen) etc. is a non-essential side effect.

Transactional semantics are probably part of the story for the former, but the author was talking about the latter.

comment 12y ago · link · parent

This is essentially describing a "process".

Except instead of emphasizing team-level details, it calls for an emphasis on code-level details. I really like this idea.

comment 12y ago · link · parent

This SO post does a decent job and answering this question:

http://stackoverflow.com/questions/2672791/is-functional-gui...

It's also worth noting that frameworks such as Java's Swing are somehow functional in their architectural style, if not in their implementation.

comment 12y ago · link · parent

Perhaps. But being "on call" 24/7 to deal with emergency situations should not never be an implicit expectation.

comment 12y ago · link · parent

The crucial factor here is that the CEO wanted him to be available for support outside of working hours, beyond the scope of his contract. In fact, beyond the scope of any legal Belgian employment contract!

Your argument seems to be that since the employer is giving him time to find a new job, the employee should work beyond the scope of his contract.

I don't think this holds up. First of all, I doubt this is 100% altruism. Destroying morale in a start-up can destroy the company. But even if it is completely altruistic, altruism on the part of the employer doesn't need to be reciprocated. (edit: added the two paragraph above before parent's reply, I think?)

After all, "Employment is a transaction of money for work, not a marriage".

(fwiw, you shouldn't have been downvoted.)

comment 12y ago · link · parent

It looks like there's at least some administration involved in the assignment. See the notes section of this table: http://en.wikipedia.org/wiki/List_of_Internet_top-level_doma...

For instance, if you register for .wed and take longer than 2 years to get married, both your fiance AND your registrar will be angry with you.

comment 12y ago · link · parent

I found a full(?) list of gtlds as well as other "top-level suffixes" here: https://publicsuffix.org/list/effective_tld_names.dat

I found this via the Chromium source code (search term gtld). Specifically,

https://code.google.com/p/chromium/codesearch#chromium/src/n...

253.

Mozilla Public Suffix List(publicsuffix.org ↗)

1 points · by nmrm · 12y ago · discuss

comment 12y ago · link · parent

Sounds like it's time to found a new nation-state. National exports will include whatever I happen to sell on Ebay that year, and millions of dollars worth of domain names :-)

comment 12y ago · link · parent

> I've always been interested in how much math various careers use

> ... there are ~1000 subcategories of computer programmers.

I'm curious: what about other careers? Are there fewer categories? Do they all do the same type of math? etc.

comment 12y ago · link · parent

> but having multiple contexts is even better.

Given the investment necessary to make this jump, I believe that the benefit outweighs the cost for most.

comment 12y ago · link · parent

> when I program Haskell, Agda, Isabelle/HOL, or Coq.

That's fair. Although Haskell is a bit of an odd man out in that list, both in terms of its nature and in terms of its typical use case.

> That being said, depending on what sort of functional programming you're doing, a strong background in category theory or meta-programming can enabling (or not).

This is where the analogy between the two books breaks down. When you're using a functional programming language as a proof assistant, category theory can be helpful. But this is far less common than meta-programming.

edit: 2nd paragraph.

comment 12y ago · link · parent

Yes. But my more important point is that you can tach about these mappings in isolation, in the context of functional programming. No Category Theory needed.

You can teach about "different sorts of mappings" in just about any setting. In fact, that's kind of the whole reason Category Theory exists. So why teach the general result when all you care about is its application to functional programming?

comment 12y ago · link · parent

I think you misunderstood my criticism.

"Different sorts of mappings" is NOT synonymous with "category theory". Not even close. Heck, Euclid knew about "different sorts of mappings".

Most everything in Gamma et al is arguably useful for everyday programming in Java. Maybe 5-10 pages of MacLane is useful for everyday programming in functional languages.

Unless by "Category Theory" you mean "5-10 pages of MacLane", Category Theory -- on the whole -- is a horrendously inefficient way of teaching about "different sorts of mappings useful in functional programming."

Unless you want to use functional programming as an environment for doing pure mathematics, there's no reason to actually study actual Category Theory.

comment 12y ago · link · parent

> Abstract algebra and category theory are likely relevant, especially for metaprogramming.

In general, the whole "oh yeah CS people should know some category theory and abstract algebra" is pretty hilarious.

First, it's a bit like saying "oh yeah CS people need to know the undegraduate basics and also the generalization that most mathematicians don't encounter until a couple years into grad school."

Second, most people who say this really mean "a conceptual grasp on different types of morphisms is useful". But that's like saying you need calculus in order to drive a car; or, in the case of categories, it's like saying you need two semesters of real analysis in order to drive a car.

Why not just say "knowing about different sorts of mappings is pretty useful in functional programming"? Knowing how this generalizes to more abstract mathematical objects is totally unnecessary.

comment 12y ago · link · parent

This was a particularly interested/relevant excerpt from Wells. I think of the open source ethos as one small example of what he's calling for in the second paragraph:

I object to this simplified classification of mankind into poor and rich. Of course there is a category of people which strive only for profit. But are not... people in the West for whom profit is not an end, who own a certain amount of wealth, who want to invest and obtain a profit from this investment, but who do not regard this as the main object?...

During the past few years I have been much engaged in and have thought of the need for conducting propaganda in favour of Socialism and cosmopolitanism among wide circles of engineers, airmen, military technical people, etc. It is useless to approach these circles with two-track class-war propaganda. These people understand the condition of the world. They understand that it is a bloody muddle, but they regard your simple class-war antagonism as nonsense.

comment 12y ago · link · parent

The author concludes that he made a very modest profit, which only counts as a net loss if a one-time fee to Paypal is counted.

Is there a way to put money into a Zidisha account without paying processing fees? What's the cheapest way to put money into a Zidisha account?

On the lender's end, I think about microfinance more as a "renewable donation" than as an "investment". So, it would be nice if 100% of the donation went to the operation of the charitable organization or the charitable act itself.

edit: less ambiguous question.

comment 12y ago · link · parent

This was absolutely fascinating.

The use of Microsoft's own dictionary to pin down definitions was particularly interesting.

I'm no Microsoft fan, but I have to agree with the general sentiment that this use of dictionary definitions is a bit absurd.

comment 12y ago · link · parent

Overall, the presented example demonstrates that anyone -- including and perhaps especially salesmen -- can write a god-awful sales pitch if they don't understand their audience.

The Unix book states its value in the title (if you don't have a general notion of what processes are or why they are important, you're probably not in the target market), and establishes an ethos of trust (by making specific and concrete statements about its contents) while addressing the most common logical hang-up of would-be buyers ("is this yet another book a crappy introduction to the topic? Will it teach me anything I don't know?")

The Unix book, contrary to the author's opinion, is an excellent sales pitch. But it's aimed at a technical audience, not the average consumer or a salesman.

comment 12y ago · link · parent

> Which claim is that, exactly? A

"This difference in how syntax is understood actually presents a barrier to programming for modestly trained mathematicians, who would otherwise be expected to excel."

> And are you implying that the author's original solution is more indicative of real programming?

Well, neither is... but yes, overriding == or .equals is somewhat common.

> when accessing the value of "b" for the first check, b is mutated such that the next check will return a different value.

The difference is that you could easily imagine a sane example where x == y != x === y, whereas it's hard to imagine a situation where I would want to override get (or ==) with a method that mutates the requested variable.

> The == vs. === issue is the part that's actually irrelevant, it served as a red herring.

For the claim re: syntax and compatibility with mathematician's expectation, it's exactly the other way around.

FWIW I feel the quoted claim re: syntax claim is interesting, whereas the contents of the article (summarily, "you can override == or .get and cause crazy stuff to happen") is unsurprising and kind of silly to most programmers even moderately experienced with OOP in dynamic languages (for the reasons given in this post and others -- everyone knows about it, it shouldn't take 11 days to figure it out, and in practice no one does purposefully obscure stuff like mutating values when == or .get is called).

edit: grammar

comment 12y ago · link · parent

If a == b iff a === b, then == ~ ===. If == and === are different (which they presumable are, because otherwise we would only use one symbol) then by definition there exist counter-examples of the thing you were trying to _always_ satisfy.

In other words, it would never even occur to a mathematician to make your mistake...

More to the point, a mathematician wouldn't assume that some arbitrary predicate that you are allowed to define at will behaves the same way as a system-defined equivalence operator.

Edit: Added last paragraph and readability changes. Also, ~ is another symbol for equality, this time equality over binary relations.

comment 12y ago · link · parent

The postscript is irrelevant to the claim made in the original post on this thread. It's a conflated example and not indicative of real programming.

if "get" returns different values when called multiple times within a single expression, one of two things must be true: * Someone's overriding "get" with a mutation to the variable. In all but the very rarest of circumstances, that someone should be publicly shamed. It's a nice hack for the purpose of the article, but not real code. * there's some very fine-grained concurrency. This case is irrelevant to the OP's claim because concurrency of this sort is very likely a fundamental characteristic of the system at hand, and never an artifact of the language.

comment 12y ago · link · parent

> If anything, mathematicians are incredibly used to overloaded equals operators.

That's my point. The == sign meaning many things is unsurprising (and key to this "hack"), whereas explicitly using two different symbols for equivalence in the same expression is a huge, glaring signpost to pay attention.

comment 12y ago · link · parent

>This difference in how syntax is understood actually presents a barrier to programming for modestly trained mathematicians, who would otherwise be expected to excel.

Although this is true in general that syntax can be a barrier to entry, the article provides a particularly poor example. If anything, the article demonstrates how mathematical training is good preparation for many pitfalls of programming.

Mathematicians are used to working with various equivalence relations, even in the same context. So if a modestly trained mathematician saw == and ===, she would immediately ask "what is the difference between these two ER's?".

And then when she finds out the essential difference is that you can override ==, it would be clear that all bets are off.

I can't imagine any mathematician taking more than a few minutes and a google search -- let alone 11 days -- to figure out this loophole.

comment 12y ago · link · parent

> do we see the same trends in that there is a high-level in Mathematics where new theories are being created but a lower level where a large amount of people use tools to apply these new theories?

Definitely.

If you allow more longer-running examples, this is exactly the situation of calculus. The Calc I-III that many use regularly is the application; Real Analysis is the theory. Ditto for any "applied" sort of math you can think of (stats, crypto, machine learning, etc. -- all basically just use theorems which are the "abstract interfaces" to pure mathematics.)

> we never fully mastered teaching how to come up with abstractions and new models

And we never will, as long as the human race continues progressing :-)

1
678910