Teiva Harsanyi

@teivah

Go & Rust developer | 📖 100 Go Mistakes author | Reliability, Observability, Performance | Blog | 改善

Paris
Tilmeldt januar 2010

Tweets

Du blokerede @teivah

Er du sikker på, at du vil vise disse Tweets? At vise Tweets vil ikke fjerne blokering af @teivah

  1. Fastgjort tweet
    27. dec. 2021

    I've completed the first final draft of my book 100 Go Mistakes. I've also published a repo containing all the source code for anyone interested:

    Fortryd
  2. 19. mar.

    Starting to experience the dark side of writing a book with an editor...

    Fortryd
  3. retweetede
    18. mar.

    Your mistakes don't define who you are. It's what you do after you have made the mistakes that makes all the difference. Every mistake you make is a learning experience. They don't make you less capable. But it's how you correct them or learn from them that defines you.

    Fortryd
  4. 15. mar.

    For more information: $ go work Or the Github issue:

    Vis denne tråd
    Fortryd
  5. 15. mar.

    5. Workspace mode In an attempt to provide better support for monorepos, Go 1.18 introduces a workspace mode. Projects that rely on the workspace mode will have a new file referencing the modules of the project:

    Vis denne tråd
    Fortryd
  6. 15. mar.

    4. Try lock sync.Mutex and sync.RWMutex are given new methods for trying to acquire a lock and report whether it succeeded: - sync.Mutex => TryLock() - sync.RWMutex => TryLock() and TryRLock() Compared to Lock() and RLock(), these functions are not blocking

    Vis denne tråd
    Fortryd
  7. 15. mar.

    3. Cut In the strings and bytes packages, a new Cut function is now available. Given a string (or a []byte) and a prefix, it returns: - The text before the separator - The text after the separator - Whether the separator was found

    Vis denne tråd
    Fortryd
  8. 15. mar.

    When using Go 1.18, let's keep an eye on the GC behavior of our application and make sure everything is still running smoothly. As always, tweaking GOGC remains the only available option to tune the GC. The new design:

    Vis denne tråd
    Fortryd
  9. 15. mar.

    2. GC & Pacer The pacer is the algorithm used to determine when to start a new GC cycle. It has been redesigned to include not only heap data but also other sources such as the stack. As a result, it may, in some cases, help the GC to be more predictable.

    Vis denne tråd
    Fortryd
  10. 15. mar.

    The engine has found a vulnerability that led the function to panic. It has created a unique file in /testdata containing the inputs that lead to a failure: string("0") // s string("00") // prefix More info here:

    Vis denne tråd
    Fortryd
  11. 15. mar.

    We wrote a custom fuzz test with a given seed corpus (basically, a guide for the fuzz engine). Then, we can run the test: $ go test -fuzz FuzzHasPrefix --- FAIL: FuzzHasPrefix (0.04s) testing.go:1349: panic: runtime error: slice bounds out of range [:2] with length 1

    Vis denne tråd
    Fortryd
  12. 15. mar.

    Sometimes, it can be quite cumbersome trying to think by ourselves about all the different cases to be tested. Fuzzing is here to help us with that:

    Vis denne tråd
    Fortryd
  13. 15. mar.

    1. Fuzz testing Fuzzing is about passing random data to functions in an attempt to find vulnerabilities or crash-causing inputs. Imagine the following scenario where we have to implement a custom function to test whether a string starts with a prefix:

    Vis denne tråd
    Fortryd
  14. 15. mar.

    🧵 Go 1.18 got released 🥳. Outside of generics, five new features we should be aware of. 👇

    Vis denne tråd
    Fortryd
  15. 15. mar.
    Fortryd
  16. retweetede
    8. jun. 2021

    Elon Musk often talks about hiring job candidates for “clear evidence of exceptional ability” But how do you identify exceptional potential employees? 13 non-obvious habits to look for in hiring high performing employees:

    Vis denne tråd
    Fortryd
  17. retweetede
    11. mar.

    In software development learning is not a big part of the job. It is the job.

    Fortryd
  18. retweetede
    11. mar.

    They are also working on government-issued SSL certificates. This already happened in Kazakhstan in 2015: Basically it allows someone to intercept, decrypt, modify and encrypt back all the traffic.

    Vis denne tråd
    Fortryd
  19. retweetede
    9. mar.

    Have found talk: Mechanical Sympathy in (CC: ) Amazing slides btw!

    Fortryd
  20. 9. mar.

    Naming IS designing.

    Fortryd
  21. retweetede
    9. mar.
    Fortryd

Indlæsning ser ud til at tage noget tid.

Twitter kan være overbelastet eller have en midlertidig forstyrrelse. Prøv igen, eller se flere oplysninger på Twitter Status.

    Du vil måske også kunne lide

    ·