Better HN
topnewbestaskshowjobs
Log inSign up

CountHackulus

2,246 karma · joined Feb 1, 2010 (16y ago) · 627 submissions

HTML5 Game Dev Compiler grey beard Functional programming fan guillaumecl.ca
Submissions

comment 16y ago · link · parent

From the map it looks like all of Canada is Vitamin D deficient. Interesting, and a bit concerning. Maybe I should be taking more supplements.

comment 16y ago · link · parent

My favorite pointer trick is a simple one. I learned it when I had to implement it (in 64-bit) in a C compiler.

Simply, you can subtract pointers. Let's say you're walking a string from the front and from the back at the same time, and want to find the length of the substring. Well, you don't have to use indeces, just do this:

   int len = back_ptr - front_ptr;
You'd be surprised how often this crops up when you're using lots of pointer tricks.

comment 16y ago · link · parent

This is where tabbed browsing would shine. Open a page on wikipedia, open a bunch of links in other tabs, and by the time you're done reading the first page, all the others are loaded. Rinse & repeat.

comment 16y ago · link · parent

My favorite take on that one is more for compiler and embedded folks:

There are 1 kinds of people in this world. Those who know how to save bits. The rest are the default case.

comment 16y ago · link · parent

This is fantastic news, and with the new changes in Maemo PR1.3, any N900 can dual-boot with MeeGo 1.1. No need to wait for compatible hardware to try out the handset UX, it's here now!

576.

Sexism on the Internet is a Gray Area(regreteverything.tumblr.com ↗)

3 points · by CountHackulus · 16y ago · discuss

comment 16y ago · link · parent

I had a job with exactly the dev environment you're describing (plus an HPUX box and a Solaris box), and it worked quite well. Sadly we were stuck using Visual Studio 6 in Parallels for development, but otherwise it's not a bad idea.

comment 16y ago · link · parent

I'm also in Toronto, getting ready to vote, and as another Torontonian friend of mine remarked, just like every other time, we're going to end up with either an insufferable bureaucrat, or a rodeo clown. I look at Calgary with envy.

comment 16y ago · link · parent

Just a nitpick, but the article didn't explain how this piece of intel gave them a big strategic advantage, it just explained that they got this piece of intel.

Had to look this up on Wikipedia for a more thorough explanation.

comment 16y ago · link · parent

I'll have to agree with the D comment. As someone who actually writes in D (for fun), I felt that it was more like a checklist for D than a wish list for Go. Though yes, I will concede that Go + those changes != D.

Unfortunately, the Cheez Whiz ponies aren't implemented yet, but if D ever hits 3.0 maybe it can be pushed into the spec.

comment 16y ago · link · parent

So basically it looks like it's going to be a package manager on a unix-like system with a pretty front end and review from people I don't care about.

comment 16y ago · link · parent

If you're interested in reading about more of these, and how they work I'd highly suggest reading the book Hacker's Delight by Henry S. Warren[1]. I know that I've used more than a few of the tricks in my day-to-day work.

[1] http://www.amazon.com/Hackers-Delight-Henry-S-Warren/dp/0201...

comment 16y ago · link · parent

> Windows was always consistent across Dell, HP et cetera.

This is so very far from the truth. Different OEMs ship with different patches, and some have custom drivers written, or "management" software that replaces key windows applications. If you've ever tried to write a game for Windows you'll know that once you get to testing, you'll find a ton of just plain strange setups that make no sense.

You are however quite correct in saying that differing software is the key issue here.

comment 16y ago · link · parent

This is great, but would be even better with Git integration. To have a visual representation in vim of my git branches would be glorious.

comment 16y ago · link · parent

It's an extremely popular and durable truck, and yet in North America we don't get to have it. Blame it on people wanting bigger and comfier trucks instead of real workhorses.

comment 16y ago · link · parent

I can see this helping very much with rapid testing of new scheduling ideas.

With good testing tools, development becomes much easier.

comment 16y ago · link · parent

The IBM System Z also has a crypto coprocessor. It's pretty neat stuff if you ask me.

comment 16y ago · link · parent

> - hygiene (appropriate glove changing, mask, tool use and sterilization). The most obvious things I notice are whether tools are coming out of sterilization bags and being placed on a sanitized surface. Does the dentist return a tool that's been in your mouth back to the sanitized surface?

Just for clarification, that tool SHOULD be going back to the sanitized surface correct?

comment 16y ago · link · parent

While in pac-man you can see a very clear main loop, where there's a target of a whole bunch of jumps back, it's interesting to see that Q-Bert doesn't seem to have a main loop at all and seems to be written in an event-based style.

These are really interesting visualizations, wish I could see visualizations of modern 4K demos like this.

comment 16y ago · link · parent

Actually, that IBM research went into a lot of products including System Z that can be configured to have several processors dedicated to XML parsing. The results are really impressive: http://www-03.ibm.com/systems/z/os/zos/features/xml/gxla1per...

comment 16y ago · link · parent

I agree, I can't believe they missed out on QtCreator. With its Vim mode and excellent autocomplete support it's my current IDE of choice.

comment 16y ago · link · parent

It seems that the authors of the paper are implicitly suggesting that speed limit should be lowered across the board.

How about we use that time and money and use it towards better driver education. Something more than a 20 questions test and 10 minutes in the car with a tester would be a good start. Maybe some sort of forced driving school?

Then, when everyone's better educated, we can raise the speed limits to reasonable levels and still have less accidents.

comment 16y ago · link · parent

And you thought ice on wings was a problem now, de-icing would be an absolutely crucial part of this system. If any one hole is even partially obscured, the balance between both sides is off. Clearly this is computer controlled and can be compensated for, but it seems to me that there's quite a few problems to overcome before it comes back to the mainstream.

comment 16y ago · link · parent

What you're proposing there sounds a lot like the Xnet in Cory Doctorow's book Little Brother [1]. But I do agree with your comment that it's a sad commentary about the state of government and regulation, that a private network like this sounds like a pretty good idea.

[1] Available for free straight from Cory Doctorow: http://craphound.com/littlebrother/download/

comment 16y ago · link · parent

Can't you just do this in Digg v4 by following people who share physics stories? I don't really understand what the point of this is.

comment 16y ago · link · parent

A 1-approximation is an approximation within a factor of 1. Basically that means that the solution is nearly exact. A 2-approximation would be no more than twice as bad as the optimal solution, and an n-aproximation would be no more than n times as bad as the optimal solution.

This is a common thing to use in randomized or approximate algorithms. For example, solving min-cut by assigning to 2 sets randomly is provably a 2-approximation.

comment 16y ago · link · parent

Having personally used it to brush up on my calculus and differential equation skills, I have to agree that it's money well deserved. Google is saying that the $2m will go towards translating the core videos into other languages, which I think is an excellent move. If this can help students in English speaking countries, why not others?

comment 16y ago · link · parent

Pasting in some code and blog posts I had lying around was pretty eye-opening for how terrible qwerty was for me.

What I think would be really interesting however would be to dump the results of a keylogger with a weeks worth of data into it. Would definitely be more accurate, and maybe interesting to see where my hands spend most of their time during the week.

comment 16y ago · link · parent

The search keywords is the main reason I can't get used to Chrome. After years of typing g <search> or wiki <search>, I'm having a lot of trouble readjusting.

comment 16y ago · link · parent

I think the author is forgetting that IE used to run on Mac OS a long time ago. Before Safari came out, or was any good, on MacOS you had the choice of either Netscape, IE5, or Opera, and honestly, IE5 was the best of the bunch at the time.
1
1718192021