Better HN
topnewbestaskshowjobs
Log inSign up

Flow

1,321 karma · joined Jul 11, 2009 (17y ago) · 690 submissions

Submissions

comment 12y ago · link · parent

This is exactly what you want: https://www.coursera.org/course/compilers

comment 12y ago · link · parent

Here's the version used in OS X. It's a bit bigger but not GNUishly big.

http://www.opensource.apple.com/source/text_cmds/text_cmds-8...

comment 12y ago · link · parent

I agree. I read that comment last night and could almost not sleep due to the insights it gave me. I'm going to spend the whole weekend re-reading about Functors, Applicative and Monads now. Maybe this time I'll grok it all.

Thanks Chris!

comment 12y ago · link · parent

What dirty associations can you make out of "proc" or even "procedure"?

comment 12y ago · link · parent

You sound sane and very competent, what on earth is that guy doing today?

comment 12y ago · link · parent

I feel that same confusion as you. In Haskell terms, what is it Rich have implemented or perhaps even invented?

comment 12y ago · link · parent

If that actually worked, it would be ideal :)

comment 12y ago · link · parent

I bet this is why Google tries to merge G+ and YouTube accounts.

But then, Facebook comments are hardly much better even though they often have real identities.

comment 12y ago · link · parent

If it took pictures of the plates and drivers of all the cars that pass from behind, it would be a quite useful gadget.

I'm someone who has seen too many Go Pro videos on YouTube, here's an example of such a video, this is a scary video: https://www.youtube.com/watch?v=i556e3qyt58

comment 12y ago · link · parent

I bet you loved Visual Basic 6 :-)

comment 12y ago · link · parent

As I see it, the inside of Web Components still need a nice and structured way to function. I'd build my app using ReactJS now, and when I decide to use web components, I can transform each separate ReactJS component into a web component, ReactJS-tag for ReactJS-tag as I see fit.

It's much safer to do it this way than rely on polymer. IMHO. When web components really are here for everyone, you are still stuck with polymer libs and tools and all the code is bound to them. Who knows, polymer might be considered bloat then?

comment 12y ago · link · parent

With ReactJS you get to code as if everything is a component, why use polymer now instead of that?

comment 12y ago · link · parent

My problem with most overloaded operators is that they too often have no sensible name.

When I talk to myself while coding, I have no name to say out loud.

I have nothing but a picture, when I try to remember the operator.

comment 12y ago · link · parent

At first I wanted to link to C64 productions such as this one https://www.youtube.com/watch?feature=player_detailpage&v=gG... but then I realized that the IBM PC was vastly worse designed than the C64. On the CPU, although running at whopping 4.77 MHz, trivial operations takes loads of cycles. The graphics memory sits on an ISA slot, 8-bit path and few MHz data-rate.

So, well done doing this on a machine that weak!

comment 12y ago · link · parent

I've been fighting exhaustion/fatigue, and some degree of depression that seems to always come with exhaustion, for more than 10 years. It's been a journey to put it mildly, but now I know myself better than ever.

From what I've read and learnt during these years, is that exercise seems to be the most effective treatment. This is the only thing I've not tried seriously yet.

Medication has helped a bit. I can say they are no quick fix, you have to give them at least 3-4 months before you stabilize and can start to reason about how you feel and how to proceed. I hesitated before I tried them, and feel that it was quite dumb and a waste of time to not take them earlier.

The last thing I'd like to mention, is Cognitive Behavioral Therapy, CBT. It worked really well for me. I managed to do several things I wanted to do for years, and the feeling was incredible to finally get out of the catch-22.

Here in (Nordic Country), CBT is not a crazy sign. I know a lot of people that go and have CBT sessions for things like to reason about how to unstuck their life, solve issues at work.

It's no more weird than having a personal trainer at the gym.

From your wording it seems you really feel you need to do something. I don't think your mental health will get better without you changing or doing something about it.

Perhaps you could take a few CBT sessions for your depression, but officially say it's because you want to accelerate your career? Soften your friend and coworkers by sending them links to articles about becoming more efficient at work via CBT?

It's really unproductive and shameful that mental health issues are so stigmatic.

Thank your for replying to me instead of just drive-by down-voting. I wish you luck finding a solution that fits you.

comment 12y ago · link · parent

If you really are depressed, everyone around you most likely already know it. They already know, the medication will not be the reason people know your mental health.

comment 12y ago · link · parent

I think it's a very cool idea as this could let the JIT melt together browser code with user code to one tight piece of code.

comment 12y ago · link · parent

Or a standard way to use sandboxes from within your apps. So you can do on-the-fly code generation.

comment 12y ago · link · parent

Thank you for this really interesting comment.

I wonder if the lead could leave the body, and if the effects it had are somewhat reversed over time, for those that lived in environments with much traffic.

Do you have any idea about this?

comment 12y ago · link · parent

What happened next? Did the bug get fixed? Did you do a work-around somehow? Don't leave stories unfinished like this :)

comment 12y ago · link · parent

Or create a standard of annotations for C, like those used by Java and C#? NotNull, CanBeNull etc, and let the static analyzers use those hints to help even more.

comment 12y ago · link · parent

I wonder if any of the existing static code analyzers would have found this?

PVS-Studio checks some open source projects and posts part of the results on their blog. I did a search and found that they did take a look at OpenSSL in 2012.

http://www.viva64.com/en/b/0183/

And Coverity: https://scan.coverity.com/projects/294

comment 12y ago · link · parent

I ran this in Chrome, Safari 7 and Firefox. Firefox was the slowest of them all by quite some margin. I guess asm.js specific code enables some drastic speedups with less effort from the JIT's point of view. Too bad this code did not utilize asm.js.

comment 12y ago · link · parent

If they got an improvement of 116% perhaps a spinlock isn't the right solution? It sounds more like the subsystem protected should be autonomous and respond to messages in a message queue instead.

comment 12y ago · link · parent

C# sure compiles fast, but if you have several projects in one solution the majority of the time is spent shoveling dll's around like there's no tomorrow. SSD helps only a bit. :-/

comment 12y ago · link · parent

Years ago, I've used procmon.exe and saw VB6 load project files by doing tons of 1 byte reads...

I wonder if the behavior in the article also applies to C# compiles?

comment 12y ago · link · parent

Perhaps Gambit Scheme could be a bit more updated on this? http://dynamo.iro.umontreal.ca/wiki/index.php/Main_Page

https://news.ycombinator.com/item?id=7361947

http://jlongster.com/Open-Sourcing-My-Gambit-Scheme-iOS-Game...

comment 12y ago · link · parent

In Scheme, tail-call optimization is part of the standard. Without this requirement the generated code would probably be much more similar to what you'd write by hand.

On top of this, the generated code is said to be portable C.

I've skimmed through the papers mentioned in the article years ago, but gave up understanding them. This article is golden if I really want to understand what's going on in a real-world use of the techniques described in those papers.

comment 12y ago · link · parent

I have the book and have read some of it years ago. I can't remember if the OS-tasks were an isolated process or just a thread in shared memory.

My first comment would be for a kernel built up using threads in shared memory communicating with signals and mailboxes.

comment 12y ago · link · parent

Ever since I studied how the *BSD and Linux kernels worked I felt it was not very elegant, it used to be like a web of spinlocks(analogy taken from a mail by Terry Lambert, FreeBSD developer). I think FreeBSD and Linux today use kernel-side threads and mailboxes a bit more, but it's not the foundation of how they work.

I'm hoping for an operating system where the kernel works like the AmigaOS exec.library with Tasks, MsgPorts and Signals, but offer a barrier where the outside could be a traditional ABI like the one Linux offer.

I've not looked, but I think Matt Dillon's DragonflyBSD is heading towards something like that.

1
121314
23