Hacker Newsnew | past | comments | ask | show | jobs | submit | d5ve's commentslogin

I wonder how this sort of thing compares with asking claude to read a ctags file. I have git hooks set up to keep my tags up to date automatically, so that data is already lying around.


ctags just gives you locations of symbol definitions.

TreeSitter will also give you locations of symbol usages, which is obviously very useful to an AI agent. You can basically think of Treesitter as having full syntactic knowledge of the code it is looking at - like a compiler's AST.

There is also a more powerful cousin of ctags, cscope (C/C++) and Pycscope (python) that additonally gives usage locations, and more, as well as gtags that does similar, but supports more languages.


Don't the 12 Days of Christmas start on the 25th though?


Yes, Christmas is the first of the twelve days of Christmas.

Advent begins on the fourth Sunday before Christmas, which was Nov 30 this year. It ends on Dec 24. Therefore it is technically anywhere from 22 to 28 days long.

Advent calendars begin on Dec 1 and end on Dec 25.


I saw an interesting video on the same topic last week. By Brian Haidet (AlphaPhoenix) on reversing the GOL - it turns out that NP hard is hard! https://www.youtube.com/watch?v=g8pjrVbdafY


Lovely video, and it was enormously personally satisfying to me while he was describing his evolutionary algorithm I just sat thinking "why not just use a SAT solver, this seems like child's play for z3?" and then hearing him go "then I asked Reddit and someone suggested using a SAT solver". Hell yeah, good job, brain! I mean, not as good a job as Brian who actually implemented it and made the video and everything, but still!


I had a run-in with the BOFH in real life many years ago as a university student where he was working. I'd messed up something network-related on a lab PC, and noticed that the NIC was now in promiscuous mode for some reason. I did a bit of idle poking around and pinged a few interesting hostnames I found. I was called into the the BOFH's office the next day and interrogated. He glared at me as I explained, and eventually let me off with a stern warning, though the PC was snatched from the lab before I made it back there and never seen again.


Damian Conway's https://metacpan.org/pod/PPR module defines a regex (in the commonly used sense) that can match perl source code - including perl regexes!

Edit: "The PPR module provides a single regular expression that defines a set of independent subpatterns suitable for matching entire Perl documents, as well as a wide range of individual syntactic components of Perl (i.e. statements, expressions, control blocks, variables, etc.)"


That version is missing some of the text. At least the paragraph starting "Perhaps I should explain to you here that although John Landy has". A bunch of other copies I found were also missing that paragraph.

I found an audio version on youtube https://www.youtube.com/watch?v=Y3-SrS15vb8 that had the missing paragraph (starting at 8 minutes in).


I use a Glove80 keyboard, and even after 4 months I'm not back to my normal typing speed! This has cost me a fair bit of productivity, and was stressful at times. Almost feeling like I'd suffered a bit of brain damage, where I could picture what I wanted to do, but be unable to type it out.

Having the modifier keys in the thumb cluster feels a lot less awkward than using my left-hand little finger at odd angles. And I like the fit and finish and customisation.

Overall though, I think I would have been better served by a regular qwerty, not columnar, split keyboard. Maybe my middleaged brain ain't plastic enough any more.

<small>Plus I think the benefits of columnar are oversold. If I naturally curl my fingers in and out, they kinda fan in and out, rather move in parallel straight lines. And the right hand side of a regular keyboard matches that movement pretty well. The left hand side is backwards of course.


These differences between people are really interesting. When I switched from a traditional keyboard to a flat column stagger keyboard, I did 15-30 minutes of exercises a day and after a week I was pretty much at my regular speed. Going from a flat column stagger keyboard to a Kinesis Advantage took me a few hours of adjustment at most. And from the Advantage to the Glove80 no adjustment at all.

I type Colemak-DH, but I am experimenting on the side with letter on thumb layouts. Over the past few weeks, I have tried rsthd, Maltron, and now aptmak (30 key variant). With aptmak I am at 40 WPM after ~5 days. I still type Colemak-DH during the workday at my regular speed, I can switch to a typing tutor and type aptmak at that speed again after two minutes or so (even though I have space on the other hand).

I am sorry for all those people for which this is a really long painful process. I am sure age is a factor, but I am also past 40, so it's definitely not the only factor.


Keep practicing! When I switched to KA2 I could not type with the same speed for months. I've also decided to switch from QWERTY to Colemak at the same time - it did not improve the situation.

But I am fine now, have a KA2 @work, Model 100 @home and have no problems switching between them whatsoever on a daily basis. I've also ordered Glove80 and I am sure it will be fine. What I have some problems with, are those rare occasions where I travel and have to use my notebook's keyboard. Everything - staggered layout, lack of thumb cluster, no split, scissor switches - is just a source of huge discomfort.


> I think I would have been better served by a regular qwerty, not columnar, split keyboard

I recc the ultimate hacking keyboard (UHK). It's as you describe, and I love it.


I couldn't type blind for 30+ years. Never bothered to learn it. Then I used https://www.keybr.com/ a couple of times, less than an hour in total and I was able to touch-type afterwards at an acceptable speed and error rate.

So when I'm experimenting with a new keyboard of key layout, I always practice on keybr.com 1st, because it tremendously speeds up the getting-used-to period!


I tried a columnar layout for a while (ergo dox kit if I recall) and gave up because when I was in meetings on my laptop keyboard I made so many typos. The worst was hitting Enter on my laptop when I was aiming for apostrophe. So many unintentionally sent IMs.


FWIW, I really can't do ortholinear. Maybe it's similar for you? I think it's just one of those things where you don't know until you try for a while. It's apparently right for some!


I found a post mentioning "SuperBallistic Common Lisp" from 2015, perhaps that's where you remember it from.

> SBCL goes SuperBallistic! I have hacked together an SBCL port for the IBM BlueGene/P supercomputer's Compute Node Kernel (CNK).

https://sourceforge.net/p/sbcl/mailman/sbcl-devel/thread/AAN...


    # Sort list by most common terms
    alias sorn='sort | uniq -c | sort -n'
    # Most common IP addresses:
    $ cat access_log | awk '{ print $2 }' | sorn

    # Last 30 modified files.
    function new() {
        ls -lat "$@" | head -30 ;
    }
    # I just downloaded something, where is it?
    $ new ~/Downloads


I've been using mosh since it was announced, but I periodically try Eternal Terminal.

However I havent ever managed to get ET running on Amazon Linux which all my AWS EC2 instances run. I've tried compiling, docker, app images and nothing has worked.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: