ChubakPDP11

joined 9 months ago
[–] ChubakPDP11@programming.dev 0 points 6 months ago

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.

[–] ChubakPDP11@programming.dev 1 points 6 months ago (1 children)

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@programming.dev 0 points 6 months ago (2 children)

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

[–] ChubakPDP11@programming.dev 1 points 6 months ago

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

[–] ChubakPDP11@programming.dev 2 points 6 months ago

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

[–] ChubakPDP11@programming.dev 0 points 6 months ago (3 children)

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@programming.dev 2 points 6 months ago

Thanks a lot. Really appreciate it.

[–] ChubakPDP11@programming.dev 1 points 6 months ago (1 children)

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

[–] ChubakPDP11@programming.dev -4 points 6 months ago (1 children)

Ever heard of an 'static analyzer'?

[–] ChubakPDP11@programming.dev 1 points 6 months ago (2 children)

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@programming.dev 2 points 6 months ago (4 children)

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.

view more: ‹ prev next ›