Recent submissions

Comment · 10 months ago
Dynamic languages will allow a range of types through functions. JITs add tracing and attempt to specialize the functions based on the observed types at runtime. It is possible that later on, the function is called with different types than what the JIT observed and compiled code for. To handle this, JITs will have stubs and guards. You check the observed type at runtime before calling the JITted code. If the type does not match, you would call a stub to generate the correct machine code, or you could just call into the interpreter slow path.

An example might be the plus operator. Many languages will allow integers, floats, strings and more on either side of the operator. The JIT likely will see mostly integers and optimize the functions call for integer math. If later you call the plus operator with two Point classes, then you would fall back to the interpreter.

Comment · 3 years ago
I’m currently in a part time masters program for fun and taking the compilers course. I’m sure John’s experience is different than mine, but it seems the question should be put to universities. The professor of my course, by his own admission, hasn’t studied compilers other than his undergrad decades ago and as far as I can tell was assigned the course to teach. As a result the syllabus is relatively dates. I think I’m 8 weeks in and we’ve only discussed parsing theory. As far as I can tell there won’t be time for detailed study of code gen, optimizations, type checking, etc.
Comment · 3 years ago
Comment · 3 years ago
Comment · 4 years ago
This might be an American term, but auditing a course is simply taking one without registering and without intent of grade or credit.
Comment · 5 years ago
Presumably "Swift for data science" is a failure, not the idea of data science as a whole
Comment · 6 years ago
Nubank also acquired Plataformatec and the Elixir team. Very interested to watch how this plays out.
Comment · 12 years ago
The first time I read Meditations I read the Gregory Hays translation. It's written with very colloquial language and makes for a great entrance to the book.
Comment · 12 years ago
There's a weird attack on MBAs for not being good at creating value in tech. But the biggest, most successful new tech companies over the last few years are hardly valuable in the grand scheme of things. Social networks are just new advertising platforms. Sure, there are companies like SpaceX, but I'd imagine the vast majority of people here on HN are not building anything so significant.

So why the outrage? Live and let live.

Comment · 12 years ago
Comment · 12 years ago
Comment · 12 years ago
Money, prestige and the promise of future success makes 22 year olds do stupid things.
Comment · 12 years ago
I'm not surprised. I'm a Beats subscriber and the only thing going for it is the (actually good) human-curated playlists. However, Spotify seems to have a bigger music catalog and music discovery is good enough.
Comment · 13 years ago
When I click this link I automatically download a file called widgets-tweet_button.html.torrent

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton