HN user

mdcox

110 karma
Posts0
Comments33
View on HN
No posts found.

Just a heads up, your javascript doesn't work for me in Chrome because it's assigning to a global `history` variable. `window.history` is read-only so the js errors out. If you scope your function or rename the variable it should work. Nice challenge! Good luck!

Vim GIFs 10 years ago

Funny, Sublime was my gateway drug to Vim. It has "Vintage Mode" (which gives you vim keybindings) which I enabled just for macros since they are so powerful. After a month of going directly to insert mode I started accidentally picking up more and more random keys. Eventually I was so fast in normal mode it just didn't make sense not to use vim since everything else I use is in the terminal anyway.

Rust by Example 10 years ago

Not sure of the original intent, but when I started using Rust I used Rust By Example for finding snippets of things like file io where I get the gist but want to quickly see the pattern or involved parts of the stdlib.

The Rust docs are great, but having a starting point can be super welcoming so you aren't poking around blindly at different types that might be relevant.

I can't help but feel we're all underestimating boredom in this scenario. Yeah, you have to survive, but eventually things will be stable enough for there to be SOME downtime, with very few options for entertainment. When sanity is involved, boredom is a massive problem and sex might be one of the easiest forms of entertainment to arrange depending on what constraints were involved when planning the mission.

Humans have an amazing capacity for addiction. It may be easy to say no to micropayment games, but "products that engender addiction" is a very broad and fuzzy category.

Veering a bit offtopic, but does anyone have any pointers to important recent work on parsing? There are alot of papers out there and I guess I don't know how to sift through them. I've heard the "parsing is solved" line before, but so much of my time is spent doing some type of parsing that even incremental improvements are extremely interesting.

This is alot of fun. Would it be really difficult to be able to "blacklist" pages from the UI? I keep trying to come up with really disparate topics to find interesting connections, but everything is linked by "Knowledge".

You are the WM 11 years ago

Just switched to OSX for work, and i3 is the only part of my workflow I can't replace. I dearly dearly miss it.

This could be really cool, but I can also see it getting distracting and increasing oversight. The >= and <= signs look nice in Fira Code and Hasklig, but I worry I'd accidentally see them as > and < when debugging. Either way, I can't really try it because neither of those are usable in vim with iTerm2 and I'm not changing my whole toolchain just to try a font.

DeepDreamVideo 11 years ago

It's a combination of the fact that the source video takes place in a club with some flashes/strobe effects going on, and the fact that the algorithm looks at things frame by frame (more or less.) When it flashes it sees more/different details than when it is presented with a dark frame, and it interprets those as a dog.

Vim Colors 11 years ago

What bothers me isn't the isolated color scheme, but that without a ton of work (rolling it yourself?) the javascript in .js, .html, .erb, and any other file it might be in is highlighted completely differently.

A year with Go 11 years ago

I totally agree (except for the new-grad conspiracy.) I use Go whenever I need to do something small that requires a simple server or API interaction. Especially if it requires alot of concurrency. It's still a joy to use when I need to get something churned out quickly. The biggest thing it gave me though, was something new but accessible that wasn't Ruby, Python or JS.

It made me think about pointers, and gave me insight to just how complicated strings and growable arrays are under the hood instead of just being givens like in Ruby. It simplified concurrency and parallelization enough that I was able to dive in and learn the concepts which I was then able to use to dig deeper with other languages that don't have the nice channels/select built in.

I've come to realize that, in my learning at least, there are thresholds of information that people get stuck at, but once they cross you get a flood of improvement. Go allowed me to stop thinking only within the code context, but also in the machine context. Now a large amount of my side projects are in C or Rust, and even my day job writing higher level languages has benefited greatly from the new ability to understand the moving parts. It's not going to give you a compsci education, but it'll give you that intermediate step you need to wade into that territory.

The Disremembered 11 years ago

Just playing devil's advocate: that doesn't necessarily rule it out. You could argue that part of your memory is lost and so it doesn't effect your identity. Or more likely, when those memories were fresh they influenced behavior which created the new more relevant memories. That would explain personality and identity progression. I also kind of like the idea that people's identity becomes less malleable as they grow older, which would make sense if it's all based on "higher order"/more specific memories.

To pick up the basics of a language similar to one you already know? Sure. I used this site to write something in Nim just a few days ago.

Do I know the conventions or idioms? No. Do I know the advanced features of Nim? I sincerely doubt it. But I know Python, and seeing the syntax written out is enough for me to correct my informed guesses in how to write it.

I doubt I could use it to pick up Haskell or a language whose paradigm I was unfamiliar with though.

GopherJS 11 years ago

Do you mind me asking why? I was going to implement the protocol as an intro rust project, but Wikipedia and others called it obsolete so I ended up falling back onto the familiar IRC bot. My interest is still piqued however...

Hype and marketing can be great! It's empty hype with nothing to back it up that worries me. I don't think that's Gun, but the "throw buzz word" style marketing (especially if there are contradictions) instantly puts me on guard. If Gun solves a problem, then by all means get the word out about it any way you can!

Agreed. I read through the whole site and never saw the word "graph" until I came back and read this comment which puts me a bit on edge. Seems like a good idea, but when the marketing seems to imply a purpose defined via shotgun approach, I start to get wary of a possible hype machine.

A cursory skim leaves the impression of just how alone Haskell is on many syntactic choices (though supposedly with alot in common with "Merd".) I never took the time to learn Haskell, but it always looks beautiful on an aesthetic level, which differentiates it from the other loners in the list.

Can anyone point me to any papers/documentation/discussion on WHY certain syntax decisions were made? Many could have been arbitrary choices to match the constructs, but the way the community presents itself makes me think there's more to it.

This is really nice! Just built something quick with it and I find it way easier to work with than something like ncurses, though that might just be because I work with javascript alot. Sorta feels like a terminal based d3 in a way, though not as atomic. Not a huge fan of Node for terminal applications (I'd sooner use Go or Ruby), but this alone might make me use it for things people other than me will use.

Do you plan on accepting pull requests? I'd love to contribute to something like this.

It seems like those with functional programming experience either already understand monads or grasp it quickly. At the same time, those without it have an instinctual eye-glaze when shown Haskell, or a lisp.

Would it be better to use Python or Javascript which more people understand but still has that functional flair? Just an idea. Either way I look forward to reading it!