Readit News logoReadit News
nonlogical commented on Reddit banned me for developing Geddit   buzl.uk/2024/08/24/reddit... · Posted by u/kaangiray26
subsection1h · a year ago
> despite the romantization, i somehow doubt that Usenet was all roses before the "Eternal September"

Usenet was the best discussion platform I've ever used. People who posted questions to comp.lang.c without first reading K&R were commonly killfiled. People who posted questions to the comp.infosystems.www.authoring newsgroups without first reading relevant W3C specs were commonly killfiled. It was awesome. Can anyone direct me to a discussion platform created during the past 25 years where people are blocked or banned for failing to RTFM? I'm not aware of any.

nonlogical · a year ago
I am sure places like this have their right to exist, and they would probably be a great place to consume… without actively participating. By nature of being strict and exclusionary they will essentially tend towards becoming a relatively small exclusive club perhaps slightly bordering on being an echo chamber. Whether you consider that a bad thing or good, I am not making a judgement call here.

Also the cycle/churn of software is so quick nowadays that manuals are often written as a second or third thought for majority of the projects. So I can not really blame folks for just directly probing for tribal knowledge.

nonlogical commented on Shapez2 Released   shapez2.com/... · Posted by u/MaxikCZ
sanitycheck · a year ago
I hit some sound issues in the Linux version, for anyone else with the same problem telling Steam to use Proton to run the Windows version instead is a workaround.

My only minor peeve with the sequel so far is that the logistics of moving stuff back to the central platform is pretty fiddly and time-consuming compared to the first one. I think there's an unlockable upgrade I'm nowhere near getting which might fix that though.

nonlogical · a year ago
Yup, I too had issues with sound, the game seems to just use the first sound interface available, but it is relatively easy to change after starting (via KDE sound panel for me, but I imagine pavucontol should also work). The issue seems to be with Unity/FMOD on linux not the actual game. Newer versions of Unity seem to not have this issue and author was saying they are trying to see if they can upgrade.

PS I was attempting to make a pipewire LUA script that would auto connect the FMOD output to default interface but got stuck on querying and linking audio ports and interfaces, if someone has more Pipewire-Fu I am all ears!

nonlogical commented on Dasel: Select, put and delete data from JSON, TOML, YAML, XML and CSV   github.com/TomWright/dase... · Posted by u/edward
arandomhuman · a year ago
Shameless plug but if you’re a fan of jq style querying rather than sql for some reason you can also use qq[0] for these and a few other formats.

[0] https://github.com/JFryy/qq

nonlogical · a year ago
jq is such an underrated tool, it is fully turing complete functional language in and of itself. It opens up an ocean of possibilities in combination with scripting languages (python has bindings), and it is ungodly fast chewing up through tons of JSON like its nothing.

It is a bit perl-ish, but being pure and functional it is a little easier to reason about when you have to revisit your queries.

PS I am certainly bookmarking your tool as well =]

There is also amusing project jqjq that implements jq in jq itself that I love to point folks at to show how expressive the language is: https://github.com/wader/jqjq

nonlogical commented on Shapez2 Released   shapez2.com/... · Posted by u/MaxikCZ
nonlogical · a year ago
Love it, and it even has a native linux version. Level of polish in this game is unreal.
nonlogical commented on Show HN: Denormalized – Embeddable Stream Processing in Rust and DataFusion   github.com/probably-nothi... · Posted by u/ambrood
nonlogical · a year ago
This looks totally awesome! Easy to setup, memory-efficient, streaming, real-time data aggregation, compilable to a single self contained binary, that is a dream come true.

Bookmarked for future projects!

nonlogical commented on Dtui – TUI for introspecting the state of the system/session dbus   github.com/Troels51/dtui... · Posted by u/diggan
nonlogical · a year ago
Looks neat! It would be really nice if someone makes a fuse FS that allows exploring/interacting with dbus, in keeping with everything is a file UNIX philosophy.
nonlogical commented on Show HN: Gosax – A high-performance SAX XML parser for Go   github.com/orisano/gosax... · Posted by u/orisano
JonChesterfield · a year ago
Very nice, thank you!

Unhelpfully my only pain point with XML parsing is colleagues refusing to use XML in favour of json or, in really grim moments, yaml.

So I'm delighted to see a sensible modern web language implementation of the one true data exchange format. Thank you for sharing it.

nonlogical · a year ago
Out of curiosity, what are your top reasons to pick XML over JSON(+jsonschema) or Msgpack/Protobuf, as data interchange? I have come of age as a professional software engineer around the time when industry has started switching from XML to JSON, and as a consequence in the JSON camp, but I am always curious to hear out folks with a different opinion.
nonlogical commented on Interactive examples for learning jq   ishan.page/blog/2023-11-0... · Posted by u/ishandotpage
wwader · 2 years ago
Thanks for the jqjq shoutout! :) i'm quite sure jq is turing complete, jq (and jqjq!) can implement brainfuck https://github.com/01mf02/jaq/blob/main/examples/bf.jq
nonlogical · 2 years ago
Thank you so much for piecing together a great example (jqjq) to help open everyone’s eyes that JQ is not just a JSONpath implementation with weird syntax! I often reference it to drive home the fact that JQ is a full blown language.

The brainfuck one is also gonna be going into my notes. That implementation is quite a terse implementation.

nonlogical commented on Interactive examples for learning jq   ishan.page/blog/2023-11-0... · Posted by u/ishandotpage
jameshart · 2 years ago
The ‘nearly’ Turing complete is something I wonder about. It feels like jq might have some limitations - transformations it can’t do, due to some inherent limitation of how it handles scope or data flow. The esoteric syntax makes it hard to determine sometimes whether what you are attempting is actually possible.

As soon as jq scripts reach a certain level of complexity I break out to writing a node script instead.

And given how rapidly jq scripts acquire complexity, that level is pretty low. One nested lookup, and I’m out.

nonlogical · 2 years ago
jq does often feels like a code golf language. I would say it does have some of those Perl one liner vibes, that is to say that it is often a write-only language.

Also the ‘nearly’ part is because I don’t remember if it has infinite loops or if it is more like Starlark and thus decidable. I do have vague recollections of causing infinite cycles in JQ, it quite as well could be entirely Turing complete.

So far I have not found a single task that JQ was incapable of. And I have abused it pretty bad on my spare time =], for intellectual challenge.

nonlogical commented on Interactive examples for learning jq   ishan.page/blog/2023-11-0... · Posted by u/ishandotpage
nonlogical · 2 years ago
JQ is an insanely powerful language, just to put to rest any of your doubts about what it is capable of here is an implementation of JQ... in JQ itself:

https://github.com/wader/jqjq

It really is a super cool little, super expressive nearly (if not entirely) turing complete pure functional programming language.

You can:

* Define your own functions and libraries of functions

* Do light statistics

* Drastically reshape JSON data

* Create data indexes as part of you JQ scripts and summarize things

* Take JSON data, mangle it into TSV and pipe into SQLite

  cat data.json | jq '<expr>[]|@tsv' | sqlite3 -cmd ".mode tabs" -cmd ".import /dev/stdin YourTable"
And also for prototyping you can also use it to tailor output of APIs to what you need in a pinch, using JQ as a library especially with something like python:

https://pypi.org/project/jq/

As a part of the library you can compile your expressions down to "byte-code" once and reuse them.

Saying JQ is a best kept secret is an understatement. JQ gets more amazing the deeper you dig into it. Also it is kind of crazy fast for what it is.

edit: Formatting fixes

u/nonlogical

KarmaCake day31December 14, 2022View Original