Better HN
topnewbestaskshowjobs
Log inSign up

tyler-dodge

50 karma · joined Feb 26, 2012 (14y ago) · 14 submissions

Submissions

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

3.

Org-assistant.el – Org Babel extension for Chat Assistant APIs(github.com ↗)

72 points · by tyler-dodge · 3y ago · 9 comments

4.

Significant Garbage Collection Improvement for Emacs(tdodge.consulting ↗)

3 points · by tyler-dodge · 4y ago · discuss

5.

Living the Eshell Dream: A Reduction in Latency from 70 Seconds to 3 Seconds(tdodge.consulting ↗)

3 points · by tyler-dodge · 4y ago · discuss

6.

Living the Eshell Dream: A Reduction in Latency from 70 Seconds to 3 Seconds(tdodge.consulting ↗)

8 points · by tyler-dodge · 4y ago · discuss

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

My version didn't have it builtin so I use fake clip https://github.com/kana/vim-fakeclip

comment 13y ago · link · parent

True, although none of the other return values make that much sense with nil either.

comment 13y ago · link · parent

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

comment 14y ago · link · parent

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

comment 14y ago · link · parent

Did he just complain that there are no compiler errors in a interpreted language?