News for hackers. Stuff that matters.

098799

Here's a sketch: https://chatgpt.com/share/68640b97-9a48-8007-a27c-fdf85ff412... -- selenium drives your actual browser under the hood.
You could also use headless selenium under the hood and pipe to the model the entire Dom of the document after the JavaScript was loaded. Of course it would make it much slower but also would amend the main worry people have which is many websites will flat out not show anything in the initial GET request.
Re:Analyzing a Critique of the AI 2027 Timeline Forecasts on Tuesday June 24, 2025 @06:16PM (#44371634)
Because if we're unlucky, Scott will think in the final seconds of his life as he watches the world burn "I could have tried harder and worried less about my reputation".
Despite many years of development, I find lsp and eglot to me mostly unusably slow. I need my emacs to be fast and the only way to achieve that is something oldschool like Jedi/Elpy for python.
Re:FastHTML – Modern web applications in pure Python on Tuesday July 30, 2024 @04:18AM (#41107110)
Thanks for the info. In general, being compliant with established conventions (even if you don't personally like them) can lower the barrier of entry for some people who may superficially reject your library based on esthetic concerns.

If you'd like to dig deeper, the reference is:

    F811 redefinition of unused 'get' from line xx 
from flake8 and

    error: Name "get" already defined on line xx  [no-redef]
from mypy.
Re:FastHTML – Modern web applications in pure Python on Tuesday July 30, 2024 @04:04AM (#41107031)
Yikes. I'm going to follow this one cause it's right up my alley, but I'm worried I will absolutely hate the process if some standards don't change, e.g. having to have multiple functions called "get()" for them to be a GET request is going to drive mypy/flake8 mad.
Re:Show HN: Wat – Deep inspection of Python objects on Friday July 26, 2024 @05:44AM (#41077204)
One might suggest adding:

  try:
      from wat import wat
  except ImportError:
      pass
to your $PYTHONSTARTUP file to avoid the cumbersome import.
Re:GPT-4 Turbo with Vision is a step backwards for coding on Wednesday April 10, 2024 @04:14AM (#39988236)
You do have to give them the company name though (however inconsequential that is)
Re:Claude 3 model family on Monday March 04, 2024 @02:15PM (#39594662)
Thank you for working on gptel, it's an excellent package. I'm still using the copilot more because of the pure speed (competing with company mode/LSP), but I never use it if it suggests more than one line. The quality is just not there. But having access to gpt4 from gptel has been very useful. Can't wait to play around with Claude 3.
Re:Claude 3 model family on Monday March 04, 2024 @12:39PM (#39593302)
Switzerland is not in the EU. Didn't use VPN.
Re:Claude 3 model family on Monday March 04, 2024 @10:57AM (#39591911)
Actually, I also noticed 400 to consumer_pricing with response "Invalid country" even though I'm in Switzerland, which should be supported?
Re:Claude 3 model family on Monday March 04, 2024 @10:42AM (#39591746)
Emacs implementation when? ;)
Re:Claude 3 model family on Monday March 04, 2024 @10:40AM (#39591720)
Trying to subscribe to pro but website keeps loading (404 to stripe's /invoices is the only non 2xx I see)
Re:Let's Build the GPT Tokenizer [video] on Wednesday February 21, 2024 @03:28AM (#39451385)
Probably more coming soon given he just left openai to pursue other things.
Re:Floats Are Weird on Monday February 19, 2024 @03:43AM (#39427406)
I see! yes, the magic is you can cancel the noise by repeating it twice:

``` In [1]: math.exp(1e-15)-1 Out[1]: 1.1102230246251565e-15

In [2]: math.log(math.exp(1e-15)) Out[2]: 1.110223024625156e-15 ```

risky business though, I imagine it's implementation dependent

Re:Floats Are Weird on Monday February 19, 2024 @02:51AM (#39427156)
Nothing weird about it. It should be obvious that subtracting two floats that are very close to each other results in a loss of numerical precision:

1.000000003456e0 - 1.000000002345e0 = 0.000000001111e0 = 1.111numericalnoise e-9

It's exactly the same issue here. `math.exp(1e-15)` is `1.000000000000001`. If you subtract 1, you get 1 significant digit and numerical noise.

Re:Zed, a collaborative code editor, is now open source on Thursday January 25, 2024 @02:33AM (#39127164)
Did they call it Zed just so they have a movie to quote when they announce it's demise?
I think it's important to notice that free software is free to use and extend by people who don't necessarily share philosophical or political convictions of the software's author.
While I understand the general sentiment, I don't understand the specific point. After all, company-mode and it's numerous lsp-based backends are often used as an _unprompted_ completion (after typing 2 or 3 characters) which the user has the option to select or move on. It's the first time I hear of this being somehow against the spirit of GNU. Would you argue this is somehow relinquishing control? I like it, since it's very quick and cheap, I don't mind it running more often than I use it, because it saves me the keyboard clicks to explicitly ask for completion.

FYI I'm not trying to diminish your project, and I'm glad you've made something which scratches your exact itch. I'm also hopeful others will like it.

Thanks, this showcases the product very well.

Looks like I won't use it though, cause I like how Microsoft's copilot and it's implementations in emacs work: suggest completions with greyed out text after cursor, in one go, without the need to ask for it and discard it if it doesn't fit. Just accept the completion if you like it. For reference: https://github.com/zerolfx/copilot.el

That, coupled with speed, makes it usable for slightly extended code completion (up to one line of code), especially in a highly dynamic programming languages that have worse completion support.

This is quite intriguing, mostly because of the author.

I don't understand very well how llamafiles work, so it looks a little suspicious to just call it every time you want completion (model loading etc), but I'm sure this is somehow covered withing the llamafile's system. I wonder about the latency and whether it would be much impacted if a network call has been introduced such that you can use a model hosted elsewhere. Say a team uses a bunch of models for development, shares them in a private cluster and uses them for code completion without the necessity of leaking any code to openai etc.

Re:On being wrong about AI on Thursday December 14, 2023 @06:48AM (#38640358)
Why would you need it? All you need is one machine capable enough that it will run it's own alphafold-3 to correctly predict the sequence of an appropriately deadly virus, pay some lab to synthesize it and release it to the atmosphere. Or create a dead man switch to do so, at which point you have to start treating it as north korea, sooner or later it will build the capabilities it needs and release it anyway.
Why would you test it?

Probability of two heads: p*p

Probability of two tails: (1-p)*(1-p)

Probability of head followed by tails: p*(1-p)

Probability of tails followed by heads: (1-p)*p

It's not difficult to notice that if you remove the first two, the last two form a 50/50 distribution

Re:So you've installed `fzf`. Now what? on Wednesday March 22, 2023 @06:37AM (#35259144)
Is it just me or is it mildly annoying that I need to press enter twice if I Ctrl-R with fzf, as opposed to once with the regular search?
Re:Atom Was Archived Today on Friday December 16, 2022 @03:37AM (#34012262)
Surprise, surprise, emacs was there before you: run one daemon, open as many windows as you'd like.
elpy+jedi has been my main environment. LSP was really slow every time I tried it.
Re:20×10% on Wednesday September 21, 2022 @07:47AM (#32923675)
I mostly agree. But:

- image cropping in an image viewer is useful if you'd like to quickly crop screenshots before posting,

- you can already view images in emacs.

So the irksome bloat is likely already there, and stems from emacs not only being a text editor, but an operating system onto itself.

Re:Gnome Turns 25 on Saturday July 23, 2022 @09:03AM (#32202918)
When someone says "that works out of the box" what I hear is "I don't want to spend time customizing things to work better for me", which is fine, but surprising coming from someone who claims to have used tiling window managers.
Re:4coder editor is now fully open source on Tuesday May 31, 2022 @10:47AM (#31570139)
I wonder how do people come to a decision that it's a good idea to start their own text editor when vim and emacs exist. For this one my guess is the author is a c/c++ developer and wanted to have their editor cusomizable in their desired language. Would that be enough?

It's also not a common thing for projects like that not to start as FOSS.

Re:Computers as I used to love them on Friday January 07, 2022 @06:54AM (#29838038)
Does it have a command line client?

Older »