HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mrlowlevel

no profile record

Submissions

How to

github.com
3 points·by mrlowlevel·vor 2 Jahren·1 comments

comments

mrlowlevel
·vor 21 Tagen·discuss
Ironic this website has AI written all over it.
mrlowlevel
·vor 8 Monaten·discuss
We have this nifty util in our codebase:

```ts

/*

* A function that asserts that a value is never.

* Useful for exhaustiveness checks in switch statements.

*/

export function assertNever(x: never): never {

  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions

  throw new Error(`Unexpected object: ${x}`)
}

```
mrlowlevel
·letztes Jahr·discuss
Do any of these tools use the rich information from the AST to pull in context? Coupled with semantic search for entry points into the AST, it feels like you could do a lot…
mrlowlevel
·vor 2 Jahren·discuss
> Their fundamental issues (black box + hallucinations)

Aren’t humans also black boxes that suffer from hallucinations?

E.g. for hallucinations: engineers make dumb mistakes in their code all the time, normal people will make false assertions about geopolitical, scientific and other facts all the time. c.f. The Dunning Kruger effect.

And black box because you can only interrogate the system at its interface (usually voice or through written words / pictures)
mrlowlevel
·vor 2 Jahren·discuss
A 15 minute side project I cooked up on a late Monday night.

Fun examples:

```

  howto git:(main) howto "print hello world" | sh
  hello world

  howto git:(main) howto "rebase changes from a branch B onto main that was branched off from a branch A that has now been squashed into main"
  git checkout B && git rebase --onto main A B

  howto git:(main) howto "update macos"
  softwareupdate --all --install --restart

  howto git:(main) howto "list all direct non-empty child directories in current directory, each directory on a new line with no additional details" | sh
  target
  .git
  src
```