Submit

Back to the channels

#primate

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

Search posts