ChubakPDP11

@ChubakPDP11@programming.dev

This profile is from a federated server and may be incomplete. Browse more on the original instance.

LLVM, MLIR (or any ready-made IR) are not a good fit for learners. Roll your own backend pls if you wanna learn (same shit with LP generators!)

These toolchain are created for experts to create industrial-level compilers. Even if you think you got a syntactic design concept that is such hot shit that you can’t wait to get it bootstrapped, even if hell, it proves Rice’s theorem wrong, please, write a simple interpreter for it to prove your syntax works. In fact, I...

ChubakPDP11,
  • Noko

I just remember about Noko! Also, there’s the one which Perl 6 uses. Forgot its name. Noko seems better imho. Need to look into BEAM.

Thanks!

ChubakPDP11,

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,

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

ChubakPDP11,

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,

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: 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,

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,

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

ChubakPDP11,

Ever heard of an ‘static analyzer’?

ChubakPDP11,

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,

‘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,

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,

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:

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,

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,

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,

Thanks a lot. Really appreciate it.

ChubakPDP11,

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

'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,

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines