mastodon.online is one of the many independent Mastodon servers you can use to participate in the fediverse.
A newer server operated by the Mastodon gGmbH non-profit

Server stats:

11K
active users

#nfa

1 post1 participant0 posts today

I figured it was time to write a weblog post breaking down the political and illogical farce of Trudeau's executive actions on firearms these last few years.

You probably won't see many posts like this from the far left, but as the saying goes: "When you go far enough left, you get your guns back."

Oh yeah, I should put a link instead of spending all of my time writing an alt-text on that free Tornado spud-gun advert that doesn't even link anywhere.

superhighwayman.com/2025/canad

#Canada #Guns #CanPoli #Politics #Firearms #SKS #I #Bet #Twitter #Has #More #AR15 #Hashtags #than #Mastodon #NFA #PeePee #polievre #Trudeau #Carney #BigBills #Blog #Tornado #Comic #Potato #TooManyHashtags #AI #Assisted #Weblog #NobodyReadsTheseAnyway #RamRanch #FreedumbConvoy #TimBitTaliban (I haven't used those for ages, I will stop now)

#housing #profiteers #corruption Not that I'd suggest any impropriety but..... (I am a former tenant of LBH / Social Housing), I went on one of my trampy adventures to return to find my tenancy had been sold on, the rent increased, I was considered a 'defaulter' ('they' had changed the terms) and was then #NFA (No Fixed Abode). F'ing #capitalist bar_stewards. A bas l'eetat ✊
theguardian.com/society/2025/m

The Guardian · UK housing associations accused of mis-selling ‘affordable’ homes as service charges soar by up to 400%By Jon Ungoed-Thomas

#monqjfa, my #nfa/#dfa, #regex library for #Java got some cleanup in the way finite automata are built. They do not only have the accepting states, but a state may also store a value. The values can be used for special tricks during state traversal. Historically the only "trick" was that this was an accepting state.

The latest refactoring made it clearer that more can be done and how states with values and accepting states are related.

harald.codeberg.page/monqjfa/

Feedback welcome.

#monqjfa, my #nfa/#dfa, #regex library for #Java has a grep-like program as an example of the use of the library. This got a new feature resembling grep's --color option to show matches with colors, using ANSI escape sequences

ooo r='RuleParser->{c:#44ff11}'

Yes, the program is called "ooo" 🙂 Why? ... Why not?

There are more things possible within the braces, the simplest one is

'...->{c}' as a shortcut for '...->{:red}

to get the match in red.

harald.codeberg.page/monqjfa/j

harald.codeberg.pageOooo (monq 4.1.0)declaration: package: monq, class: Oooo

#monqjfa, my #nfa/#dfa, #regex library for #Java has a grep-like program as an example of the use of the library. This got a new feature resembling grep's -l option to only list file names with matches, not the matches themselves. Example

ooo r='import.*map' names=only src

Yes, the program is called "ooo" 🙂 Why? ... Why not?

The names=only is the new feature. As soon as a match is found, the file name is printed and the program moves on to the next file.

codeberg.org/harald/monqjfa

Summary card of repository harald/monqjfa
Codeberg.orgmonqjfamonqjfa

#monqjfa, my #nfa/#dfa, #regex library for #Java got its first new feature during current modernization. The last operation of finite automata/regular languages which was missing: intersection
You can now write a regular expression "some.*stuff&(END)^" which means

Match strings which match
- some.*stuff
- AND (the &) at the same time
- any string NOT CONTAINING (the ^) END

Allows to use .* but avoids a match across a hard end, e.g. the string "END".

codeberg.org/harald/monqjfa

Summary card of repository harald/monqjfa
Codeberg.orgmonqjfamonqjfa

My #Java package #monqjfa for (non)deterministic finite automata (#nfa, #dfa) got an update: Following the advice "eat your own dogfood", I wrote a small application somewhat resembling grep or sed, more to show how the library could be used than pretending to be better than sed/grep/awk. Though it has some coolness in the defaults used 😀 .

codeberg.org/harald/monqjfa#ex

#informatikEdu
#informatik
#endlicheautomaten
#finiteautomata

Summary card of repository harald/monqjfa
Codeberg.orgmonqjfamonqjfa

My #Java package for (non)deterministic finite automata (#nfa, #dfa) updated.

This refactoring/rewrite provides a cleaner API to creating an NFA and compiling a DFA from it.

harald.codeberg.page/monqjfa/j

Computer science courses may visualize NFA and DFA via the included FaToDot. I think Thompson's Construction in the code is quite readable.

codeberg.org/harald/monqjfa

#informatikEdu
#informatik
#endlicheautomaten
#finiteautomata

harald.codeberg.pageNfaBuilder (monq 3.1.1)declaration: package: monq.jfa, class: NfaBuilder

My #Java package for (non)deterministic finite automata (#nfa, #dfa) updated.

You can create massive regular expressions with tons of stop states. Each stop state has a value, so a match is effectively a lookup. Like a hash table where the keys are regular expressions.

Computer science courses may visualize NFA and DFA via the included FaToDot. I think Thompson's Construction in the code is quite readable.

codeberg.org/harald/monqjfa

Summary card of repository harald/monqjfa
Codeberg.orgmonqjfamonqjfa

After years I looked again at a #Java library I once wrote to create (Non)deterministic Finite Automata (#nfa, #dfa). I removed a lot of stuff to trim it to the real core. Now I will slowly add features again.

In contrast to builtin regular expression in Java, this one does DFAs and also allows to visualize them (see FaToDot). Javadoc and tutorial are not up, but source code is on #codeberg .

The name prefix, monq, was not invented by a native french speaker. 😀

codeberg.org/harald/monqjfa

Summary card of repository harald/monqjfa
Codeberg.orgmonqjfamonqjfa