HNHacker News
TopNewBestAskShowJobs

tyler-dodge

50 karma · joined February 26, 2012

submissionscomments
tyler-dodge··on Org-assistant.el – Org Babel extension for Chat Assistant APIs
It's the whole previous conversation prior to the top level headline containing the block.

Makes sense, I won't be changing it from the current way. I think chatgpt-shell works more idiomatically in the org way in that context so that can be an alternative for people who prefer the former variant.

tyler-dodge··on Org-assistant.el – Org Babel extension for Chat Assistant APIs
chatgpt-shell in org-mode does not support chaining together multiple messages whereas org-assistant supports:

#+BEGIN_SRC ?

A

#+END_SRC

#+BEGIN_EXAMPLE

A-response

#+END_EXAMPLE

#+BEGIN_SRC ?

B

#+END_SRC

Where if you run Ctrl-c Ctrl-C on the block it sends the conversation to chatgpt:

User: A

Assistant: A-response

User: B

This enables notebook style development if you are tinkering with a prompt and want to see how the responses cascade based on further input.

tyler-dodge··on On calculating Fibonacci numbers in C
Wait Im confused. Wouldnt the point of using the analytic approach be that i could start at any n besides 0? Because of course if im just taking the sums from 0 to n it'd be faster to do it the tail recursive way because thats just simple addition.
tyler-dodge··on Advanced Vim Registers
My version didn't have it builtin so I use fake clip https://github.com/kana/vim-fakeclip
tyler-dodge··on nil, Nil, NULL, NSNull
True, although none of the other return values make that much sense with nil either.
tyler-dodge··on nil, Nil, NULL, NSNull
That seems like a naming decision, I think it'd make more sense to have an equals selector than a not equals selector in objective c. Plus isEqualToString: is already part of NSString
tyler-dodge··on Is C/C++ worth it?
Why does he use a vector for the C++ version, but an array for the java version. It seems like it'd be a lot more comparable to use an arraylist in java, (either that or just a standard array in C). Nonetheless, the having the time slowed by the call to cout has a pretty large effect as well. It seems like this was rather setup to favor the java version from the beginning
tyler-dodge··on The trouble with Javascript
Did he just complain that there are no compiler errors in a interpreted language?