Better HN
topnewbestaskshowjobs
Log inSign up

a-poor

56 karma · joined Jul 21, 2021 (5y ago) · 14 submissions

Fullstack developer living in Los Angeles, CA.

https://austinpoor.com

Submissions

comment 2w ago · link · parent

https://github.com/a-poor/ganymede

I'm working on a native Jupyter client, written in Rust!

comment 7mo ago · link · parent

Synthetic training data

comment 9mo ago · link · parent

What is broken about the go error type? If anything the fact that it is a simple interface makes the `try` syntax sugar more doable – right?

Let's say you have this:

``` part, err := doSomething() if err != nil { return nil, err }

data, err := somethingElse(part) if err != nil { return nil, err }

return data, nil ```

Then as long as your function followed the contract 0+ returns and then 1 `error` return, that could absolutely be turned into just the 0+ returns and auto-return error.

The fact that the `Error` interface is easy to match and extend, plus the common pattern of adding an error as the last return makes this possible.

What am I missing here?

comment 1y ago · link · parent

This means you can't pass variables in as function arguments. Even the example in the official go docs doesn't handle the scope correctly:

  func main() {
   var wg sync.WaitGroup
   var urls = []string{
    "http://www.golang.org/",
    "http://www.google.com/",
    "http://www.example.com/",
   }
   for _, url := range urls {
    // Launch a goroutine to fetch the URL.
    wg.Go(func() {
     // Fetch the URL.
     http.Get(url)
    })
   }
   // Wait for all HTTP fetches to complete.
   wg.Wait()
  }
https://pkg.go.dev/sync#example-WaitGroup

You need to use this pattern instead:

   for _, url := range urls {
    url := url
    // ...

5.

Regex Crossword(regexcrossword.com ↗)

2 points · by a-poor · 1y ago · discuss

6.

AI (Double) Agents: What to do when your LLM can't be trusted(austinpoor.com ↗)

2 points · by a-poor · 2y ago · discuss

comment 3y ago · link · parent

I would love to -- I'm planning to start with something on the smaller side as a PoC.

8.

On Zero Trust Programming: Applying the Concepts of Zero Trust Security to Code(austinpoor.com ↗)

2 points · by a-poor · 3y ago · 2 comments

9.

Running JavaScript in Rust with Deno: Experimenting with Deno's Rust Crates(austinpoor.com ↗)

136 points · by a-poor · 3y ago · 19 comments

comment 3y ago · link · parent

Delve into the world of Rust development with this blog post on creating a custom URL shortener, complete with tech stack analysis, middleware integration, and load testing.

11.

Building a Custom URL Shortener with Rust(austinpoor.com ↗)

3 points · by a-poor · 3y ago · 1 comment

12.

Show HN: Watercooler – A desktop GUI for interacting with the ChatGPT API(github.com ↗)

1 points · by a-poor · 3y ago · discuss