[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: Cow maid.jpg (855 KB, 917x1347)
855 KB
855 KB JPG
What are you maids working on?

Last one: >>106706232
>>
For me it's GNU Make, C with GNU extensions and tcl/tk.
>>
dragon bangmaids
>>
Last night I was reading about SPV_NV_bindless_texture and then I went to go look if Slang supported it and someone had submitted a patch for it 2 hours prior.
Weird coincidence.
>>
boobies... a shitty parser for a shitty format in Lua.
>>
I'm working on an NES emulator (C), an Awk to C compiler that optimizes the code, and compiles the ERE into a web of Gotos, like Re2C and Flex (OCaml), and Diyrbal, an interpreted language (in C, but this might change later, perhaps D? Or maybe C++. Recommend).

Someone on the previous thread told me it would be cool to implement the JVM in Rust. So I'm looking into that as well. Fed a buncha books to Opus, and I'm planning ahead as I prompt back and forth.

I wanna add Green Threads and JIT.

Give a cool name to my Rust JVM. Not a shitty name like "Rusty-JVM". That's moronic. I plan on [eventually] write my own Awk in Rust, which I call 'Squawk'. I need a name like that.
>>
>>106715518
Both thee and I are men. Get it together, you damned, delusional cretin. And get sunlight, drink tonic and consume chili, if that is what thy need.
>>
>>106715587
I have a semi-abandoned project called "Moonix", Lua in D basically. It's not fully abandoned, I wish to resume work on it later. But it might be useful to you. Here's the parser:

https://github.com/Chubek/Moonix/blob/master/source/parser.d

And the lexer:
https://github.com/Chubek/Moonix/blob/master/source/scanner.d
>>
>>106715595
>Sees image of hot maid with big boobs
>Mind goes to transexualism
Strange
>>
>>106715606
Thee addressed me, green, foul-smelling, ugly creature yonder that bridge. Thus, it is thyself that thee are referring to, not me.
>>
I feel like Perl is dead.
>>
>>106712912
This is profoundly more autistic than i expected but there's a point i guess
>>106713214
Got bit by the 3.4 to 3.6 jump
>>106712999
Python is annoying though, only got a semidecent dependency manager (3rd parte, writen in fucking Rust) like 6 months ago, before that? Wasteland of Miniconda shit
>>106713737b
Closest to that would be Go cause i've had to rewrite a huge but boring Java 6 codebase into that
>>
>>106715588
RisenGroove
>>
>>106715730
And you're next.
>>
>>106715773
I named it "Patinova". You know, rust, patina? As the authors of Lua once said, huehuehue.
>>
File: mamad-edo-samurai.png (1.68 MB, 1184x864)
1.68 MB
1.68 MB PNG
>>106715778
I know, man. I smoke 20 packs of "Onyx" and "G1" every coupla days. I'm 32, and I won't reach past 60, because I have T1 diabetes. I did not get it because I'm fat or anything. The whole "if you fuck your cousin, your children will grow tails" thing reached my country very late, so when my maternal grandparents married, their family tree looked worse than the Targaryens. Thankfully, my dad's family, despite being from this shithole town outta nowhere, had never practiced consanguineous marriage. So I at least managed to grow to 6'2" at 12. Pic related, me in the Northern-Caspid jungles about 9yrs ago. I made it 'le funneh' with the AI named after your dad's penis.

(Why am I sharing my own fucking photo on 4chidori? Think, what the hell can people do with my image. Tribute on it? It might as well have been my Github pfp)

So anyways, my maternal grandparents gave me T1 diabetes. Now my dad's genes gave me bipolarity, which is fucking worse. I'd rather make love to a cactus than to have bipolarity. Fucking sucks.

So, am I going next? Perhaps. But I know one thing: Perl 5.0 was released one year after I was born. And i shall outlive it. Mark my words.

I've written 3 Perl scripts, and one programs (if you don't know the difference between programs and scripts, look it up). The 'program' is a parser/lexer generator. Still WIP.

https://gist.github.com/Chubek/294547e247061bbaccf04e0377425a90
>>
>>106715518
Transgender thread
>>
>>106715881
My cousin is FTM. Not first cousin, daughter/son o my mom's cousin. Would that make her/him second cousin, or second cousin once-removed, not sure.

I wonder what his/her member looks like. They did top&bottom in one operation! Can't have dickgrils and cutboys walking around.
>>
>>106715929
>FTM
Those are particularly tragic. Women are so impressionable it's hardly their fault. At least with dudes it's mostly on them.
>>
>>106715518
Why are her boobs bigger than her head, that's gotta be a medical condition
>>
>>106715986
When she was 4, we stayed at their home for 10 days, since my dad had got a teaching job at the dental school for the city (he was a pediatric dentist, died of substance abuse) and whilst we were there, she just kept repeating and repeating and repeating that she is not, in fact, a girl, and she, in fact, does not like Barbie, and she, in fact, is a boy, and she, in fact, prefers Harry Potter... I'll let you find the irony in this one. lol.
>>
>>106716048
I hope you let her parents know that they failed her.
>>
why are Rust niggas so set on memory safety? I barely ever see memory-related bugs since C++11 dropped.
>>
>>106716067
Her mom told my mom that "It's like I watched my daughter die". Of course, here, in a fucking theocracy, you cannot just order hormone pills from China like people of utmost quality in the US (like Keffals and Contrapoints) have done. You need to get sessions and sessions of therapy, until a psychiatrist who has the permit to handle troony loony cases to approve your 'transfer request'. After that, you need your parent's consent, even if you are above 18. If you are over a certain age (which differs in FTM/MTF cases) you can't get the approval at all. So her parents knew well, but her mom said, it was either giving her what she wanted, and `sudo ln -s` her soul into a new symlink, or keep her at bay, until she `sudo rm -rf`s herself. It's a choice between eating monkey shit, an sucking on a horse's cock. At least if you decide to suck the horse's cock, you won't end up getting a disease (unless you swallow, but horses are majestic creatures and they don't force you to do that until you're comfortable).
>>
File: 1757361007434264.jpg (1.91 MB, 3150x3850)
1.91 MB
1.91 MB JPG
I have decided to learn to program. Wish me luck. My friend gave me a book to read on it.
>>
>>106715518
>>106715578
>>106715606
weren't you gonna make a containment site for your mentall illness?
are you just too retarded for even that?
>>
>>106715715
There are sent automatically by chromium (forks). Stop rotting your brain with porn.
>>
>I barely ever see memory-related bugs since C++11 dropped.
Where do these people come from
https://nvd.nist.gov/vuln/search#/nvd/home?keyword=C%2B%2B%20buffer%20overflow&resultType=records
>>
>>106716117
I personally care fuck all about Rust's memory safety. I am not dumb, I know how to manage memory in C and Pascal. I usually use "tagged pointers", aka "fat pointers". it's a sure-fire way to have memory safety. In fact, I think Rust uses fat pointers to do refcount in `Rc<>` and `Arc<>`. Here's the deal with Fat Pointers, you see, in a 64bit system, if you 'align' the memory addresses by 1byte, as in, "allocate with alignment", you are left with 3 bits at the end of your pointer, completely unused. 4 bits, if you align by 2bytes. But that will cause shitloads of fragmentation, so just stick with 1byte.

You now have 8 enumerations. Use them wisely.

However, I like Rust for a different reason: functional features in a fully imperative, systems language. What OCaml tried so hard to do, but failed because of the whole "I want my language to be referentially transparent" shit.


Rust sports Sum types, and Product types, and Sum of product types. These are known collectively as Algebraic Data Types, and are firmly placed in type theory (which is like category theory, but more focus on lambda calc).

Rust follows the "System F" typing scheme, yet, it's not a functional language.

That's why I like it. Fuck memsafety.

Also, it's got good libraries.
>>
File: screenshot.png (101 KB, 1365x705)
101 KB
101 KB PNG
>>106716192
When I click the green button, I get sent to default page that has no vulnerabilities in sight.
>>
>>106716192
>CVE-2007-0468
>Stack-based buffer overflow in rcdll.dll in msdev.exe in Visual C++ (MSVC) in Microsoft Visual Studio 6.0 SP6 allows user-assisted...
lmao
>>
>>106716181
>you
>>
>>106716162
Good luck senpai. Make sure to use AI 'wisely'. Don't let it be a crutch.
>>
>>106716236
senpai
senpai

Fuck you gook moot.
>>
>>106716219
>Rust follows the "System F" typing scheme, yet, it's not a functional language.
It doesn't even have GADTs bro what are you smoking. Having ADTs is not something worth bragging about.
>>
>JUST WRITE BUG FREE SOFTWARE DOOD
Is there a bigger midwit flag than this?
>>
>>106716310
Yes, and it's posted by midwits who think that guardrails on a cliff will prevent people from falling off anyway.
>>
File: 1754827574741346.gif (1.09 MB, 320x256)
1.09 MB
1.09 MB GIF
>>106716236
Thank you, I'm starting with python. I don't think this book has any AI shit.
>>
>>106716332
Pick up the Python version of "SICP" (pronounced Seek-Pee). It's a great book that most people start with. I read it 15 years ago. It only had the original Scheme version back then.
>>
File: file.png (892 KB, 938x1274)
892 KB
892 KB PNG
>>106716417
My buddy gave me this and a few others with the same style of cover (also python, but project ideas or something). Thanks for the rec tho
>>
> submit your resume to 30 listings
> 4 interviews
> skip 2
> lose 1
> last interview, pls pls pls
> job is webshit golang
> owner of the company has a PhD in databases
> dropped out before the DB class
> forgot whatever I'd read in Database Internals book
> fail
> why.sqlite

What's worse is, I had this project -> github.com/Chubek/MongooseJumblator and I forgot it to show it to them lol.
>>
Safety is a completely nonsensical idea.
Imagine being the reason why there are warning signs telling you that "you will die if you even look wrong at this thing".
People who can read the sign are already too intelligent for it.
>>
>>106716480
That's No Starch Press publishing. They care more about their book covers than quality of their books. Be warned. Most of the books published by NSP are so subpar, some authors don't put it on their resume.

SICP is a tried-and-true book, written by a brilliant mind. It's also free. No Starch Press books are written by jeets, for jeets.

I don't intend to dissuade you. Don't listen to me. The first thing you should learn is, people's opinions should never affect you. But I feel like it needs to be said.
>>
Reminder not to take advice from unemployable midwits who yap on github about how some redditor offended them when nobody fucking asked.
>>
File: 1753085270122327.png (981 KB, 1361x952)
981 KB
981 KB PNG
>>106716514
IDK aren't most of these books just stepping stones until you learn on your own through trial & error? surely they can't be THAT bad
>>
>>106716555
Fella might waste his actual, hard-earned money on books. He needs to know what is a good publishing house, and what is a bad one. Otherwise he may end up owning shelves of books he has not read, because they are pure garbage, designed to predate on people's sense of fragility over stuff they don't know.

Basically, these publishers:

- No Starch Press
- Packt
- Springer

And post-2020 O'Reilly are to be avoided at all cost. They just repackage official documentation and ship it as a 'book'. I can do that with fucking Pandoc. Actually, I do do that. I've turned i3-wm's and Neovim's documentation into an EPUB, and I read it on my E-reader. What these publishers do does not go beyond that.

Either that, or they release books which people can copy source code from, and pass it as their own. I've seen a large surge in 'i made a c compiler' posts since Nora Sandler's book came out...
>>
Books are worthless and infinitely copyable.
>>
>>106716655
It has hits and misses. Check out their reviews on websites like GoodReads and/or Amazon. Some of them are a hit, most of them miss.

For anyone waning to learn Python:

- The Python version of SICP
- Think Python: How to Think Like a Computer Scientist

Are a great, actual stepping stone. They use Python 2.6, but you can always spin up a Docker instance that has Python 2.6.
>>
>>106716682
Even if you download all your books from Z-Library and Anna's Archive, as I do, it's still a lot of time wasted. These days, I only read books to assess whether they are worthy of being fed to LLMs as 'context through'.
>>
>>106716728
I don't waste any time because I don't read books.
>>
how do i know what i've written is the 'right' way doing things
>>
File: vscode.png (26 KB, 619x150)
26 KB
26 KB PNG
In VS Code is it possible to quickly open a file referenced in source? Like clicking and holding some keys to open the ../../../garbage.
>>
>>106716844
When there's nothing else to remove.
>>
>>106716844
There are two major ways:

- Verification
- Model-checking

Read Huth&Ryan's "Logic in Computer Science" for more info.

It does not usually work with I/O-heavy routines. When you are at the mercy of a lower layer, if that layer itself is not logically verified, then all the effort you put on verification and model-checking is useless.

Another book you can read is Benjamin C. Pierce's six-volume software engineering book that uses Coq.
>>
>>106716866

cmd+click works for me in various file types.
TS/JS code directly, can also navigate to URLS that are embedded in comments within package.json.
>>
715528

Use ${VARIABLE} instead of $(VARIABLE) and $>$^ instead of $^ to make it compatible with BSD make. And please don't use @pathsubst and @shell when the builtin pattern substitution and !=can handle it
>>
>>106715588
>an Awk to C compiler that optimizes the code, and compiles the ERE into a web of Gotos,
A Lexer. That's a Lexer.
>>
>>106717148
tanks for telling this, I will do the opposite to make bsdcucks screech
>>
>>106715730
i use -P in grep
>>
>>106715528

if you need help porting Makefiles to BSD and GNU make, maybe I could help.
>>
>>106717171

for a small project you can do

.include <bsd.prog.mk>
PROG = foo

And that's it, with system-wide make headers, CFLAGS, OBJDIR, .h dependencies, etc. will be automagically done 4u. Can your GNOO make do that?
>>
>>106717276
Why would I care about some premade slop that's so brittle that it breaks if I use gnu make properly
>>
>>106717168
Yes, that's what both Re2C and Lex/Flex do. But they are both preprocessors/metaprogramming interfaces for C. Awk2C accepts a valid POSIX Awk program, builds an AST, builds a CFG and a DFG, optimizes it, and emits C code. Compiling the EREs is fully optional, and disabled by default. You could also choose the Awk2C 'runtime' ERE engine, or use PCRE, or C's `regex.h`.

The reason Awk2C cannot be used as a traditional 'lexer' program is, that it does not yield 'start states'. You could do that on your own, but it's just not built for it. Using my Awk2C as a lexcial scanner generator is abusive.

Plus, Flex and Re2C don't have what Awk has: stream-based line reading, field/record splitting, and functions. Neither Re2C, nor Flex, are Universal (aka Turing-complete), But Awk is, ipso factor, Awk2C.

A more 'valid' critique of Awk2C is, "why compile to native code? Why not do JIT/AOT?". The answer is, both JIT and AOT require runtime. Awk2C translates to C code, and it compiles the runtime into the binary statically. It's a stand-alone program.

PS: I don't know why Israeli bots on Reddit pretend that "Israel has a superior airforce". When it's us that build planes -> https://en.m.wikipedia.org/wiki/HESA_Shafaq and it's them that buy their planes. I realize it's the "here's your jetfighter, bro" of jets, still. Jews are uncreative scum who assume West is going to be with them FOREVER. I'd just like to remind everyone that, the West used to love Saddam, they glazed him, but I don't think it was the Iranians who executed him. Were we? Will the Yakud party ever understand that, even with all this fucking International Jewery, and having reduced Western men into Bluie-watching, semen-guzzling, consoomerist scum, one day, the West might turn on them --- or worse, West could lose its influence?

www.youtube.com/watch?v=UFTONTxiZGE
https://www.bbc.com/news/articles/c2dj217z2w6o
>>
>>106717174
That's not Perl. That's PCRE2. It's a whole different library that just imitates Perl's regex.

On that front, with some help from Opus, I designed and implemented most of the ERE machinery for Awk2C.

https://github.com/Chubek/Awk2C/blob/master/lib/ere.ml

I need to make:

1- An ERE to C compiler;
2- A runtime engine for people who want ERE not to be compiled to C;

The runtime engine would be in C, of course. But the compiler would be in OCaml.

I need to see how Re2C compiles DFAs into C code, and heed from it.
>>
>>106717305

To be able to compile your code on BSD, Solaris, Minix, etc.
It won't stop working with gmake if you know how to use the compatible subset of features available on virtually all distributions of make
>>
i hate mAIDS
>>
>>106716844
What do you mean by 'right'?
>>
>>106717004
Thanks, somehow this was bugged but now works.
>>
>>106717360
I will never need this.
>>
Removing malloc from things is a pain in the ass, but I want to use my library in embedded somehow
>>
>>106717542
Simply never use malloc and then it's not an issue.
>>
File: 135575605_p0_master1200.jpg (896 KB, 920x1200)
896 KB
896 KB JPG
>>106717565
I wish, but now that I have used everywhere it's over

My code uses that pattern
thing *a = thing_new(version);


So I'm trying to change to
char state[256];
thing_init(version, state);


Or something else, what do you think?
>>
>>106717542
just override the symbol and have it return whatever memory addresses you want when run from an embedded system
or just use mmap instead of malloc
>>
I think all the maidposters actually left. This is the first maidless maid /dpt/ I have ever seen. I hope you didn't actually manage to scare off my favorite internet schizo.
>>
File: thanks-js.png (1.31 MB, 1024x1024)
1.31 MB
1.31 MB PNG
>>106717489
I fucking hate this mentality.

> "i dont need dis piss of softwaer so its useless!!!!"
> "y did u maek dis, when 1 alrddy exists?"
> "is dis suppowz to replace X? wat iz da point?"

It all rakes of STUPIDITY. Meanwhile, the same people who utter this BULLSHIT are the ones who haven't learned A LICK OF THEORY, regardless of whether having studied in college, or being self-taught. To them, programming is not a 'joy'. It's not a 'calling'. They were lucky enough to purchase a UDemy "Learn JavaScript in 10 Days" course, or enroll in a fucking 'bootcamp', and get a job as a frontend monkey before the LLMs made them obsolete; and all they know, all they can do, all they care about, is either webshit, , more webshit, or some 'automation' crap. Mind you, what they call 'automation' is basically making abusive bots using browser automation protocol. And they are so dumb, they don't even know how it works. They just know what to google, copy-paste the fragment from Stack Overflow, and a year or two later, post a picture of themselves next to some challet or shanty they've bought with their code-monkey shekels, captioned "Thank you, JavaScript!".

These people find programming to be a pain. Because they don't understand what it even is! So when someone tries to be creative, to do ACTUAL programming, i.e. creative problem-solving, they are suddenly butt-devastated... "Why would this person write this program? Does he not know that the only programming people do is by force? I don't enjoy programming. I don't want this application. You're wasting your time!"

Idiots man, idiots. Nothing wrong with being a webdev or a code-monkey. God knows, until I receive my degree at 37, I'll be one! But at least, I'm trying to be the opposite of this notion.
>>
>>106717616
I hate bsdtrannies who can't make their kernel as good as Linux and beg me to support their shitty kernel.
>>
>>106717594
You gave me an idea really
In theory I could make a function that the user has to "feed" with memory so the structure can be initialized
>>
>>106717542
Use an arena-based allocator.

Arena -> Page -> Block

Or in other words, an arena, made of pages, made of blocks.

In your Ld script (linker script, which you need for all embedded applications), you can map a region in the memory to one, or several arenas. We usually have two, one "old" and one "young" generation.

Then, you request a certain size from the arena. It rounds the requested size up to the next multiple of 8, then grants you the memory space from the blocks.

If you wanna go further, you can defrag the blocks every once in a while.
>>
>>106717621
I hate BSD too. They somehow are mad that systemd exists. The very idea of systemd insults them.
>>
>>106717415
let's say i develop something for a project i'm working on
i get the new feature working
but how am i supposed to know if there's a better way of doing what i've done, more efficient etc.
>>
File: 135575605_p3_master1200.jpg (795 KB, 920x1200)
795 KB
795 KB JPG
>>106717635
I thought about arenas as well, but I feel it's a bit of an overkill, and easy to fragment since the dev using the library will just use the stuff as if it had normal malloc

Structures can be around 120 bytes and I have to keep usage under 1kb
>>
My brother sold his old PS4 to some dude, and he did not pay him lol, said "imma get the money from the bank" and disappeared. I wish this never gets resolved. I'm growing to hate my brother. He's 24, and he is flunking dental school. He entered at 18yo, shoulda finished last year. But because he kept taking furloughs and leaves, he's now 3yr behind. And we are fucking destitute. Maybe I shoulda became a stupid webdev.
>>
>>106717654

Read this paper: https://github.com/Chubek/chubek/blob/master/mman-dynamic-storage-alloc-a-survey.pdf
>>
>muh arenas
Malloc already uses them, they're garbage. Stack is the only good data structure, because it follows natural human thought process.
>>
>>106717683
Thanks but that feels like overkill
>>
File: anime_linux.jpg (38 KB, 512x474)
38 KB
38 KB JPG
I'm working on a shell right now. By this point I have already technically created a shell but a lot of essential features haven't been created yet.
>>
>>106717645
>better
>more efficient
Those also have multiple definitions
>>
File: d.png (163 KB, 1168x619)
163 KB
163 KB PNG
can anyone please explain to me how this works
so ive never been sure exactly how to do html parsing i kinda just asked chatgpt to do it

how do i navigate to the href highlighted in blue

im using https://docs.rs/scraper/latest/scraper/
if that helps

the crate itself is quite intuitive but i just cant get the right keyword
>>
>>106718063
".thread a" if you want all
"#thread-324353425 a" if you want a specific one
>>
>>106718063
>can't parse html despite using an html library
>gpt nigger
>rust faggot
please remove yourself from the gene pool
>>
>>106717694
chuck moore in the thread
>>
>>106718063
Learn XPath, maybe? Learn from ChatGPT instead of asking it to give you the code ad verbatim, you chunk of uncircumcised chode. Feed it the specs for XPath, and ask it to teach you the expression. It won't hurt to search up some tutorials online as well.

XPath is basically a very simple, declarative language (similar to Regular Expressions, which are also 'declarative', but Regexp has its roots in mathematics --- the 1954 paper by Kleene to be specific --- and XPath was designed by morons at the W3C, so it's not as expressive as regexp) which any XML/HTML parser like libxml2 supports.

On Firefox, if you right-click on the element, and navigate to the node in the tree, you can actually copy the 'specific' XPath string that navigates you down the tree, to that exact node. But it's not very dynamic. The same way a regepx like /foo/ is specific and matches "foo" only, whilst /fo./ could match "fo1" or "foz", also, an XPath expression could be specific, or be more dynamic/expressive.

To understand XPath, you must understand XML. You understand XML, you must understand trees. Trees are directed graphs with no cycles. They are, well 'trees'. In a tree, the edges of the graph become "branches" and the nodes of the graph become "leaves". These "leaves" contain data.

When you parse an XML/HTML into a tree, you can use an expression language like XPath to navigate it.

People are suggesting CSS Selectors, which is ALSO a method. But an inferior one.

If you wanna test XPath expressions, open up the console on your browser, and use the `$x` function.
>>
>>106718174
I don't understand why he's using Rust. What value does Rust add to his workflow. It's just hindering and inhibiting his learning curve.
>>
>>106718188
Shut up I fucking love FORTH. I'm planning to make an embedded ANS FORTH. It has machinery to communciate with the FORTH interpreter via UART.
>>
>>106718174
i should have just been born with all the knowledge, my bad i guess.
>>
could you stop namefagging
>>
>>106718290
Why would you want that? you can at least filter her now.
>>
>>106718304
that's a man
>>
>>106718269
What you are doing, using Rust, is akin to riding a motorcross, when what you need is a moped. Not even a scooter, a moped. Stop using Rust. This language is heavy on type theory, and is designed for people who already know what's going on in their code. Because Rust confuses you, you resort to using ChatGPT to generate your code. And you end up dying without REALLY learning the ins and outs of the trade.

Rust is a compiled systems language, it's been often said, people who begin programming with Rust, end up being better at it than old farts like Dave Cutler. BUT, also, the person who's started programming with Rust, does not learn 'programming', and he does not even learn how to 'code', as in, he even sucks at being a code-monkey. What he ends up becoming is someone who is a master of Rust, but at the same time, master of none.

Rust is C with training wheels. You need to learn to ride your bike to school without them, or otherwise, you'll get buried alive by the bullies, and end up shooting the school up.

Stop using Rust. Go learn "programming" and go learn "problem solving". And use ChatGPT, but not as a crutch, but as an aid. Use it as a "Smart Search Engine".

This is my advice to you. I'm 32 and I've been programming since I was 16. Back when I started, not even fucking Stack Overflow was popular yet. I never TRULY programmed until I turned 24, and read SICP. Studying SWE for 5 semesters did help, but only a bit. My second stint at college was useless anyways.

So, just stop using Rust. It's language for grown-ups, not babby.
>>
>>106718290
>>106718304
>>106718322
I am not even tripping. Also, would you fucking morons just grow the fuck up. You're acting like you're 16 and posting on /b/ in 2011. I'm getting second-hand embarassment from you guys using terms like 'namefagging' and being upset that I'm filling in the namefield. It's as if, you guys have stopped developing mentally. Really sad.
>>
>>106718359
actually i quite like rust
i just dont know how to query html with the scraper because i havent really ever properly learned it.
>>
>attention whoring nametranny telling anyone that they're acting underage
>>106718432
have you tried reading the documentation? It's not like you're parsing it yourself and getting filtered by it
>>
>>106718439
Be a man and directly quote my posts. Will your 'handlers' bash your head in and leave you out to die in the 'desert' if you even do as little as quoting my posts?
>>
I only quote Anonymous.
>>
>>106718545
Fine.
>>
Do you also have trouble differentiating between wall and a door, autismo?
>>
>>106718269
I haven't made myself clear, but the worst of it is asking gpt to parse something for you.
>>
>>106718595
I did not get the reference, must be an Ozzie thing. But ask, and you shall receive. I am now posting under the Anonymous moniker.
>>
Yea and a wall is a door to an autist.
>>
gcc -wall -door
>>
>>106718726
Well, I always contested the notion that I'm on the spectrum. Bipolar, yes. Diabetic, yes. But I was proud that at least, I am not an autist. My mom bore me when she was 21, and it rarely happens that a woman at that age gives birth to an autismo. That is, until the whole "Tylenol makes children autistic" thing came out. My mom loves Tylenol Codeine...
>>
>>106718726
Hodor
>>
aha
i already have a "done" flag occupying a whole 64 bits with 7*64bits worth of padding afterwards
this flag already gets checked by threads looking for live entries
i can pack the upper bits with an offset to skip chains of dead entries, as threads passively iterate over the list counting chains of dead entries, embedding a skip list into the queue with zero extra atomic loads or extra cache lines touching shared state
>>
File: 1754743551426985.jpg (74 KB, 481x465)
74 KB
74 KB JPG
>>106718970
>>
File: tet.png (655 KB, 1511x695)
655 KB
655 KB PNG
>>106709035
Abbreviations? Keyboard words kinit and kpoll (line 25) start with k. The next piece random queue words tend to start with q: qtop (line 91) qdup? qnext (177). Memory indexing (104) is 'th' as in '4 th-q' is the address of the 4th item ahead in the queue and '$506 th-w' is the address of the block in the 5th row and 6th column of the well. The dollar sign means hexadecimal.

Several subwords used in only one place are highly abbreviated: draw (158) and sweep (193) call w+ and s+ 21 or 22 times, turnkick (208) calls tk up to six times, and piece plot mark hit? and lock respectively call p@ p! m+ h? l! each four times for the four blocks of a tetris piece.

I guess the most egregious abbreviations are the player state variables p1 (position) t1 (turncount) s1 (shape). But most of the program is real English words.

The IO section (line 19) has a bunch of addresses you need Commodore 64 knowledge for. Change screen colors, wait for rasterline, configure and poll keyboard, get frame timer.

If you know 6502 assembler then you might suss out the 16-bit add routine in p@ (line 34): CLC LDA INY ADC STA LDA INY ADC STA. The extra punctuation is for scanning loads across a pointer (W+Y) and adding back to durexforth's data stack (LSB+X, MSB+X).

Oh also the data compiling words (lines 46-49) should probably have clearer names but eh.

I guess >10+> is a bit inscrutable it's intended to resemble the phrase [ >r 10 + r> ] i.e. add ten to the second item on stack (it's used a lot in words that scan the well).

I really really wanna talk about my Tetris program. Please ask me questions about it.
>>
>>106717621

did you even read the kernel source code? If so, why don't you tell me what makes Linux so much better than any modern BSD?
>>
>>106719849
>Abbreviations?
The bigger your program gets (or the more people who work on it), the less you want to use "cute" abbreviations. Boring names work best, long term.
But don't do what a former coworker of mine used to. He'd write function names over 50 characters long, and couldn't bring himself to make anything shorter. Jesus wept...
>>
>>106719945
Again, most of the program is ordinary words. Can you understand `go` on line 205? Or `fall` on 214?

: fall (-f) down 0 go 0= if  0 else
kinit unpin curr piece lock tally
qnext enter curr piece hit?
then lines @ th-g c@ %grav ! ;



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.