HNHacker News
TopNewBestAskShowJobs

tokipin

1,062 karma · joined September 21, 2007

submissionscomments
tokipin··on Monads in JavaScript
> Or it does, and you miss it.

That's my point. Aside from my lack of amusement by Haskell's type system, I'm not making any moral or qualitative judgements one way or another. I'm talking about programmers in general. The parent's question was why monads are difficult to convey. My argument is that, in the first place, the pattern monads are DRYing is not obvious to people, and might not even be recognized as a pattern in the first place.

tokipin··on Monads in JavaScript
I'm saying that in imperative languages for loops are more "above the noise" syntactically and frequency-wise than sequential error checking is, at least traditionally. It's not as obvious that there is anything there to give a name to, and so without an underlying motivation, monads are quite a bit more abstract than a lot of other FP concepts.
tokipin··on Monads in JavaScript
I think it's because they solve a problem that people don't realize they have (and truth be told maybe they don't really have it), so the learning process has no motivation.

They solve a major problem that Haskell has (namely circumventing a type-anal non-strict compiler), so they're a big deal in Haskell, whereas in imperative languages straightforward code works just fine.

More to the point, compared to the case of for loops vs `map`, the use case for this kind of function chaining doesn't appear all that often (nor is it as syntactically localized as a for loop) so it's not as easy to abstract. I.e. the underlying pattern is not as pronounced, so it's not really recognized as a pattern/problem/something to DRY in the first place.

tokipin··on What part of speech is “the”? (2006)
I wager it's consensus that determines what sequence of words is considered "proper" or not. Personally I have very generous criteria for what a reasonable sentence is. Thought experiment: Reversed words of sequence the with but us for valid as count would that anything be to sentence valid a define.

When we're young we absorb language the way we experience it, in an informal and cultural way. I think in any attempt to categorize aspects of language this basic character has to be respected (which it is in linguistics, being fundamental to it, but which it isn't in e.g. English canon).

Accepting that one's language is actually a messy evolution-convolution of ancient languages is easier for some than others. :D

tokipin··on The Lonely End: in aging Japan, thousands die alone and unnoticed
At the moment of death you're having your last memories, so dying alone is like going into the abyss alone forever. Dying with people is like going into the abyss with that company forever. Or something like that. It could be even more subtle than this. I'm speaking psychologically of course. Replace the abyss with whatever.

This may seem odd in logical terms but it seems to be a common understanding, and it's found in movies, books, etc.

[edit]It might be analagous to children who don't want to fall asleep without an adult with them. They are scared by the darkness and don't want to go through something scary alone.

tokipin··on Three hundred programming interviews in thirty days
I don't think there's any relation. Some people may be nervous just because they are interacting with strangers, whereas they would have no problem with people they already know.

Personally I don't have nervousness/stress issues in interviews, but I've found that conversation screws up the analytical mode that I use when I'm programming. It's like how people say they don't like having their managers interrupt them in the middle of the day because they get taken "out of the zone." I can program or I can converse, I can't do both without screwing up both of them.

That's just my particular conundrum. People probably have all sorts of reasons (besides the possibility of them being bad at programming) for why they may have trouble in interviews.

tokipin··on Wolfram Language
the concept of "macros" in Mathematica doesn't really exist as its own concept because the whole system is based on rewriting structure. for example, the ReplaceAll function[1] which is commonly used in idiomatic code is basically an in-place macro definition and execution, yet it wouldn't occur to most people that it's anything special.

if you're trying to make a traditional macro, you would implement it as a function with the HoldFirst et al attribute.

an important thing to know is that ReplaceAll uses arbitrary structural patterns. it's not a simple "turn every a into b". you can say things like "turn every application of the symbol F on an even number into an application of G on that number divided by two".

    expr /. F[n_?EvenQ] :> G[n/2]
[1] https://reference.wolfram.com/language/ref/ReplaceAll.html
tokipin··on Wolfram Language
i think you're thinking that Lispification is some kind of goal for the language, but it's not. the lispininess is just one aspect of the language, which is why i think calling it a lisp isn't fair to Mathematica -- it's more powerful/abstract/general than that (in particular because everything is essentially quoted by default - though in their raw forms i suppose both lisp and Mathematica are essentially equivalently capable). the precise character of the lispy aspects of the language (eg the language not "really" having safe-locked closures) is imo just an implementation detail.
tokipin··on Wolfram Language
Mathematica has lisp essentially as a subset built on top of its rewrite system. In other words its rewrite system is so powerful that lisp can be naturally threaded into it.

In particular the symbolic nature of the language means that everything is first class, functions and function constructions ("functional programming") and expressions in general ("macros") being just basic cases.

tokipin··on FTC Officials Back Tesla’s Right to Sell Cars Direct to Consumers
> Why not?

i'd say it means the market isn't being allowed to work or even exist in the first place, which is the whole point of this discussion. 'going for it' is exactly what the establishments are trying to keep Tesla from doing.

tokipin··on The Killing of Osama Bin Laden
> Again, this was a very convenient outcome for the Obama Administration.

as jfb mentioned, this isn't an argument. you're thinking that it's a "motive," except that it's a motive to a crime you haven't provided any evidence for. you're skipping the only step that matters. nevermind that if there was any question, republicans would have made endless mountains of pop corn out of it like they have with the attack on the consulate in Libya.

tokipin··on Einstein: The Negro Question (1946)
any one of Einstein's contributions in his miracle year would have put him in the history books. to say his contributions to science have been exaggerated is incorrect. he really was that good, whether you like that fact or not.
tokipin··on World Cup Follow-Up: Update of Winning Probabilities and Betting Results
it isn't magic, but simply the fact that the language is "dynamically typed" (or more accurately, that the whole system works symbolically). the "magic" is due to its UI compositing system using the same exact semantics as the rest of the language (or rather, it is the same language). this makes graphics-making and UI-making super easy.

have a look at the Mathematica stack exchange[1] site to see more code. there isn't any contrivance there.

[1] http://mathematica.stackexchange.com/questions/tagged/graphi...

tokipin··on Supreme court: Warrantless cell phone searches illegal [pdf]
that would seem to be a similar argument to "if someone denies a police officer entry to their home, that means they're suspicious and therefore there is probable cause" which isn't valid
tokipin··on Netflix Orders New Children’s Show Based on ‘Magic School Bus’
nice! reminds me of the recent Reading Rainbow kickstarter :D
tokipin··on Nobody. Understands. Punctuation.
i need to add some pop here

https://www.youtube.com/watch?v=M94ii6MVilw

tokipin··on What the Head of Hiring at Google Doesn’t Understand About Skills
I'm not so sure about this. Maybe if you've graduated from a good school. I've known at least one person who graduated with a CS degree but didn't actually know how to program. There are many schools where students get by just by copying each other's homework and the professors never punish them for it. My own major (electrical engineering) at the school I went to was almost nothing but students like this. It's a systemic thing and way more common than a lot of people would think.
tokipin··on Can the Nervous System be Hacked?
The Ghost in the Shell universe explores these kinds of things.
tokipin··on World’s Largest Solar Array Set to Crank Out 290 Megawatts of Sunshine Power
i'm going to take a guess that the oil sector doesn't need any subsidies whatsoever, especially compared to renewable energy experiments
tokipin··on Rappers, Sorted by Size of Vocabulary
Just a note, those artists don't necessarily use all their vocabulary. Eminem for example clearly holds back on his vocabulary. Rap is as much an art as anything can be so there are all sorts of factors. Be careful what you might want to draw here other than curiousity.
tokipin··on It's Adventure Time
the show is often dungeons & dragons-y, so i assume it was in that context. regardless, you wouldn't use the jargon of "stats" when talking about real-life scenarios. and besides this altogether, there are countless examples. i just randomly picked two that i could remember. there's an entire episode ("All the Little People") that is a playful exercise in abstraction. but maybe "idea humor" has a better connotation
tokipin··on It's Adventure Time
The idea of "stats" is a gamer thing, but Jake is talking about "stats" as applying to real-life scenarios.

Then there's the idea that a robot is "doing a thumbs up" in some sense or another that doesn't get across through the physical realm. That's how I perceived it, aynyway.

tokipin··on It's Adventure Time
Besides the fact that the creator(s) are clearly geniuses, I think a big part of the awesomeness of the show is that those creators are abstract people. One example was when Finn (the human) suggested that they should pretend to be defeated by a tiny little army of little mushroom people because he pitied them and wanted to give them confidence. To this, Jake (the dog) said something like "no way man, it'll ruin my stats".

Or NEPTR's "You cannot tell, but I am giving a thumbs up." http://www.youtube.com/watch?v=qTTplK3kin8

In other words, the humor/atmosphere is much geekier than what you'd expect to find on a television show. The only other show I remember with this aspect is Futurama, except that Futurama is overt with its jokes, whereas Adventure Time has many shades of subtlety.

tokipin··on The Government is Silencing Twitter and Yahoo, and It Won't Tell Us Why
I think if Twitter was forced to shut down, a PR shitstorm of amazing proportions would erupt. There is no way the government would win that battle. And that's part of the point of civil disobedience: publicity.
tokipin··on Programming paradigms that change how you think about coding
Take this[1] for example. That's a regular Mathematica notebook. You can insert images (like drag & drop them from your desktop) directly into notebooks. It's actually very convenient for image processing. The same thing holds true for things like the graphical output of plotting functions, which retain their underlying vector data.

The symbolic paradigm isn't necessary for this, but it makes it easier. Implementation-wise these things requires less "special case-ing" than you would think because the symbolic paradigm in essence encourages your representations to be naked. Thus images, plots, etc are not "black box" items. They're structured data represented in the same language, but which the frontend happens to display in visual forms.

(Code itself is also data, except that if a symbol in the data has an associated transformation rule, that transformation rule is applied. This mechanism is how you make data do 'variables' and 'functions'. These variables and functions work more or less the same as they would in a common programming language, but the underlying mechanism is nothing but data transformations.)

[1] http://reference.wolfram.com/mathematica/ref/EdgeDetect.html

tokipin··on Vatican to Digitize 41 Million Pages of Ancient Manuscripts
personally i hope it highlights how arbitrary all the writings are.
tokipin··on Vatican to Digitize 41 Million Pages of Ancient Manuscripts
It's not as simple as that. Religion was part and parcel of those cultures just as it is in many cultures today. It's not just about the one or two overt cases that we know about hundreds of years later, but the fact that for every one of those people there were likely hundreds or thousands more whose voices were never heard, not because they were forgotten by history, but simply because they chose to remain silent.
tokipin··on Ask HN: Is it me or ...?
It sounds like you haven't encountered people who are good at what they do ("animals", as PG might say). Probably just bad luck or not enough good luck, or something else.
tokipin··on Coming Soon to Hacker News: Pending Comments
I think it does have this risk, not in the sense of deliberately driving users away, but simply the fact that the cost of posting would be much higher and engagement would drop as a side effect.
tokipin··on Ask HN: How do experienced programmers learn new languages?
Do one or two tutorials, then jump straight into a moderately-sized project. Google profusely but also don't be afraid of hitting the language's manual.

Perhaps most important is to not settle for code that you know is not ideal. If you recognize that a piece of code you've written isn't good, then improve it. If it's still not idea, improve it again. Keep iterating on it. This will necessarily involve focused learning. In fact I think this is the key to picking up a language quickly. But it does require that you not be mentally lazy.

← PreviousPage 4 of 21Next →