News for hackers. Stuff that matters.

nt591

Re:ZJIT is now available in Ruby 4.0 on Friday December 26, 2025 @01:42PM (#46394873)
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.

Re:Why Take a Compiler Course? on Saturday March 25, 2023 @03:23PM (#35306155)
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.
Re:Pictures of a Working Garbage Collector on Thursday January 12, 2023 @09:42AM (#34354146)
You can manually increment and decrement reference counts with retain/release: https://stackoverflow.com/questions/6578/understanding-refer...
Re:I've realized I'm a bad software Developer on Saturday January 07, 2023 @11:50AM (#34289827)
This substack is not Gayle: https://mobile.twitter.com/gayle/status/1611757742246723584

I think the submission should be taken down

Re:CMSC 430: Design and Implementation of Programming Languages on Wednesday October 05, 2022 @08:35AM (#33094637)
This might be an American term, but auditing a course is simply taking one without registering and without intent of grade or credit.
Re:Swift for TensorFlow Shuts Down on Friday February 12, 2021 @02:36PM (#26117639)
Presumably "Swift for data science" is a failure, not the idea of data science as a whole
Re:Nubank acquires Cognitect on Thursday July 23, 2020 @10:07AM (#23927498)
Nubank also acquired Plataformatec and the Elixir team. Very interested to watch how this plays out.
Re:Ask HN: What book changed your life in 2014? on Monday December 08, 2014 @11:19AM (#8717203)
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.
Re:Stanford MBAs Shift Away from Tech on Tuesday November 04, 2014 @07:54AM (#8556259)
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.

Where in Spain? The author of the Typus gem (a Ruby admin tool) lives in / freelances from Barcelona. Your dad may want to reach out to him for tips or advice.

https://github.com/fesplugas

Re:Ask HN: Who wants to be hired? (July 2014) on Tuesday July 01, 2014 @10:04AM (#7970697)
Location: New York, NY

Remote: Full time, not remote.

Willing to relocate: Yes.

Technologies: Ruby/Rails, Javascript, proficient in SQL, some Chef and Ansible experience. Willing to learn anything.

Resume: http://resumes.flatironschool.com.s3.amazonaws.com/alumni/Ni...

Email: [email protected]

Money, prestige and the promise of future success makes 22 year olds do stupid things.
Re:Apple Said to Be in Talks to Buy Beats for $3.2 Billion on Thursday May 08, 2014 @07:47PM (#7718450)
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.
When I click this link I automatically download a file called widgets-tweet_button.html.torrent