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

Going by the title, yes, that's (sort of) how Opera Mini works, but going by what he wrote, no, not really. He seems to be talking about browsers as servers on the client side, not turning browsers into glorified image viewers.

542.

Eschew "Experts," Follow the Curious(prolost.com ↗)

2 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

I work day to day on a compiler backend. It's used in an emulator (as a JIT), with the JVM (as a JIT), and with various static languages (as a static compiler).

You'd be surprised at the similarity between a JIT compiler and a static compiler with profiler feedback. Much of the optimizations are the same, and a lot of the code generation is the same. In fact, the biggest difference is just that there's a VM for jitted languages, but just a runtime for (most of) the static languages.

I will say however, that this book looks pretty decent, looking through the table of contents shows that it's not missing that many optimization concepts and is a good start for understanding how your compiler (JIT or otherwise) works. Understanding how your compiler works is a big step towards mastering a language.

544.

The Noob Guide to Online Marketing [Infographic](unbounce.com ↗)

3 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

Interesting business model here. They'll give you the program for $40, but charge you extra for the tutorials.

Still, for $40 how can you go wrong on a piece of professional software?

comment 15y ago · link · parent

While the article mentions MeeGo, the N900 in the video is clearly running Maemo. The article briefly mentions that Maemo support might be possible, but the video out and out proves it.

Going even further than that however, the maemo.org folks discovered that they're using Qt in the background, and so presumably, this could be ported pretty easily over to a Symbian device.

547.

Dynamic Language Support on the JVM(artima.com ↗)

7 points · by CountHackulus · 15y ago · 5 comments

comment 15y ago · link · parent

If you've ever watched Canada's Worst Handyman, you'll see that this kind of attitude is quite prevalent with them. Now I know that this doesn't give us causation, but it's a pretty strong correlation.

549.

Independent ISP Responds to CRTC's UBB Decision(dslreports.com ↗)

6 points · by CountHackulus · 15y ago · 3 comments

550.

AMD's CEO Dirk Meyer Resigns(anandtech.com ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

I find it odd that you should name Avatar as a movie appropriate to see in 3D. I find that Avatar had a ton of the problems that Walter Murch was talking about. It gave me a massive headache because often times the focus wasn't where I wanted it to be.

Tron on the other hand, generally didn't have this problem, there was huge depth of field throughout, and generally nothing too straining.

comment 15y ago · link · parent

Those rules are surprisingly similar to Isaac Asimov's 3 laws of robotics.

comment 15y ago · link · parent

Evented pretty much gets rid of the need for locking and critical sections.

How so? If I write two events that access the same data structure and both events fire at the same time (totally possible in a concurrent world), I still seem some sort of locking on that data to guarantee consistency.

You may not need to write the locks explicitly, but they'll be there at least implicitly. Personally, I'd rather control my locks (allowing coarser grain access) than letting the compiler try and handle it. Exception safety will mean that they'll either version the function, use a transaction, or not be able to coalesce accesses.

comment 15y ago · link · parent

That's a very interesting solution to the problem. Though as an avid yoyoer, I have to make the point that modern yoyos have solved this problem in an entirely different manner as seen here, in one of the more extreme examples: http://spyy.ca/index.php/pro

comment 15y ago · link · parent

The democoder in me loves this. Very well done, and an awesome effect.

comment 15y ago · link · parent

This is a lot like data backups. Your data isn't really backed up unless it's on at least 2 different kinds of media, and also somewhere offsite.

Using another iPhone for the alarm is the equivalent of putting keeping your backups in the same server rack and having the data centre burn down.

comment 15y ago · link · parent

Technically a story with 1 vote and 0 comments would have the highest ratio. But point taken, not much commenting on this. Likely because this story was posted on HN a few weeks ago, though I can' seem to find the link.

comment 15y ago · link · parent

As far as user experience goes, having a non-linear gas gauge is, for me at least, infuriating. My 94 Accord had a fairly linear gas gauge, I knew that when I got to 1/4, there was roughly 1/4 tank of gas left. Now, in my new Mazda 6, there's a definite non-linear effect, and have been surprised more than once by how little distance I get out of that last "1/4 tank."

I find it somewhat dangerous to have a non-linear gas gauge, especially at the bottom end if you're not used to it. Let's say I just drove 150km and used a 1/2 tank of gas, then I see a gas station and a sign that says that the next gas station is in 100km. Given that I've got a 1/2 tank left, I should have 1/6 of a tank to spare when I get there right? Well, no, turns out that it's cutting it really close. My gas light goes on when I'm about 10km away from the gas station. Not a pleasant experience at all.

I'm seriously considering doing some math can hooking up some sort of microcontroller to the gas gauge to undo the "calibration" done at the factory. Really wish there was some kind of bolt-in mod for this.

comment 15y ago · link · parent

I suppose this shows that the CIL generator for C# and F# are roughly equivalent. After the CIL it's the same JIT and runtime, so the difference would have to come from the CIL generators.

comment 15y ago · link · parent

Absolutely, I can't talk too much about what we actually benchmark, but real world applications are always used for benchmarking a compiler. Especially if it's a JIT compiler. Though it is in a repeatable environment with scripts and such to minimize variation and allow us to measure more accurately.

comment 15y ago · link · parent

I work in compiler development, and have worked on a C/C++ compiler. Let me first say that these side by side comparisons are excellent for pointing out the weakpoints in compilers, and showing where extra optimizations could be made, they are, as presented in this article, not very useful.

When's the last time you saw a program that was just a single function? In real production environments, you're going to be running programs with hundreds of modules, thousands of functions, and millions of instructions. Optimizations like inlining, partial inlining, partial redundancy elimination, and inter-procedural analysis become much more important.

When you're a compiler developer looking for more performance, the typical process starts with profiling an important benchmark (like SPEC2006) and looking at where the program is spending most of its time. Then you take a look at the offending code and see if it can be distilled down to one of these microbenchmarks. There you can decide how best to optimize this. Without this context though, these type of microbenchmarks are nearly pointless. They show some optimization that could be done, but who knows if it'll be worth it, or even make any sort of impact on the final performance of a production workload.

562.

Slow Coffee and Why It Matters(tearoroasted.com ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

Here's a link to an excellent hello world program using this framework: http://cpp-netlib.github.com/0.8/hello_world_server.html

564.

CPP Netlib is an embeddable HTTP1.1 server in C++(github.com ↗)

1 points · by CountHackulus · 15y ago · 2 comments

comment 15y ago · link · parent

I remember watching this with my family a long time ago. Always interesting to see what people will come up with. In the later years it really started converging to a few solutions, but it was always nice to see the really out of the box designs succeed or fail.

comment 15y ago · link · parent

This is a really interesting technique, and were I in charge of the build system here I'd try and implement something similar.

The code samples are particularly useful as you can see how best to adapt this to another version control system, even something draconian.

comment 15y ago · link · parent

This is a really simple algorithm that's been around forever in the demoscene. You can do fun things like make an arbitrary shape be the source of the flames. Here's a nice article from (the long missed) flipcode on how the effect works: http://www.flipcode.com/archives/The_Art_of_Demomaking-Issue...

comment 15y ago · link · parent

Well, there goes the (net neutral) neighborhood.

comment 15y ago · link · parent

I don't know if you've ever tried to uninstall the quicktime plugin for firefox to stop it opening mp4 files in quicktime. It's not easy, and it's far from trivial. There's many unrelated steps and it's making me seriously consider dropping iTunes for Foobar.
1
1718192021