Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pat_shaughnessy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
1.
▲
by
pat_shaughnessy
11mo ago
That's the magic of YJIT, and what I'll describe in the rest of Chapter 4. YJIT uses a "wait-and-see" approach, and often defers compilation of the block/function until the actual types are provided by your program.
2.
▲
by
pat_shaughnessy
11mo ago
> Idiomatic Ruby uses blocks for loop bodies Yes that's something I want to dig into and explore in this chapter... when exactly does Ruby's JIT compiler activate and optimize our code? And you're right: since Ruby will JI
3.
▲
by
pat_shaughnessy
11mo ago
What a lovely comment - thank you!
4.
▲
by
pat_shaughnessy
10y ago
I tried that while researching the article, but found the call to "puts" doesn't link without the standard library code. And without a "puts" or similar call to produce output LLVM optimized the entire program away
5.
▲
by
pat_shaughnessy
10y ago
(author here) ...FYI I actually learned assembly language for the first time back in the 1970s and 80s using a 6809 inside a Radio Shack "Color Computer." I was super-fun at the time. I don't remember much of it now but I
6.
▲
by
pat_shaughnessy
10y ago
Thanks a lot. I'm looking forward to writing it, I think it will be interesting.
7.
▲
by
pat_shaughnessy
10y ago
Thanks! Glad to hear you made it to the bottom :) I always worry that I tend to write on and on for too long.
8.
▲
by
pat_shaughnessy
10y ago
Thank you! Knowing that people enjoy reading this sort of thing makes it worthwhile.
9.
▲
by
pat_shaughnessy
10y ago
Thanks everyone for the kind comments, and for taking the time to read this stuff :)
10.
▲
by
pat_shaughnessy
12y ago
Yes, good point. Rails has a lot of conventions like this - that "first" implies ordering by primary key (by default). I just imagine that most Rails developers don't think about sorting and its implications when they ask for
11.
▲
by
pat_shaughnessy
12y ago
Oh absolutely. I thought about saying that, and just ran out of energy before posting the article this morning. The reason I used this particular SQL statement as an example is that ActiveRecord (a Ruby ORM) generates it from a fairly simpl
12.
▲
by
pat_shaughnessy
12y ago
By the way, I used a simple query on purpose to keep things simple for readers (and for me, the author!). By using such a simple SQL statement I was able to avoid complex optimizations and algorithms I would haven't been able to follow
13.
▲
by
pat_shaughnessy
12y ago
This sounds fascinating - I read Codd's original paper on relational algebra for my last post ( http://www.seas.upenn.edu/~zives/03f/cis550/codd.pdf ). ... and this notation almost seems more similar to th
14.
▲
by
pat_shaughnessy
12y ago
Thanks :) Yea indexes are where some of the real "magic" of database servers happens. It will be fun to write that up...
15.
▲
by
pat_shaughnessy
13y ago
I discuss circular references and how CPython handles them a bit in my followup post: http://patshaughnessy.net/2013/10/30/generational-gc-in-pyth...
16.
▲
Expanded Ruby Under a Microscope Available in Print
(patshaughnessy.net)
7 points
by
pat_shaughnessy
13y ago
|
0 comments
17.
▲
by
pat_shaughnessy
13y ago
Another great post, Daniel... keep 'em coming!
18.
▲
by
pat_shaughnessy
14y ago
I agree with the other commenters - RailsApps is a fantastic resource for the community. It's a great way to have a peer reviewed and curated set of high quality examples to learn from. At the same time, I do agree with many of the points i
19.
▲
Surprising performance results creating various Ruby primitives
(patshaughnessy.net)
1 points
by
pat_shaughnessy
14y ago
|
0 comments
20.
▲
The "Magic" behind AngularJS Dependency Injection
(alexrothenberg.com)
9 points
by
pat_shaughnessy
14y ago
|
0 comments
21.
▲
Sessions: The vim Feature You Probably Aren't Using
(weblog.bocoup.com)
2 points
by
pat_shaughnessy
14y ago
|
0 comments
22.
▲
by
pat_shaughnessy
14y ago
Yup, (re)reading SICP is definitely on my list!
23.
▲
by
pat_shaughnessy
14y ago
Awesome links - thank you!
24.
▲
by
pat_shaughnessy
14y ago
Thanks! Yea for some reason learning how things work is often more satisfying to me than building stuff... I guess I'm more of a scientist than an engineer?
25.
▲
by
pat_shaughnessy
14y ago
Interesting idea - thanks for the suggestion!
26.
▲
by
pat_shaughnessy
14y ago
Absolutely - it is a pleasure to read. Someday I'd like to learn how another language is implemented, maybe JavaScript or something like Haskell, but I'm afraid the language source code will be much more difficult to understand than Ruby's
27.
▲
by
pat_shaughnessy
14y ago
I agree - it's an amazing narrative of an interesting time. I wonder if contacting Xerox directly would lead to some more historical archives?
28.
▲
by
pat_shaughnessy
14y ago
Thanks Gary... yea and all of these things more or less mean the same thing. At a more technical, detailed level, however, the Ruby core team uses both the term "metaclass" (in the same sense Smalltalk uses it - the class of a class), and t
29.
▲
by
pat_shaughnessy
14y ago
Yea it's been a source of discussion (and confusion) for years. Thanks for the link!
30.
▲
by
pat_shaughnessy
14y ago
Great read - thanks! I love the river metaphors. The metaphysics discussion also brought back memories of college philosophy classes on Plato's theories around ideas vs. forms. Probably my memory is failing me here and someone more versed i
More ›