Submit

Back to the channels

#primate

  1. blue hi phaleth
  2. phaleth hi blue
  3. phaleth this is cool https://docs.opnsense.org/development/api/core/interfaces.html
  4. nevet Interfaces — OPNsense documentation
  5. blue what is that
  6. blue it's an API for managing your comp?
  7. phaleth API to manage VLANs
  8. phaleth REST
  9. blue nice
  10. phaleth people are building all the things we need https://github.com/AthennaMind/opnsense-exporter
  11. blue holy guacamole
  12. blue but'd need to use freebsd
  13. blue time for superarch
  14. phaleth heh, yeah
  15. phaleth freebsd is the goal anyway
  16. blue man I friggin' despise those modern people with their 'main' branches
  17. * blue spits
  18. blue one more reason not to use github
  19. blue I think once RP is up, I'll move primate as well
  20. blue I don't really inherently care for GH stars, and I despise GH enough to want to completely move away from it
  21. blue the only reason to stay is that if you get over 1k stars, you get clanker freetime with claude, and I've cancelled my claude subscription anyway, clankers produce only nonsense
  22. phaleth people do main branches outside of github as well
  23. blue yes, unfortunately, this cancer has spread everywhere
  24. phaleth heh
  25. phaleth it's nice that contabo allows to install freebsd, even if outdated, I think I still got the freebsd upgrade steps somewhere, cause opnsense is installable on top of freebsd using some bootstrap script, so there will not be a need to pay contabo for custom image storage
  26. blue coolsies
  27. blue so one mistake I think zig did (beyond moving to codeberg), was that they left the old issues open on GH
  28. blue should have migrated them
  29. phaleth yeah, prolly, they are busy jumping from one place to another
  30. phaleth it's complicated to migrate from github, for example gitea is still trapped there
  31. phaleth but at least that makes gitea discoverable
  32. blue the only thing it requires is guts, otherwise you'll never break GH's awful monopoly
  33. blue but zig have chosen the worst of all worlds. they could have selfhosted, AND they should have migrated all the issues and set the repo on GH to archived/readonly
  34. blue I'd say a gitea selfhost could have been the right path for zig
  35. blue but now you have a situation where there are over 3k open issues on GH, and every bug needs to be checked twice
  36. blue typical andrew
  37. blue people often forget there's a difference between a good engineer and a good maintainer, andrew is a great engineer and a terrible maintainer
  38. phaleth there is a non-profit behind codeberg that cares about the hosting and zig devs can't even be bothered about setting up nginx properly on their Hetner VPS
  39. blue yes, but would *you* trust an ideological german non-profit? I wouldn't
  40. phaleth I think it's better for them to stay zig compiler focused
  41. phaleth well, they can always move again later, at least now they are not too bothered
  42. blue true
  43. phaleth gitea is still cool, straightforward to setup, but when you have nobody doing devops and only compiler people then you need some help
  44. phaleth the cool thing about non-profits is that the expenses are tax deducible, doesn't matter if it's german
  45. phaleth but for sure germans are crazy about software
  46. blue my problem with codeberg is mostly that they are ideological, and I don't like ideological people in software
  47. blue you could say RMS is ideological too but I don't mean software ideology, I mean political ideology
  48. blue software should just be software. we should all use master, drop the cocs nonsense, and focus on creating the best product
  49. blue I've added a `migrate` option to store creation in primate
  50. blue because more than one store can facade a table, it could become impossible to run migrations
  51. blue so you'd need to set `migration: false` on the store you want to exclude
  52. blue or migrate: false, rather
  53. phaleth if they manage to get some projects of off github then that's fine, lot of people prolly self-host git remote solutions nowadays
  54. blue yes
  55. phaleth nice
  56. blue someone warned me migrations is a can of worms but it's such a big can
  57. blue it's a small can of worms
  58. blue it's not such a big can*
  59. blue so far the complexity isn't very great
  60. phaleth yeah, but still it would be great if you could implement them only for postgres and possibly also mariadb if there are similarities
  61. blue I'm writing the cli part now. I already finished implementing the primitives for postgres, mysql, sqlite and mongo
  62. blue the drivers have two primitives, 'introspect' and 'alter'
  63. blue that's all you need
  64. phaleth ah, ok
  65. blue well technically you also need the table create primitive if there'a store file but no table, but it already existed
  66. blue I don't get eslint sometimes
  67. blue `if (!store.migrate) continue;`
  68. blue 1. Unexpected any value in conditional. An explicit comparison or type conversion is required. [@typescript-eslint/strict-boolean-expressions]
  69. blue that's so weird. `migrate` is already a boolean, inverted booleans aren't 'any'
  70. phaleth maybe it expects three exclamation marks !!!
  71. blue I don't really mind writing `store.migrate === false`, but it's not more strict of an expression than !store.migrate
  72. blue lol
  73. blue I think something's broken here
  74. blue "Forbids usage of non-boolean types in expressions where a boolean is expected. boolean and never types are always allowed"
  75. blue oh yeah, itwas some weird artefact. I reloaded the file and the error is gone
  76. phaleth heh, cache
  77. phaleth silly webdevs
  78. blue penultimate boss of software, caching, final boss, complexity
  79. phaleth I wish zig succeeds with the zig run watch thing and that it's very fast and flawless
  80. blue what's that, reload on changes?
  81. blue or rather, recompile
  82. phaleth recompile, yes

Search posts