User avatar
φ @fiore@brain.worm.pink
2mo
why is everyonr so obsessed with kdl
3
0
2
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
2mo
@fiore idk i find it awkward
id rather use ini or toml or jsonc honestly
1
0
2
0

User avatar
φ @fiore@brain.worm.pink
2mo
@pancakes jsonc is literally fine
2
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes id rather do json5
2
0
0
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
2mo
@coolbean @fiore i dislike the name/extension json5 a lot
0
0
2
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes the point is that json is fine its also very simple to implement so yeaa
1
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes i think you should never use json for human-facing applications

as shit as yaml is, its syntax is so so so much less of a pain in the ass to write by hand
1
0
1
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes kill all yaml with a spoon

@thread what do u think
2
0
2
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread i think strictyaml is much much much more thought out

in general i think people put too much emphasis on using a "complete" configuration language that they can just import and use instead of the more sensible approach of having a modular one that you modify yourself.

toml is probably the best example of this because its based on the very application specific .ini format but tries to make it complete and applicable to all use cases and in the process becomes way more cumbersome to deal with than regular .ini

this would also solve the norway problem for what its worth, idk load a module called yaml_yn that adds the yes or no aliases to true and false and use that separation to make sure it doesnt get confused for the yaml_cc country code module or whatever
2
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes @thread best think about yaml is that u can just write json and it parses fine
2
0
0
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread i dont think so

json5 however is literally designed for this purpose AND its valid javascript code still
1
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes @thread doesnt it ? i should try maybe ive been misinformed
2
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes @thread yyyup . json is a subscript of yaml . any correct yaml parser can parse json
❤️1
1
0
0
1
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread heh same goes for json5 but its also valid modern javascript

funy
1
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread anyway i think this topic is boring, how do you people feel about forth?
1
0
1
0
User avatar
φ @fiore@brain.worm.pink
2mo
1
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread bye fiore see you later on stream
1
0
1
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes @thread look at this cursedness
% yq .yaml <<EOF
{"hi": "i","am": 7,"yaml": 8.9}
EOF
8.9
1
0
0
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread missed opportunity to write 6.7
1
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes @thread i should rewrite the compose file for fiorecraft in json ……. oh my god yes …..
1
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread you shouldnt use podman
1
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@coolbean @pancakes @thread i am NOT running a minecraft server on bare metal are you serious
1
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread oci containers arent much safer. thats why openbsd doesnt have a jails-like mechanism anymore. either use a real vm or use pledge and unveil (you could also make a wrapper that pledges and unveils away the privileges before running java)
2
0
0
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @pancakes @thread it might. it does tolerate a lot of things that shouldnt be necessary if you just used a schema like a reasonable person thats aware of the fact that user-provided data is not to be trusted
0
0
2
0
User avatar
thread @thread@brain.worm.pink
2mo
@fiore @coolbean @pancakes json is bad though
0
0
1
0
User avatar
thread @thread@brain.worm.pink
2mo
@coolbean @fiore @pancakes every strictyaml library is fuarking dead . there is this one python library that is new and usable github.com/posit-dev/py-yaml12 but its hard to find strictyaml libraries worth using imo
0
0
2
0
User avatar
thread @thread@brain.worm.pink
2mo
@fiore @coolbean @pancakes im ok with yaml 1.2, as long as the library youre using doesnt let you use yaml 1.1 im ok with it

but really i think kdl is the best choice, and all configuration should be functional using dhall. kdl and hcl-style json are the only good serial formats. json is bad actually and should be entirely replaced with messagepack. capn proto is supposed to be decent too but i havent bothered figuring out how its schema works, dhall already has schemas that can be annoying to write
1
0
1
0
User avatar
φ @fiore@brain.worm.pink
2mo
@thread @coolbean @pancakes pawjob keep goin ….
1
0
1
0
User avatar
BEANO T13 Handgrenade @coolbean@brain.worm.pink
2mo
@fiore @thread @pancakes i actually fully agree with msgpack. everything should be either easily human read- and writeable or msgpack
0
0
1
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
2mo
@fiore for config i kinda prefer ini or toml though because of the flatness
1
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@pancakes your ASS is flat .
1
0
0
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
2mo
@fiore it is :(
1
0
0
0
User avatar
φ @fiore@brain.worm.pink
2mo
@pancakes EAT MORE CARBS NOW !
1
0
1
0