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

Your cookie banner is very inconvenient and made me leave your website and not read the article

It would be nice to give them some kind of attribution in the readme or something since you know which projects you referenced

Exactly. If you have the decency to ask, you probably have the capacity to be courteous beyond the minimum required by law.

I'm more interested in the general question rather than the specifics of this situation, which I'm sure is now incredibly common. I know it looked at those implementations because I asked it to, and therefore I will credit those projects when I release this library. In general though, people do not know what other material the agents looked at in order to derive their results, therefore they can't give credit, or even be sure that they are technically complying with the relevant licenses.

A good reason to actually test that you reject man in the middle certs if you rely on TLS in your application


I don't understand, yay updates itself. I've never once had this problem.


That's assuming you do system upgrades through paru/yay. However, you may not want to upgrade the packages you've obtained from the AUR and so you upgrade using pacman. That may cause the updated libalpm to become incompatible with the installed yay/paru.


yay used to be in the official Arch Linux repository for some time, wonder why it was removed.


Iirc it was to force the extra step necessary for the user to acknowledge that the AUR can bootstrap malware if used blindly.

This seems to be a relatively consistent discussion surrounding AUR helper development; for example, adding UX to incentivise users to read PKGBUILDs, lest the AUR becomes an attractive vector for skids.

No one wants the AUR to become NPM, and the thing that will incentivise that is uneducated users. Having the small barrier of not having helpers in the main repos is an effective way of accomplishing that.


https://wiki.archlinux.org/title/AUR_helpers

AUR helpers like yay are not supported officially. The other commenter sheds some light as to why.


Assume they mean having to recompile the AUR package they were trying to install using yay.

If users mental model is mostly "yay is like pacman but can also install packages from AUR the same way" wihout thinking deeper about the difference then I think it using it is very risky and that you should just stick to pacman + git/makepkg. Only consider helpers once that's become second nature and routine. Telling people to "just yay install" is doing them a disservice. An upgrade breaking the system isn't even that bad compared to getting infected with malware due to an old package you were using being orphaned and hijacked to spread malware or getting a bad copycat version due to a typo.

I think EndeavourOS is doing users a disservice if they provide sth like yay preinstalled and ready to use out of the box. It isn't installing packages from a shared repo: It's downloading code from arbitrary locations and running it on your machine in order to produce a package. Being able to read and understand shell script (PKGBUILD) is kind of a prerequisite to using it safely.


There was a short thread about this on mastodon involving Rob Pike the other day https://hachyderm.io/@robpike/115896334649905170


The go standard library has an implementation of ed25519 although I did not find ed448 it also has some NIST curves. There are a few libraries that do ed448 like one from cloudflare.


To test a Claude Skill for analyzing cryptographic implementations of cryptographic side-channels ([1] see constant-time-analysis), I had Claude vibe-code an Ed448 implementation.

This includes:

1. The Ed448 signature algorithm

2. The Edwards448 elliptic curve group (which could conceivably be used for ECDH)

3. The Decaf448 prime-order group (a much better target for doing non-EdDSA things with)

I've been putting off reviewing it and making the implementation public (as it was an exercise in "is this skill a sufficient guard-rail against implementation error" more than anything), but if there's any interest in this from the Go community, I'll try to prioritize it later this year.

(I'm not publishing it without approval from the rest of the cryptography team, which requires an internal review.)

But if you're curious about the efficacy of the Skill, it did discover https://github.com/RustCrypto/signatures/security/advisories...

[1] https://github.com/trailofbits/skills


I think what you're doing is really cool.

Your instructions to comment on your blog are incredible, come talk to you face to face. If I didn't live on the other side of the country it would be meaningful to tell you what it meant to me in person.


Skilled humans must understand the problem and write the theorem statement.


Best feature of freebsd. I have really messed up the system and successfully restored a boot environment snapshot and everything is fine after.

It happens by default with freebsd-update (I hope the new pkg replacement still does it too)


I made one of these too! I decided not to use // because I use gofmt auto formatting in my editor and it puts a space between the // and the usr. This one isn't changed by gofmt:

    /*?sr/bin/env go run "$0" "$@"; exit $? #*/


This is a sweet idea, thank you!

My suggestion for minimal/readable:

  /*usr/bin/env go run "$0" "$@"; exit;*/

  - go fmt leaves it alone
  - it preserves the exit code in case env or go breaks
  - it "figures out" where go is, no need to hard code a path that breaks on yet another machine (where /usr/bin/env is "standard")

  ( 
  The first example:
  - I'm not a big fan of the subtle extra work that the question mark in the original path imposes on the system.  env is (almost) always going to be as /usr/bin/env and rarely would something else that matches exist.  ls -d /?sr to see what outputs on your system.  That being said, the extra work isn't very meaningful in this case...

  - The trailing $? seems unnecessary as the final exit will convey the return code from env go regardless of if the $? is present or not
  )


I wonder if bash has a way to override the default function calling mechanism. Since functions in bashrc would probably take priority, maybe something like this could be possible: (psuedo code)

```

execve(path, args) {

  if path.endsWith('.go') {

    go run path args

  } else {

    super($path, *args)

  }
}

```

Then when you run `./script.go`, the function gets called and passes it so `go run`, while everything else goes through the existing execve function. That would be interesting, because then you could do this with absolutely anything.

`./script.rb`

`./script.py`

`./script.c`

etc


It works, but the best in me I cannot explain fully first 3 symbols. /*?sr/bin/env finds /usr by expanding *? to a first matching directory. But why not just /*usr/ instead?


I think I was just trying to minimize accidentally matching the wrong thing. Both do work though and it is kinda nice to be more readable.

If I remember right I think ? Is exactly one character only, or maybe it does non greedy .


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

Search: