ChubakPDP11

@ChubakPDP11@programming.dev

This profile is from a federated server and may be incomplete. View on remote instance

Thoughts on the Epiphany Browser? (not Chrome botnet crap, or even FF-based, GTK+ WebKit-based) (+ A good framework for web automation?)

I honestly have issues browsing to even the simplest of non-static pages. I think it's like, the graphical version of lynx(1) or w3m(1). I think it's based on X's browser right? So basically, it's based on the Open Webkit Standard. It uses the GTK+ WebKit engine. This engine has a programmatic interface....

ChubakPDP11 OP ,

Those are Linux headers my man. mkdev.h is a POSIX header.

ChubakPDP11 OP ,

This is egregious. standards(7) says Linux is both SuS and POSIX. Either mkdev.h is neither and I am wrong, or there's some shit going on because LXRs list it in older versions of the kernel. In fact if you, I mean me, with my Google recommender system cache, search for 'mkdev.h', an LXR comes up! Just stupid and egregious. I was looking forward to running them. But see, time's moving on from POSIX. People are writing cool supersets of these utilities in Rust. Like: fish, ripgrep, fd, exa and oh so many more! Also, Core Utils is entirely useless now. I just got introduced to the 'Miller' utility, an AWK-like string processor that, instead of doing line-based, does key-value. There's jq too. I think I am the 'new generation' of terminal users. I am not very young, 31, but when I started using a PC at 10, it was a Windows XP machine --- I did not even get to experience the 'clunky' days of graphical shells. But it's been a while now that I am just constantly using Kitty to interface with my system. Barely use the WM. That's why I have decided to make my own WM that fuses in a terminal but let's more on or now.

So yeah Heirloom Toolchest is useless. But at any case, you wanna try the original AWK, someone has pushed it to most of the repositories for Debian-based systems. sudo apt install oawk. It's good if you suck Kernighan's dick whilst fondling Aho's balls like I do. But besides historical reasons why use it. AWK was made useless in fucking 1985 when Perl came lol.

My idea for Vdl, Assembly of Vidya: A common runtime VM for vidya, supporting a postfix stack language ---- basically, PostScript for vidya of 'Vidya Description Language', an standardized one!

I began programming when I was 16 and like most people my age (31) it was with some gaming-related DSL. Personally for me it was GML. I made a tetris game which my younger brother played to death but ever since the closest interest I have to vidya is Ncurses and X11. Which makes me think, why is there not such standard for...

A tokenizer for EBNF written in R7RS Scheme | A full dive into EBNF, how it works, and its relationship to Chomsky Hierarchy ( gist.github.com )

About a few days ago I posted this, asking for help to implement the parser. It seems like I boomer'd and I forgot to set the Gist to public. This is public (hopefully!). Someone did gave me a link, but I kinda could not 'parse' it (get it? get it?). I still would appreciate it if you would give me guidance in parsing with...

ChubakPDP11 OP ,

I will download it all and mirror it on my server and Github pages. Hate to see it go. What happened to this dude? Was he old or young?

ChubakPDP11 OP ,

Keep in mind that in OG regex, period is used to concat.

ChubakPDP11 OP ,

What should we talk about then, glob patterns (which are NOT regular expressions, for the love of all that is holy and unholy, stop calling glob patterns RE!)

ChubakPDP11 OP ,

True, but see, all these build up on the theoretical regex. The theoretical regex indeed has only 3 operators: dot for concatenation, pipe for alteration and the 'kleene star' [re: Sipser's]. These 3 operators can express a finite state automata. You don't really need all that other operators. Read this: https://swtch.com/~rsc/regexp/regexp1.html Algorithms like Thompson construction can translate a regex to a non-deterministic automata quite quickly, and then from there you can make a DFA or just simulate the NFA.

I would not call PCRE 'regular expression' really. If you read the article I gave you it explains why they are mostly a practical utility than a theoretical groundwork. The regex in use today is far from the regex one learns about in books.

I think regex is abused. People use it to parse context-free grammars. Extremely intricate and feature-rich patterns cause people to make mistakes, and end up with security holes!

That being said, I really enjoy NeoVim's regex. I also like Perl's. But I would not rely on them for parsing, or even lexing.

Bringing the cancer of the MODERN WEB (TM) to one of the last bastions of the old web (aka the real web!). How Kafkaesque. ( www.youtube.com )

This girl acts like Wikipedia owners don't realize this shit. It's about principles. Modern web is simply cancer that is eating out the planet from the inside, one TCP segment at a time (although with HTTP3 and QUIC we gotta call it a datagram!)....

ChubakPDP11 OP ,

That's what they are doing with Fandom (formerly Wikia). Right?

'Rust manpages' -> UNIX-style manpages for Rust (still WIP, just letting you know of the progress) --- Thoughts? ( pastebin.com )

The URL leads to a pastebin for a Ruby script I have been writing for the past 2-3 days. It's called mk_rustman.rb on my system. They will turn JSON files for Rust docs into UNIX manpages, with Groff ROFF macros for man (groff_man)....

ChubakPDP11 OP ,

Exactly! I still remember crawling through manpages back in the day. It's very nice.

ChubakPDP11 OP ,

Ever heard of an 'static analyzer'?

ChubakPDP11 OP ,

You guys do realize that, Rust, a compiled, statically-typed systems language is not a good suit for scripting right? I understand, when I was a beginner years ago I used Rust for scripting. That was because I was clueless. Right now I am using Rust for what it's suited for, systems programs. This is a scripting task. I really ask you to learn about the difference between scripting and programming.

ChubakPDP11 OP ,

'man' is not a single program. Manpages, as I said, are written in ROFF. These are then processed and then paged. I use Most to page them. You can use less or more or any other pager to page them. I am not going to write a pager, I am going to write a script that translates the JSONs of manuals to ROFF.

Is there any demand left for 'game systems developers'? As in, people knowledgeable on Win32 or POSIX API, PE/ELF, Compilers and Interpreters, etc, when it concerns games exclusively? (+UNIX engine?)

I don't think my knowledge is complete about Windows side of things (PE and Win32 API, MASM, VC++ etc) so I never dared apply for such jobs. But I have never seen one either. I think it theoretically should exist. The systems side of gaming, especially developing a portable framework, developing retargetable, optimizing...

ChubakPDP11 OP ,

I was invited to a FLOSS engine project, I think it was Piston. I did not know much so I just bailed. I usually prefer making stuff from scratch because my aim is to learn, I know the software I write has no use. Like rn I am writing a UNIX shell. Just to learn (I just remoted it, see my profile).

Still, I doubt I will ever get a systems job. I don't have a degree. I dropped out. I will get one eventually, but I doubt the shirtty thirdie for-profit college I can afford is going to be attractive to recruiters.

I do have a job currently, it pays enough for thirdie living especially given the devaluation of currency here. I just want to have a job where I am not ignored for days by my client, like the job I have now.

I think it's everyone's dream to make a FLOSS that attracts pay piggies, I would like that too but I don't put much stonk on it. It's as delusional as people who clone a Todo app and expect to get hired by anyone.

Delusions run rampant in this discipline sadly. People are entitled. I think a degree is important because I would personally not entrust a non-degree holder with the stuff I personally like.

I try not to be entitled but I need to eat.

Anyways sorry if I am rambling.

ChubakPDP11 OP ,

Most of my programs are in C Link. Would this turn them off? I have no issue learning a new language mind you, let alone, superset of one I know. What worries me is the standard library. It's not hard to learn a language, it's hard to learn its standard library. For example, Rust has an extremely non-POSIX-ly STD. It really turns me off. To this day I have no clue how to close a file in Rust. I am implementing AWK in Rust, since there's already an AWK in Go and I think there must be one in Rust. However there's no damn close function! There's no file descriptors. I know Rust does most of its shit during compile-time and it's mostly a meta language with focus on denotational semantics (which I just happen to write a Gist document about here) so I finally had to make a ChatGPT model to explain Rust to me. I have a ChatGPT model for most languages, just to look them up.

I am also making a Ruby script to create manpages for Rust. Based on the JSON files that come with Rust-Doc package on Pop_OS!. If anyone wants to help me with those. that would be great. Thanks.

ChubakPDP11 OP ,

As it happens, I am in the process of making a documentation language with equation and graph support, taking hints from GraphViz, and initially targets PostScript. Structurally, I know how DAGs work. I have used DAGs in this abandoned compiler I was working on:

https://github.com/Chubek/Batmite

dag.c

It also has a graph coloring code.

I stopped working on it. I also learned about graphs in HS and first semester of college at DiscMath class, but they were basic info. I then learned about graphs by reading Rosen's discmath. I wanna read 7th edition. But ChatGPT has made me lazy. Why read a book fully when I can make a model, tell it to absorb the book (I think they have downloaded the entire libgen into their model? Am I wrong here? Why does it know every book libgen has, and does not know every book ligen does NOT have?) and then quiz it? haha.

ChubakPDP11 OP ,

Yeah you are right. Still, the sanctions make things hard to find job in most American or even Western European countries. American countries literally need a permission from the state department to 'officially' hire from here, but Western European countries avoid hiring Iranians because banking is extremely limited -- at least in theory. I have 2 PayPal accounts, one under my own name, one under some dude's name I don't know. With courier services it's very easy to transfer money. Even given the 'recent developments'. Not to mention crypto. Also, banks such as Turkey's Ziraat open accounts for Iranian nationales in a day or two, problem is, you have to be physically there. I am home-bound, a homebody. That is why I dropped out of JDM. I could not simply convince myself to step out of the threshold of our home. It's either very cold, very hot, and when it's temperate, my nose starts running like a ravine. I have lost both my male and female friends as well, to pill addiction (mine, not theirs). Coffee shops here have this thing called 'public table' to make up for the lack of bars and clubs, but I don't simply want to go out. The last time I went out was 6 months ago, no joking. I have two psychiatrists. I just pop Rialin and code.

All the 'cool jobs' here are either military shit which puts you on Bibi's radar, or college-educated only. Shit work exists. But even they don't do remote. Fuck them. Currency is so devalued t makes no sense to work locally.

Sorry if I am trauma-dumping (why is it a word anyways, these damn muricans label everything) --- just venting.

ChubakPDP11 OP ,

There should be plenty. I applied to two in Turkey, they were fine jobs. All these countries are even healthier than America in some aspects, economy-wise. The jobs in Turkey were cool af. There are some duds in BRIC like Turkmenistan though. I think I have to focus my attention on a Christian nation, rather than a Muslim nation. Chances that there would be expats from English-speaking countries in Georgia is much higher than being one in Turkey. And that is the ultimate problem I face, language. I speak Persian natively and English at L2 level, and I would have issues communicating. I once interviewed for an on-site data pipeline engineering job in the capital, I wanted to fail it because moving cities is impossible for me. I interviewed with a Russian dude, or was he Ukrainian or Belarusian, anways, he worked for the Iranian company in questions and his accent was thick, my accent was thick and even if I wanted to pass the test and rail that cute recruiter daily and nightly and ever so rightly, I would not have been able to.

Let's not forget about Russia. They have a much stronger software industry than BRIC nations.

I got one callback from Turkish company, they were making Real-time OSes. Zilch. I don't think even if the Ayatollah rizzed Biden and vice versa and Iran was a member of G7 + 2, it would not have made a difference, neither for BRIC, nor for EU, and none for NA ,os SA or SEA. It's just impossible to get a job when I think of myself worse than dirt.

Plus I don't know much either.

Thanks.

ChubakPDP11 OP ,

Thanks a lot. Really appreciate it.

ChubakPDP11 OP ,

Thanks man. Immigration is not on my docket though. I'm too sedentary.

I feel proud of myself to recognize that this iconic dude is not at a 'computer', rather, a [dumb] terminal! ]Or...?] ( knowyourmeme.com )

Terminals are NOT computers. At least dumb terminals are not. Smart terminals do have logic circuit, but dumb terminals work mostly like televisions, except they have protocols (like when you send a SIGINT signal with CTRL+C, and you are a 80s academic working on his terminal at UC Berkeley, then your UNIX implementation ---...

ChubakPDP11 OP ,

@LiveLM
@lemmyreader
@Max_P
@Shareni
@CameronDev
@maorofl

Thanks a lot. I had reverted it to Zsh, now made it Fish again.

However, there's a problem that I hope this will fix, but I don't count on it. I don't know wtf happened, but whenever I launch a terminal emulator, it just hangs? I have to SIGINT to launch into the shell sessions. I hope this fixes, but what if it won't? What is keeping it? Is there a startup program idling it?

Like, the REPL won't show, just a blank terminal, I use Kitty; but the emulator that is default (GNOME?) won't work either. My full specs are in my Github profile -> github.com/Chubek

Thanks.

First draft grammar of Xeph, a non-pure functional language, a superset of ASDL. Input is needed. (+ guide on reading EBNF) ( gist.github.com )

Please tell me what you honestly think of it --- this is not a 'labor of love' exactly, I only spent a few hours on it. But I think its a strong foundation for what comes next. The implementation, I hope, will be an orgy of love!...

ChubakPDP11 OP ,

You showed up! So, about this, you see how 'let' binding does not allow you to add parameters right? (the val binding does) I think this is a good place to use tacitness. I will basically add Perl-like, POSX-shell-like features. To further add concatativenss, I shall add OCaml-style shell (|>). I will take a page from F#'s book and add a '<|' too. I was originally planning to have these two operators be defined orthogonal-like via the operator binders (infix, infixr etc) but I think it's necessary to bake them in.

So any other cool stuff? I plan on having intrinsics like 'add' and 'or' etc. Since it is translated down to C, I will add a two-way FFI, similar to the language I am writing it in, Cyclone Scheme.

THANKS.

ChubakPDP11 OP ,

I don't understand. Am I doing something against the rules of this instance? I have posted stuff like this before?

ChubakPDP11 OP ,

Uh apologies. I did not realize that.

AllocPPx.pl -> A Perl script that preprocesses C with garbage collection! ( gist.github.com )

Automatic garbage collection in C is possible with libraries like libgc, but with allocppx.pl, you can just preprocess your file into generating heaps, and these heaps can be used for memory allocation. The type of GC is used, mark and sweep + reference counting. Every memory allocation MAY have a trace, and this trace can be...

ChubakPDP11 OP ,

No problem my good man. Have fun.

ChubakPDP11 OP ,

Cool. I can't see the implementation though? Thanks a lot man. Really means a lot. @Corbin knows a lot more though. (since I called Rust a 'shitlang' I realize you may be ironic --- Since Rust is more of a 'fandom' than a 'compiler', but I'm not going to offend you by assuming so. If you are truly giving me props, it's really appreciated! :D )

ChubakPDP11 OP ,

Cool, as I just said, Rust is more of a 'fandom' than a 'compiler' really, it's also not much of a 'language'. I use C because it's standardized by ISO, not some basement-dwelling incels who keep RFCi'ing their ideas instead of implementing it their own.

ChubakPDP11 OP ,

Alright sorry. I'm just trolling people. If you go to my profile I have a lot of Rust projects. @hascat @FizzyOrange

'Don't parse markup languages with Regex' is an annoying trollpost and it should die... right?

Look 0 of my work involves HTML, well maybe 1-2 percent does; however, about 60% of my work involves regular expressions, grammar, lexical scanning and syntactic parsing, so it still irks me, and will irk me beyond my grave, when people say shit like 'Don't parse HTML/Markdown/etc with regex! Use a parser generator!'...

ChubakPDP11 OP ,

Thanks. I actually have a parse-related question which I will post somewhere soon (as in 2-3 minute).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • khanate
  • WatchParties
  • Rutgers
  • loren
  • Lexington
  • cragsand
  • mead
  • RetroGamingNetwork
  • mauerstrassenwetten
  • MidnightClan
  • xyz
  • PowerRangers
  • AnarchoCapitalism
  • kamenrider
  • Mordhau
  • itdept
  • neondivide
  • AgeRegression
  • Teensy
  • WarhammerFantasy
  • space_engine
  • learnviet
  • bjj
  • supersentai
  • steinbach
  • electropalaeography
  • jeremy
  • fandic
  • All magazines