** December adventure **
Over the past couple years Iāve done the advent of code to varying degrees. I thought I was going to do it again this year but decided to try something different. Iāve been calling what came together aā December Adventure.ā
It isnāt anything fancy; throughout December I aim to write a little bit of code everyday. So far Iāve written a bit of apl, bash, elisp, explored a bunch of flavors of scheme, and star ⦠ā Read more
`
``
`
@movq@uninformativ.de yeah.. i rewrote it a few times because i thought there was something breaking.. but was mistaken
though now i am seeing a weird cache corruption.. that seems to come and go.
I was inclined to let this go so as not to stir anything up, but after some additional thought Iāve decided to call it out. This twt:
is exactly the kind of ad hominem garbage I came to expect from Twitterā¢, and Iām disappointed to see it replicated here. Rummaging through someoneās background trying to find a āgotchaā argument to take credibility away from what a person is saying, instead of engaging the ideas directly, is what trolls and bad faith actors do. Thatās what the twt above does (falsely, I might addāwhatās being claimed is untrue).
If you take issue with something Iāve said, you can mute me, unfollow me, ignore me, use TamperMonkey to turn all my twts into gibberish, engage the ideas directly, etc etc etc. There are plenty of options to make what I said go away. Reading through my links, reading about my organizationās CEOās background, and trying to use that against me somehow (after misinterpreting it no less)? Besides being unacceptable in a rational discussion, and besides being completely ineffective in stopping me from expressing whatever it is you didnāt like, itās creepy. Donāt do that.
I was just reminded of this interpreter for an APL/J-like language by Arthur Whitney, the absolute weirdest bit of C code Iāve actually gotten something out of, and thought Iād share: https://code.jsoftware.com/wiki/Essays/Incunabulum
@mckinley@twtxt.net Haha, while composing I was wondering two or three times whether I should throw my thoughts in an HTML page instead. But out of utter laziness I discarded that idea. ĀÆ_(ć)_/ĀÆ
@prologic@twtxt.net Error handling especially in Go is very tricky I think. Even though the idea is simple, itās fairly hard to actually implement and use in a meaningful way in my opinion. All this error wrapping or the lack of it and checking whether some specific error occurred is a mess. errors.As(ā¦)
just doesnāt feel natural. errors.Is(ā¦)
only just. I mainly avoided it. Yesterday evening I actually researched a bit about that and found this article on errors with Go 1.13. It shed a little bit of light, but I still have a long way to go, I reckon.
We tried several things but havenāt found the holy grail. Currently, we have a mix of different styles, but nothing feels really right. And having plenty of different approaches also doesnāt help, thatās right. I agree, error messages often end up getting wrapped way too much with useless information. We havenāt found a solution yet. We just noticed that it kind of depends on the exact circumstances, sometimes the caller should add more information, sometimes itās better if the callee already includes what it was supposed to do.
To experiment and get a feel for yesterdayās research results I tried myself on the combined log parser and how to signal three different errors. Iām not happy with it. Any feedback is highly appreciated. The idea is to let the caller check (not implemented yet) whether a specific error occurred. That means I have to define some dedicated errors upfront (ErrInvalidFormat
, ErrInvalidStatusCode
, ErrInvalidSentBytes
) that can be used in the err == ErrInvalidFormat
or probably more correct errors.Is(err, ErrInvalidFormat)
check at the caller.
All three errors define separate error categories and are created using errors.New(ā¦)
. But for the invalid status code and invalid sent bytes cases I want to include more detail, the actual invalid number that is. Since these errors are already predefined, I cannot add this dynamic information to them. So I would need to wrap them Ć la fmt.Errorf("invalid sent bytes '%s': %w", sentBytes, ErrInvalidSentBytes")
. Yet, the ErrInvalidSentBytes
is wrapped and can be asserted later on using errors.Is(err, ErrInvalidSentBytes)
, but the big problem is that the message is repeated. I donāt want that!
Having a Python and Java background, exception hierarchies are a well understood concept Iām trying to use here. While typing this long message it occurs to me that this is probably the issue here. Anyways, I thought, I just create a ParseError
type, that can hold a custom message and some causing error (one of the three ErrInvalid*
above). The custom message is then returned at Error()
and the wrapped cause will be matched in Is(ā¦)
. I then just return a ParseError{fmt.Sprintf("invalid sent bytes '%s'", sentBytes), ErrInvalidSentBytes}
, but that looks super weird.
I probably need to scrap the āparent errorā ParseError
and make all three āsuberrorsā three dedicated error types implementing Error() string
methods where I create a useful error messages. Then the caller probably could just errors.Is(err, InvalidSentBytesError{})
. But creating an instance of the InvalidSentBytesError
type only to check for such an error category just does feel wrong to me. However, it might be the way to do this. I donāt know. To be tried. Opinions, anyone? Implementing a whole new type is some effort, that I want to avoid.
Alternatively just one ParseError
containing an error kind enumeration for InvalidFormat
and friends could be used. Also seen that pattern before. But that would then require the much more verbose var parseError ParseError; if errors.As(err, &parseError) && parseError.Kind == InvalidSentBytes { ⦠}
or something like that. Far from elegant in my eyes.
Hi, I am playing with making an event sourcing database. Its super alpha but I thought I would share since others are talking about databases and such.
Itās super basic. Using tidwall/wal as the disk backing. The first use case I am playing with is an implementation of msgbus. I can post events to it and read them back in reverse order.
I plan to expand it to handle other event sourcing type things like aggregates and projections.
Find it here: sour-is/ev
@prologic@twtxt.net @movq@www.uninformativ.de @lyse@lyse.isobeef.org
āBasedā Paganism vs. Christianity
Iāve been meaning to write about Paganism recently. I will frame it as a response to an email I received within the past day or so:
Hey Luke,
First off, I would like to thank you for all your efforts in making everything
you know accessible to everyone. You have exposed me to some of the most
thought-provoking people on the internet and Varg is one of them. I was
wondering if you can write an article or make a video on what you think about
Vargās Paganism in r ⦠ā Read more
just thought to myself āhopefully a bigger pandemic hits, that sounds like itāll delay ai capabilities progresā, which, no,,,
I seem to have way more ideas for things I want to write when Iām out and about than when Iāve got some time to write at the end of the day. I think this has been going on for months with multiple thoughts Iāve had.
The hardest technical solutions are right in front of your face.
Nassim Taleb had this old anecdote of the sheer absurdity that while the suitcase and other bags had existed for lifetimes, it was only in the 1990ās that people had the idea to put wheels on the things so they didnāt have to haul them around airports all day with their strength.
It reminds you of the fact that while children in the Incan Empire did indeed have some toys with wheels, apparently no one thought to use the wheel to make a simple ⦠ā Read more
the right level for solving the hard problem of consciousness is within existing science/within philosophy/within meta- or pre-philosophy/needs a fully new paradigm of thought
We assembled one of those yesterday: https://www.omlet.de/shop/h%C3%BChnerzucht/walk_in_run_h%C3%BChnerauslauf/ Way more exhausting than I thought. 𤣠Iām so sore ā¦
rationality is having strong opinions about things nobody has ever thought about before.
@niplav@niplav.github.io and I thought evidentials were invented by the Lojban people or maybe North American amerinds, not Eastern Europeans
Things You Thought You Knew ā Venus Pizza, Wavelengths, and Horsepower ā Read more
iām finally starting to get an inkling of how thoughts relate to/arise in the mind.
blog++; thoughts on my relationship to IT
Given that we donāt have a āhome phoneā, whatās the best way to create a āhunt groupā for my partnerās and my cell phones? My first thought is Asterisk on a VPS, but my knowledge of such things is years out of date. Is there a better way?
the silence prickles, a mind too fast for meaning, unwrapping my thoughts
āi admire your optimismā=āwow, you are way more r-worded than i thoughtā
å ³äŗ Go 代ē ē»ęēęč
å ³äŗ Go 代ē ē»ęēęč- åęå°åļ¼ https://changelog.com/posts/on-go-application-structure
- åęä½č
ļ¼Jon Calhoun
- ę¬ęę°øä¹
é¾ę„ļ¼ https://github.com/gocn/translator/blob/master/2022/w2_Thoughts_on_how_to_structure_Go_code.md
- čÆč
ļ¼ lsj1342
- ę ”åÆ¹ļ¼ xkkhyć zhuyaguang
\*\*\*
⦠ā Read more
@prologic@twtxt.net I have thought about this because even though it doesnāt happen often, when it does it bothers me greatly. I havenāt found a solution. How about you? What could be done to avoid this from happening?
I know we have been over this in more than one occasion. Ideas about editing timeouts, or not allowing to edit/delete came up, but were quicky discarded as absurd.
** Star Wars, and a year in review **
I tried to write aā year in reviewā kinda post, but it got wicked melodramatic pretty fast. This year has been a slogā¦it really fucking sucked.
Rather than reflect on it further, I thought Iād write about something vapid that Iāve been thinking a bit about lately instead: Star Wars.
Despite my best efforts, Iāve always loved Star Wars. As a child I spent hundreds of hours pouring over novels, and comics, and books of sch ⦠ā Read more
Things You Thought You Knew - Bada Bing! with Neil deGrasse Tyson ā Read more
I donāt know how to browse the web anymore. [[https://manuelmoreale.com/thoughts/i-don-t-know-how-to-browse-the-internet-anymore]] #links
@lyse@lyse.isobeef.org I thought it was just me. I drives me nuts to try reading on that page. I guess I am no longer capable to look at old CRT monitors without side effects.
@thecanine@twtxt.net thoughts and prayers
š¤ š Reconsidering moving Yarn.socialās development back to Github: Speaking of which (I do not forget); @fastidious@arrakis.netbros.com and I were discussing over a video call two nights ago, as well as @lyse@lyse.isobeef.org who joined a bit later, about the the whole moved of all of my projects and their source code off of Github. Whilst some folks do understand and appreciate my utter disgust over what Microsoft and Copilot did by blatantly scraping open source softwareās codebases without even so much as any attempt at attribution or respecting the licenes of many (if not all?) open source projects.
That being said however, @fastidious@arrakis.netbros.com makes a very good and valid argument for putting Yarn.socialās codebases, repositories and issues back on Github for reasons that make me ātornā over my own sense of morality and ethics.
But I can live with this as long as I continue to run and operate my new (yet to be off the ground) company āSelf Hosted Pty Ltdā and where it operates itās own code hosting, servicesa, tools, etc.
Plese comment here on your thoughts. Let us decide togetehr š¤
A Short Review of Selling on Tindie
I started using the Tindie platform in April to sell my WiFiStation kits. Iāve now sold out all of my initial inventory and am not planning on making any more, so I thought Iād offer my opinions of Tindie as a platform for selling things. ā Read more
Things You Thought You Knew - Metric system, acceleration, and heat shields with Neil deGrasse Tyson ā Read more
Appleās event on Monday is bringing, as always, speculation to the table. One thing most outlets seem to agree is the introduction of an āM1Xā chip, thought Apple might call it differently. M1X might also mean, M1(we donāt know what comes after, or next generation). Either way, I would really like to see the return of the 27ā iMac, but I will not hold my breath. Nevertheless, Monday is going to be an exciting day for many, including me! š
@movq@www.uninformativ.de This is awesome! Your server/connection is slow, thought. It took ages to load the GIF! Off topic, what font are you using on that screenshot?
Things You Thought You Knew: Why Does Ice Float? ā Read more
30 free and open source Linux games ā part 3
With Linux celebrating itās 30 year anniversary, I thought Iād use that as an excuse to highlight 30 of my favorite free and open source Linux games, their communities, and their stories. If youāve havenāt ā Read more
A screenshot of a very tiny c program written on System7
Iāve got to use macOS by nature of my work. Lately Iām increasingly down on this. Here I will not re-hash anything about the current state of Appleās hardware and software ecosystem. I donāt care.
Wanting to take a trip down nostolgia lane, however (to when I was 2 years old) I thought Iād install Mac OS System 7. What follows is a quick guide for doing the sa ⦠ā Read more
I was receiving strange requests to mine spartan server, so i fixed that. Someone wanted to hack me (they thought it is webserver), someone tryed to send request from some browser on mac :)
I have launched my owwn tilde on raspberry pi zero! But for now avalible only thought tor. If interested message me on irc
A beloved colleague passed away after a terrible car accident a couple of days ago. Thoughts go to her family and colleagues.
Follow-up question to follow-up thought: āWhat does it mean if someone replies with a number on [1, 7)?ā
Random follow-up thought: āOn a scale from 7 to 14, how basic am I?ā
guy who has had unkind thoughts about Eliezer Yudkowsky
@niplav@niplav.github.io Re: Liber Augmen: Not a whole lot of it is new to me either, but I thought the method of delivery (a single page full of short descriptions of things) is super interesting as a mindspace-delivery device
Surely people have thought about this, but is it so useful to include proofs in textbooks?
Programs and Equipment I Use
After many requests, here are the programs I use for everything. Iām only putting here programs I consider tried and true and have used for a while.
Iām about getting things done quickly and having as little space between my thoughts and actions on the computer.
I like having vim-like bindings and prefer running programs in the terminal for simplicityās sake. That said, Iām very much against the cringey meme that things ⦠ā Read more
@movq@www.uninformativ.de āRandom thought: Would be great if you could do for i in ...; do something "$i" & done ; wait
in a Shell script, but with the Shell only spawning one process per CPU.ā -> Interesting which annoyances stay in the back of the head ā Iād never articulated this, but itās absolutely true that this would be great.
e.g. editing a text ā I thought i was done with it!
@pbatch@pbat.ch āWriting a ātweetā is low-friction, and the medium forces you to chunk out ideas into (mostly) self-contained thoughts.ā <3
Writing a ātweetā is low-friction, and the medium forces you to chunk out ideas into (mostly) self-contained thoughts.
Never thought Iād want a 6K monitor, but Iām running VS Code and it sure would be nice to have a little bit more width. The proper layout for the task Iāve been doing is four editors wide, plus some more space on the left for a file picker.
@vain@www.uninformativ.de the truth is, i never āgotā or liked twitter. i think itās way too noisy and a terrible way to have a conversation, what with the character limit and all. and then mastodon came along and i thought it would be different, but then it became too twitter-like. i get what you mean about twtxt and discoverability, that is one of its drawbacks.
@prologic@twtxt.net My thoughts on it being if they switched from a different way of hosting the file or multiple locations for redundancy..
I have an idea of using something like SRV records where they can define weighted url endpoints to reach.
notation as a tool of thought [[https://www.jsoftware.com/papers/tot.htm]] #links
thought it might be interested to post some of the code used to produce one of my !breathing_cards: !waigel
@prologic@twtxt.net to answer some of your previous questions, iām using txtnish for my timeline and user controls, and plain twtxt for posting. the alternative to that would be setting up a bunch of shell aliases or small scripts. or making my own client in Go. Thereās a thought⦠;)
@prologic@twtxt.net Iā\āve thought through the git issue a bit. Comments on https://github.com/jointwt/twtxt/issues/38
if you thought emails were great at getting stuff lost, wait til you check out this thing called twtxt
suddenly I have an urge to build a concatenative macro language to go along with this !txtvm project of mine. Together, they maybe could build a more @!(ref āthoughtful_programmingā āthoughtfulā)!@ !runt? #halfbakedideas
@lyxal@twtxt.net My thoughts exactly! :-D
@lyxal@twtxt.net My thoughts exactly! :-D
a concept thatās organically grown with my !literate_programming efforts is this idea I call a !proof_of_thought #literate_programming #thoughtful
I never thought Iād ever say this, but I am officially done with Csound. Iāve been using Csound since I was 16 years old, but now I feel like throwing my copy of the Csound book in the trash. Good riddance.
@mdosch@mdosch.de Oh wow. I thought Apple was the only org out there shipping zsh by default. What was their rationale for not defaulting to bash?
You are angry about the Marxist movement of the left?
Hey you thinker, here are some thoughts for you to ponder. STOP trying! We are preprogrammed not to trust anything that doesnāt look, feel, or smell like us. The more someone looks like us, and talks like us, the more trustworthy they appear to us. The second we meet someone we judge them. We judge [ā¦] ā Read more
Woke up after six hours of uneasy dreams and thought āat least I havenāt been transformed into a giant bug.ā
Posted to Entropy Arbitrage: Free Social Networking Showdown - Final Thoughts https://john.colagioia.net/blog/media/2020/04/18/thoughts.html #socialmedia #freesoftware #socialshowdown
@tux0r@rosaelefanten.org holy moly, ed? I thought Iād be the only ed user Iād ever hear about. (2) http://www.catb.org/esr/src/ should be fine in Dropbox, too, right?
attempting to build arm-none-eabi cross compiler from source. why have I never thought of this?
@mdosch@mdosch.de I thought it was a nice practice to share interesting twtxt-ers through a follow tweet
This wonāt get me a āDear Mr. Cookā mention in an Apple event, but I thought it was pretty cool to be able to use my iPad in the kitchen without touching it. Voice Control is pretty good.
Non-programming thought of the hour: āI want pancakesā. Also the non-programming thought of the previous hour, and the hour before that.
Programming thought of the hour: āif everything knew about everything else, I wouldnāt have this problem.ā Of course, Iād have different problems laterā¦
@mdosch@mdosch.de that would be great! i thought i had the audio working for a second but then i didnāt
Never thought Iād see a night-owl-pride thingo like this.
One can construct a bingo sheet to group together anybody. A bingo sheet constructed to group together people who donāt act or think similarly will not reliably predict those peopleās thoughts or actions.
disinfo never dies. I ran into somebody the other day who thought LSD stayed in your spinal fluid permanently & caused flashbacks ā despite definitely not being alive when that BS was last seriously floated.
Reading the DomeKano manga, I keep running into stuff where itās like, I donāt remember them happening in the anime but they must have, but at the same time I would have thought I would have remembered them. Maybe the constant bombshells produced twist fatigue.
Distinctions in Types of Thought | Otium https://srconstantin.wordpress.com/2017/10/10/distinctions-in-types-of-thought/
Band name of the day: new evidence for the strange geometry of thought
If you thought Quoraās anime tag was bad, wait until you see their The Beatles tag. If you think thatās bad, wait until you get on the automatic recommendation list for answering questions in āacronymsā.
Extending Interactivity ā Creatures of Thought https://technicshistory.wordpress.com/2019/01/24/extending-interactivity/
A Flower for Your Thoughts | Laphamās Quarterly https://www.laphamsquarterly.org/roundtable/flower-your-thoughts
Finite of Sense and Infinite of Thought:
A History of Computation, Logic and Algebra https://pron.github.io/computation-logic-algebra
Am I the only one who thought the Bumblebee trailer was a trailer for a gritty remake of Herbie the Love Bug?
Periodic reminder that even Tim May thought bitcoin hype was out of control: https://www.coindesk.com/enough-with-the-ico-me-so-horny-get-rich-quick-lambo-crypto
Thoughts on (and pics of) the original Macintosh User Manual ā peterme.com https://www.peterme.com/2007/08/27/thoughts-on-and-pics-of-the-original-macintosh-user-manual/
Thought as a Technology http://cognitivemedium.com/tat/
Thoughtful Programming and Forth Philosophy, Essay by Michael Misamore http://www.ultratechnology.com/forththoughts.htm
Thoughtful Programming and Forth http://www.ultratechnology.com/forth.htm
It too quiet here for a Monday morning. I swear if I didnāt know better, I would have thought someone died.
Dodo Thoughts https://www.ribbonfarm.com/2018/09/20/dodo-thoughts/
Read some excepts from a book I randomly found yesterday. While the writing was a little dry, I thought it could be an interesting read. However when I looked on Amazon, found out the book was 80 USD. Iām sorry but it was not that interesting.
@mdosch@mdosch.de: Yes. I first thought gopher would be a good protocol for this purpose. But HTTP has the advantage, that you donāt always need to fetch the whole file. You can do a HEAD and check for last-modified header.
Suffering-oriented programming - thoughts from the red planet - thoughts from the red planet http://nathanmarz.com/blog/suffering-oriented-programming.html
@sdk@codevoid.de Thatās an interesting thought. I Know most are text files but at one time there was someone that used a python CGI Script. That person would have had to make a script for the follows.
Any thoughts about decentralized ways to discover twtxt users? Iāve set up https://codevoid.de/tw.following.txt which is my following list plus whatever comes in via user-agent. If everybody would set this up with the with an added .following we could fetch each others list and discover users that way.
Zero-copy deserialization in Julia http://scattered-thoughts.net/blog/2018/08/28/zero-copy-deserialization-in-julia/