Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aarongough
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
aarongough
16y ago
AS an experiment I just implemented the GC tweaks for our test suite (we're using RSpec), it gave us a 42% improvement in run time... Before: 914 seconds After: 538 seconds Awesome! Thanks to Jamis for sharing!
32.
▲
by
aarongough
16y ago
I would recommend Devise over Authlogic as it doesn't pollute your application with as much generated code...
33.
▲
by
aarongough
16y ago
Ditto. I've previously had to go through the US many time on my way from Canada to Australia. The next time I make that trip I will be paying extra to ensure a direct flight from Toronto to Australia. I will also be avoiding any other sort
34.
▲
by
aarongough
16y ago
It's worth noting that this was not universal as far as I can tell. I have 5 minute watchdogs on all of my 3 sites in production with Heroku, and none of them pinged me. Given that I know the watchdogs work (regular testing and previous inc
35.
▲
by
aarongough
16y ago
Why not just install an SSD in your current MacBook? They're not too expensive these days, and the performance improvements are definitely worth it. I installed an OCZ Vertex II in my 13" MacBook a little while ago and it made a big differe
36.
▲
by
aarongough
16y ago
http://RobotsMadeToKill.com/ This has been worked on in various forms for over a year now. The main issue was always with getting quality data. No attempts at optimization have been made yet, but it's fairly usable even so...
37.
▲
by
aarongough
16y ago
My experience with really large scale grammars is extremely limited so it's good to hear your thoughts on that! My main issue so far with PEGs is that the generators seem to produce parsers that are relatively slow. That being said I need t
38.
▲
by
aarongough
16y ago
Fixed. It must have been a late night!
39.
▲
by
aarongough
16y ago
I do agree to an extent. I'd be interested to see if Citrus is faster... I'll write up a test in a week or two and we shall see!
40.
▲
by
aarongough
16y ago
The intermediate compilaton step is actually optional when using Treetop. You can see in the code in the article that Treetop is directly loading and interpreting the grammar at runtime. (Of course there is always going to be some compilati
41.
▲
by
aarongough
16y ago
I think the path to learning about parsers is different for everyone. Personally I started by reading docs for parser generators like YACC and Bison, then just started messing around until I felt I understood what was going on. Picking a gr
42.
▲
by
aarongough
16y ago
Would you be able to tell me what your screen resolution is? I decided to go with the bottom-attached menu because it makes navigation painless, on the resolutions I've tested the site with the difference between the above-menu area and the
43.
▲
A quick intro to writing a parser with Treetop
(thingsaaronmade.com)
25 points
by
aarongough
16y ago
|
20 comments
44.
▲
by
aarongough
16y ago
Just wanted to chime in briefly here and say thank-you for your example Lisp interpreter in Python. Made some things much clearer for me and because of it I now have the knowledge to be implementing R5RS over the top of Ruby! Thanks again!
45.
▲
by
aarongough
16y ago
There's an interesting conversation going on about this article over at RubyFlow: http://rubyflow.com/items/4657
46.
▲
Writing an S-Expression parser in Ruby
(thingsaaronmade.com)
3 points
by
aarongough
16y ago
|
1 comments
47.
▲
by
aarongough
16y ago
I'd be interested to know what percentage of time it takes up for rendering a comment thread in the live system though.
48.
▲
by
aarongough
16y ago
So I decided to get out of my armchair and have a look at the code. It's a lot to take in and I've never done any work in python but: It looks like they're already doing part of what I proposed above. Each comment is associated directly wit
49.
▲
by
aarongough
16y ago
I'm curious as to how they're structuring the data for their comment trees. Does each comment only have one parent? That parent either being another comment or the parent article? Are they using nested sets? My preferred alternative is to h
50.
▲
by
aarongough
16y ago
Unfortunately if you are sending the friend list as part of the cached page then you won't be able to use that cached page for all users. I believe the original comment was that each comments page should be cached globally and then each
51.
▲
by
aarongough
16y ago
I'm actually using an OCZ Vertex II SSD with my Macbook Pro right now and I have nothing but good things to say. Don't worry about trim, just get a drive that supports on-board garbage collection and dive in!
52.
▲
by
aarongough
16y ago
No worries! I'm always happy to answer questions via email as well if need be.
53.
▲
by
aarongough
16y ago
Exactly... That is why I recommend sticking to high-level libraries and tackling a simple real-world problem to start off. Even just playing with writing some meaningful client-side JavaScript will be enough to give you more of a 'feel' for
54.
▲
by
aarongough
16y ago
Haha, I got my own domain name wrong! Clearly it's been a long day... Link: http://ajax-gist.com/ In the end I built what was essentially a proof-of-concept asynchronous Rails 3 application. The libraries I used under the hood to get ever
55.
▲
by
aarongough
16y ago
Wouldn't going so low-level be a bit counter-productive at this point in his learning process? I would think that playing with existing async systems like Node, EventMachine and Twisted would be more productive in the short-term and give hi
56.
▲
by
aarongough
16y ago
Try making something that depends on an I/O resource that is really slow, that will give you more of a feeling for it quickly. I did this in one of my projects (Ajax-Gist.com) where I was directly querying a 3rd party API (GitHub) for eac
57.
▲
by
aarongough
16y ago
Do you have an estimate of how many hours per month it takes to organize? If it was reasonable I would definitely be interested in doing it, and I would be happy to affiliated with the official 'franchise'!
58.
▲
by
aarongough
16y ago
I personally would like to see more stuff like this in Toronto, maybe it would be worth my time to organize it... I'm looking into doing a similar thing with month HN meetups here in TO.
59.
▲
by
aarongough
16y ago
Mainly so that people can establish an identity associated with their rants if they choose, many people seem to do this. Additionally it allows people to identify themselves as the OP when posting comments, and allows people to be more expr
60.
▲
by
aarongough
16y ago
This is something that I have been thinking about for a while, and I have implemented systems not requiring registration several times. In order to try to keep the quality of the content relatively high on those sites I also do some very si
More ›