HNHacker News
TopNewBestAskShowJobs

_sh

614 karma · joined February 25, 2009

submissionscomments
_sh··on Clamping Down on High-Speed Stock Trades: US, Canada, European regulators
Interesting question. What if HFT algorithms become so efficient they are able to easily out-compete human trading decisions, such that humans exit the system altogether? What if the stock exchange becomes exclusively HFT algorithms competing against eachother on behalf of large funds, such that being a 'trader' is all about which fund to put money into (which algorithm suite to back)?

In such a thought experiment, what if the algorithms discovered more money could be realized by trading on a vector different to 'the current/future worth of a company'? Say a genetic algorithm determined that whether the share price ended the week's trading on an odd number rather than an even number is more important for predicting the future direction of the price on Monday. In the world of genetic algorithms, stranger shit has happened. What impact would this have?

I don't know much about trading, particularly HFT, so I don't even know if this is possible or realistic. I do love thought experiments though, and believe that HFT algorithms are currently trying to predict human responses to market events and act accordingly. Just wondered what would happen if they dominate a market such that human influence is negligible. So yeah, interesting question.

_sh··on “I hate almost all software” — Ryan Dahl
Hear hear! As a software developer, my trade is a ghetto awash with all manner of amateur-hour charlatans and language silos that are tantamount to pistol-whipped lock-in (I'm looking at you node.js). If you take a step back, the entire ecosystem of 'software development' is a chattering tower of Babel, all sound and fury, signifying nothing.

Programming languages, their frameworks, their libraries, their petty concerns are a mere vanity folly, riddled with re-invention, abstraction arcana, and deus-ex-machina hoopla. We have lost our way, straying so far from the path of the UNIX philosophy such that I must now 'whole-stack' an application instead of using the pipe character. A pox on the whole damned lot of it!

Some days I just despair of all the time I've wasted bustling and jostling, crushed by the sweaty masses in the ghetto. But if I'm honest with myself, I must confess I love it too. I love my programming languages, my libraries, the eight different ways I know to full-text search, to regex, to parse, to lock, to async. I love the smell and heat of the coal-face, the futility of it all. Stockholm Syndrome indeed!

_sh··on Metro
Obviously I meant 'Steve Jobs knew how important regions were'.

In a semi-related matter, does anyone know of the algorithm Bill used to draw RoundRects 'blisteringly fast'? http://www.folklore.org/StoryView.py?project=Macintosh&s...

_sh··on Metro
The 'regions' used in QuickDraw are an amazing (for their time) data structure, a testament to the genius of Bill Atkinson. I strongly recommend reading the patent to see how cool and useful they were to the original Mac windowing system (http://patentdetails.patenttools.com/patent/04622545?searchi... click on the 'download pdf' link in the top left).

Steve Jobs know how important regions were: http://www.folklore.org/StoryView.py?project=Macintosh&s...

_sh··on Brendan Eich on Ecma TC39, JavaScript.next, and Google Dash
The reason you won't see a bytecode VM replace Javascript is because bytecode is either interpreted (slow) or JIT-compiled (complicated but faster). If you go for speed and JIT-compile bytecode, why not just compile your source and dispense with bytecodes altogether (as V8 has done)? This gives other runtime implementers the freedom to choose whether to create an interpreter, compiler, or some other execution mechanism, and the programmers the freedom to code at a high-level.

Bytecode, as distinct from object code, is on the way out. Consider Javascript a portable high-level object code and move on. If you want other languages, compile them to Javascript. Semantic affinity between source language and execution environment (e.g. is "0" false, as mentioned elsewhere) is an issue you'll need to address regardless of whether you're using bytecode.

Also, don't underestimate the power 'view source' had in making Javascript perhaps one of the most widely-adopted programming languages in the world.

_sh··on Google to announce "new programming language for structured web programming"
If I'm advertising a Ruby job and looking for skills with Ruby-specific tools, there may be a great Python programmer that could switch over but who doesn't apply

Solution: don't advertise 'a Ruby job'. Advertise 'a programming job'. What it is you really want in your applicant?

_sh··on SWIG author on the complexity of SWIG
I must say, as a developer of C++ bindings for Guile, a former Io dabbler, and TiddlyWiki user, I am impressed with this project.

Hats off to you sir. Oh, I also do the occasional motorcycle maintenance as well.

_sh··on Gmail.com being MITM'd by Iran using this certificate
An alternative to steganography is 'chaffing and winnowing'. Ronald Rivest describes the technique in this paper: http://people.csail.mit.edu/rivest/Chaffing.txt
_sh··on What is in your .vimrc
I work with multiple files a lot, so I'm always navigating between split screens and across buffers.

  " Split windows/multiple files
  " use <Ctrl>+s to split the current window
  nmap <C-S> <C-W>s
  " use <Ctrl>+j/<Ctrl>+k to move up/down through split windows
  nmap <C-J> <C-W>j
  nmap <C-K> <C-W>k
  " use <Ctrl>+-/<Ctrl>+= to maximise/equalise the size of split windows
  nmap <C--> <C-W>_
  nmap <C-=> <C-W>=
  " use <Ctrl>+h/<Ctrl>+l to move back/forth through files:
  nmap <C-L> :next<CR>
  nmap <C-H> :prev<CR>
Note these use the same 'hjkl' navigation keys.
_sh··on MonaOS: the OO hobby OS with a GUI, Scheme, browser, and more
I've followed mosh, the scheme shell of this project, for a while. Not only is it a very fast, full R6RS scheme, but it contains an code serialisation/motion library (fasl). This allows me to spin up hundreds of mosh instances and have a central agent send code and data to each instance for execution. Similar I guess to Erlang's code replacement mechanism (tail calls are a must), and much better than eval.
_sh··on Google Spending Millions to Find the Next Google
I wonder about this. Was Google itself an outlier? I don't think so. Indeed I'd say you probably could have discovered Google using similar metrics the article claims they are using, such as scholarly trends (but possibly not founder history).
_sh··on Andy Hertzfeld tells about the team behind Google+ Circles
There is an overlap: GWT itself uses closure.
_sh··on Scala: The Static Language that Feels Dynamic (Bruce Eckel)
Solution: move it to a library, like perl did with it's format syntax, and take it out of core.
_sh··on Show HN: invoiceto.me (Make a free invoice PDF online)
It's very simple. I like it. Unfortunately, I don't have a use for it.

As for in-place editing, Neyric's javascript library has something along these lines.

http://neyric.github.com/inputex/

_sh··on I don't learn anything on HN anymore, bring back the upvote count
Here's a thought: maybe it's time to close HN. That's right, close it down. PG said all along HN was a production experiment for Arc, so maybe it's time to evaluate the hypothesis and conclude the experiment.

All this hand-wringing about 'the community' and signal/noise indicates the membership has outmanoeuvred any means of wrangling it into some pre-conceived notion of 'quality'. For better or for worse, the thundering hoards of the internet have arrived and are drowning out the elitist clique. If that is bad for everybody, then it's time to shut up shop.

_sh··on Larry Page and Wall Street: Who needs who?
From the article's tone, it sounds like Wall St is miffed Larry doesn't need it as much as it would like.
_sh··on Explosive hypothesis about humans' lack of genetic diversity
If the Indonesian volcano reduced the human population to 1000-10000 breeding pairs, would it not also have reduced the chimpanzee population similarly?

It's an interesting hypothesis, but similar to the idea that the Yacutan asteroid wiped out the dinosaur population. If that were the case, how did other species survive?

_sh··on Don't Store Passwords, Generate Them When Needed
This page shows it in action: http://16s.us/sha1_pass/
_sh··on Show HN: NationBuilder, my startup just launched
'Nation-building' is one of the most positive activities a politician can engage in. I wish the politicians that govern me did more of it.
_sh··on A Quick Look at the Rust Programming Language
An line from a stacktrace:

  rt: d884:main:main: upcall fail '.t0 < 3u', ts2.rs:5
Yikes!
_sh··on Dudes, this is so not REST
As for your point 2, if you consider a REST resource as a collection of fields, you can update it without custom verbs:

  GET /resources/picture/orientation => 0
  PUT /resources/picture/orientation?value=90
REST is not so much about a simple API, but a scalable service. Custom verbs break scalability.
_sh··on C, The Beautiful Language
I feel C has more boiler-plate code than any other language I've used, including Java--especially when you consider header files, malloc/free, function call error code inspection, etc.
_sh··on This must be Google's Facebook clone. It sure looks like it.
As someone who has implemented operational transformation, I believe Google dropped it because it consumes a lot of network resources. If it became popular, Google would have to dedicate a fair chunk of infrastructure to it. Could they do it? Yes. But I believe they ran a little cost/benefit analysis on it at scale and probably decided they didn't want to continue with the wave model.

I am aware that some operational transformation is used in docs, however the usage scenario is different: collaboration is not the default use case and the number of collaborators would be smaller than in a wave, where the default use case is many waves with many participants.

_sh··on Dirty Percent
Please also add 'begs the question' to Ad-Hominem Block Pro.

Your post raises an interesting point, how did all these 'strawman police' become such a bunch of self-satisfied nazis in the first place?

_sh··on Show HN: Pen.io
Or TiddlyWiki?

http://www.tiddlywiki.com

http://news.ycombinator.com/item?id=3433 <-- Check out the low id, '1432 days ago'

Such an awesome thing.

_sh··on Why Stack Overflow Sucks and Participating There is Impossible
I'm in a non-US timezone, so all I get in most (software-related) IRC channels is crickets chirping. SO is like a searchable log of an IRC channel for when my question was asked and answered 4 days ago.
_sh··on Oxford announces new degree in Computer Science and Philosophy
I also did my BA in philosophy (epistemology and Heidegger) and my MS in computer science. I sell my philosophy experience as an ability to quickly understand and manipulate abstract concepts. I used to be pretty confident with this position, but these days I am less so.

I think the greatest benefit of my undergrad years haunting the philosophy department is that if I'm going to argue a point, I'm damn sure I'll have satisfied myself with my position, and have ready refutations for all counter-arguments I can think of. I don't comment much on web sites because the rigour of this far exceeds the two cents my opinion is worth.

My advice for anyone contemplating philosophy is this: learn to be good with analogies. Explaining abstract concepts is difficult and a good analogy (and here I mean a genuinely fitting one) goes a long, long way. If you spend a lot of time just thinking about stuff anyway, studying philosophy really gives you a lot of quite interesting stuff to think about: what is truth? Can we know something without expressing knowledge of it? If so, how can I know that you know something without your expressing it? A heady trapdoor indeed.

_sh··on How the iPhone mail app decides when to show you new mail
I don't have an iPhone, but I do have a question...

What if you've sorted the list (by sender, for example) so the 'natural' place for the new message is half way down your list? Will it determine a travel delta or something similar to determine whether to snap you to the message?

I'm guessing you can't sort your email.

I've run into this problem before (how to orient a view of a list that is updated in the background). Google, for example, partitions the list into 'all items' and 'new items' so if you've paged half way through the list, the incoming item is added to the 'new items' view and a visual indicator is made that a new item exists (cf. Google Reader).

_sh··on JavaScript Gesture Recognition for Touch Screens
Yes it is native, and no javascript bindings have been made for Android's webkit engine. It is packaged as a UI control that you overlay onto your application window and receive gesture events trhough it.
_sh··on JavaScript Gesture Recognition for Touch Screens
Android has a gesture recognition API in 2.2, implemented by one of the creators of the $1 recognition algorithm (the one implemented in the article).

The creators of 'one-dollar' released the next generation of the algorithm, the $N multistroke algorithm, and here's an implementation of it in javascript: http://depts.washington.edu/aimgroup/proj/dollar/ndollar.htm...

← PreviousPage 5 of 7Next →