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 15y ago · link · parent

Very interesting read. Not sure that if the same summer camp experiment was held now, with properly raised children, that the outcome would be quite the same. There might still be some competition, but I doubt it would come to nearly murder.

comment 15y ago · link · parent

"The words Mozilla, Google, Sony, and Atari pretty much mean nothing." Not true!

  Google => Googol, 10^100
  Atari => A situation in go where a chain of stones only has 1 liberty.
  Mozilla => Mosaic killer + Godzilla
  Sony => Conflation of sonus (the latin word for sound) and sonny (young boy).
That of course isn't to say that this excellent article is invalid, just that he happened to choose all companies who's names do in fact means something.

comment 15y ago · link · parent

This is especially true of COBOL where PERFORM statements are like an internal subroutine ending with a goto. It looks like heracy when you first see how it was implemented 30 years ago. Arbitrary unions are pretty neat too but look like black magic to the uninitiated.

comment 15y ago · link · parent

I don't think it's ever been as clear as now that the patent system is broken. Everyone is suing everyone else, and if anything innovation just goes on in the background regardless of patents.

comment 15y ago · link · parent

The difference between this and Project Euler is that Project Euler is far more math focused. Once you get past the first couple dozen problems you're just looking for a math trick to make the brute forcing easier.

These challenges actually seem to test your knowledge of programming, not mathematical identities.

comment 15y ago · link · parent

Interesting that while this was a crazy idea at first, it's not commonplace in artic oil wells.

comment 15y ago · link · parent

That's really fascinating. The fact that they've found a neutron star to match the theory with observation is even better. I look forward to seeing the results.

488.

I'm mad as hell. How about you?(dylanratigan.com ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

Wish I had this kind of tool for my C/C++ projects.

comment 15y ago · link · parent

C++ -> D "Kludge" Java -> D "Too high level" C# -> D "Not binary compatible with C"

491.

Generational Garbage Collection in WebSphere V8(ibm.com ↗)

2 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

Exactly. I need something that'll let me move from linux, to AIX, to z/OS, to even RHEL on Z. Screen lets me do that. Tmux doesn't come close.

comment 15y ago · link · parent

Instead of cancelling Netflix, why not stick it to the people giving you prohibitive caps and switch to an independent 3rd party ISP. I switched from Rogers to Teksavvy (and later Teksavvy Cable) and have loved every second of it.

The best part is that the customer service and tech support people don't treat you like an idiot and don't just read their script and transfer you around when you say something not on their script. (Not bitter.)

comment 15y ago · link · parent

One problem with state machines is that they grow in complexity very quickly, and the tools that were given to most people in their CS curriculum don't help you manage this fast growth.

This certainly isn't the case in all CS programs. In my university we had a notorious class where we had to use Rational Rose RT to create a state machine representing some distributed system (usually a game like pacman, or cops and robbers), then we actually added C++ code to those states and transitions to make the system actually run.

There are of course always teams that decide to make a single state with a single transition holding all their code, but most people utilized nested states, history states, and all those "fun" things.

The course however was usually a nightmare as the version of Rational Rose RT we were using was ancient and unstable. Also, since this was supposed to simulate a real project, the requirements changed half way through the semester causing lots of swearing, lots of all-nighters, and lots of delivery lasagna.

You can still see "I HATE ROSE" and "ROSE SUCKS" etched into desks and walls in certain computer labs.

495.

Something Awful's Unintentional War Against Bitcoins(somethingawful.com ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

Care to back up that statement? Can you explain how objects and patterns in C++ make the design worse than objects and patterns in another language?

comment 15y ago · link · parent

If you really want to dive straight into the deep end, I'd recommend Modern C++ Design by Andrei Alexandrescu. But if you want just a gentle introduction to C++ I'd suggest The C++ Programming Language by Bjarne Stroustrup.

Both of these authors are staples in the C++ world and so their advice is usually worth their weight in gold.

comment 15y ago · link · parent

Since you're already using iTunes preview files, any chance you can make the songs in the list clickable to bring me to the iTunes store? Heard a few songs I want to buy.

comment 15y ago · link · parent

That's a pretty creative use of reflection, really liked it.

comment 15y ago · link · parent

They'll only eliminate compiler bugs because there is no compiler. Assembler, linker, and loader bugs will still be there.

comment 15y ago · link · parent

This is really interesting, but I'm sad that they skip over the step "convert to grayscale." There's a ton of ways to convert an image to grayscale, each with their own pros and cons.

How do you weight each channel? Do you convert to HSL and just use L? Do you instead use Lab? HSV? Do you do a global or local algorithm? So many questions!

502.

D/Objective-C Compiler(michelf.com ↗)

3 points · by CountHackulus · 15y ago · discuss

503.

Nespresso and the World Barista Championship(coffeegeek.tumblr.com ↗)

1 points · by CountHackulus · 15y ago · discuss

504.

Coroutines in D(octarineparrot.com ↗)

7 points · by CountHackulus · 15y ago · 1 comment

505.

Instruction Level Parallelism(altdevblogaday.org ↗)

3 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

This is a guide for C, not C-like languages. This does not apply fully to Objective-C, and even C++, especially C++11.

comment 15y ago · link · parent

Just a small nitpick. While the state of the art in x86 land might be 3GHz, the IBM Power chips and I think the Z mainframes too, not sure on that, have gone far beyond that speed.

POWER6 chips reached 5.0GHz in 2008: http://en.wikipedia.org/wiki/POWER6

POWER7 chips however have been clocked down to 4.25GHz: http://en.wikipedia.org/wiki/POWER7

comment 15y ago · link · parent

That sounds like PL/X[1] to me. That language will let you do things that REALLY aren't advisable on most systems like specify pointer sizes (per variable), specify address mode (arbitrary blocks, functions, nested functions, per module, whatever), specify registers for any variable. Oh an my favourite, when calling a function, you can specify an arbitrary global label for it to return to.

Or of course you can write as cleanly as possible, let the compiler do the lion's share of the work, and fix up what you need to.

[1]http://en.wikipedia.org/wiki/PL/X and http://c2.com/cgi/wiki?PlsLanguage

comment 15y ago · link · parent

I was thinking about this, and I think you're mostly right. There's a bit more that needs to be done, but some sort of expect builtin (name varies based on compiler) would help.

What I'm thinking is, he needs to factor all the instructions out into separate functions so that he stops hitting the optimization boundaries (or he may be able to override them with parameters to the compiler). Then, mark the hot paths with the expect builting.

One that's in, use profile guided optimization (again name varies based on compiler), to feed the compiler with more frequency information on the branches. Partial inlining (not sure if GCC has this opt yet) should take care of the rest.

As for the register assignment, well that's hard to get right while getting the instruction scheduling right at the same time. Profile guided optimization will help guide the global register allocator in the right direction, but it likely won't be perfect. Thankfully, on modern architectures, register to register moves are pretty much NOPs thanks to register files, short circuting, and out of order.

comment 15y ago · link · parent

What I do appreciate about this article is that it doesn't just give anecdotes, but actually quantifies and explains the problems. In fact it even explains why not to use anecdotes!

Seems like most of the tips here could be applied to all sort of problems, not just scalability, and I think that's probably what the author was going for. To show that scalability isn't some special problem that needs special solutions, but that if you think hard about it, and use data to back up your findings, then it's just like any other problem you want to solve.

Can't wait for part 2.

1
161718
21