• 3 Posts
  • 6 Comments
Joined 5 months ago
cake
Cake day: June 12th, 2024

help-circle

  • mccd@lemmy.sdf.orgOPtounixporn@lemmy.sdf.org[CWM] Plan9 inspired OpenBSD
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 months ago

    My feeling for Go and why I went with it for my project is that I think it is the language that sucks the least for server development since I value simplicity, decent performance, fast feedback loop, portability, offline docs and good tooling. It also has a big userbase, and I have a bunch of obscure tooling elsewhere so I felt I didn’t want to introduce more esoteric choices. But it felt a bit sad that it was the best option.

    I also looked at Elixir but found the layers of abstractions a bit intimidating and I heard stories that compilation times becoming long.

    Ocaml ticks most of the boxes of what I look for, but the library ecosystem is immature for server development IMO.

    Do you have any language you prefer?


  • mccd@lemmy.sdf.orgOPtounixporn@lemmy.sdf.org[CWM] Plan9 inspired OpenBSD
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 months ago

    Yeah I’m very new to the language; I like the simple toolchain and network libraries but the way I need to reimplement a bunch of primitive functions surprises me a lot (no math.Max for ints ??). I feel productive in Go, but a part of me feels that is just because I’m outputting so much boilerplate haha.

    If I could have ocaml with the toolchain and library ecosystem of Go, I’d be happy.




  • It was suggestions from the subreddit and irc that it’s probably a harddrive failure. The kernel devs wanted some more details, but at that point I had already deleted OpenBSD and gone back to Alpine. I might give it a spin again later and if the error happens, I’ll be sure to include the full panic report.

    Thanks for suggesting smart, I gave it a spin and it seems the harddrive is healthy?

    $ doas smartctl -H /dev/nvme0n1
    === START OF SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    

    My new suspicion is that I did something funky with the kernel parameters and fstab to try and speed up the system which made it panic.

    EDIT: Welp, the issue was with the RAM. Now that’s replaced, all is well.