[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / 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: 4maids-5.png (555 KB, 850x950)
555 KB PNG
What are you maids working on?

Last thread: >>109743874
>>
what is the point of this thread
>>
>>109776971
forcing maidshittery i guess
its impolite, though
>>
>2 reply thread lfg
nah, lets not be that ebil
op is a fag though
>>
File: file.png (142 KB, 1556x1391)
142 KB PNG
>>109758283
Ledgerer demo page. It makes it easier to parse the information of my ledgering as well, so there is a couple questionable things to investigate. So more ledgering checking.
>>
>>109777022
api to local html?
>>
i will learn how to grayscale images today
i will learn how to grayscale images today
i will learn how to grayscale images today
i will learn how to grayscale images today
>>
>>109777095
>get rgb values
>add them
>divide by 3,place value into each channel
>encode into bmp 32 for maximum retard-easy
?
>>
>>109777111
Not him, but I don't remember if you need to deal with sRGB non-linearness before doing that, or if that was just a blending thing.
>>
>>109777111
yup thats what i just saw online looks ez lol
>>
>>109777111 cont
actually
you can modify in place

>make bmp 32 in gimp
>run your prog on it
>replace the values in-place
>dont even need to fabricate a valid header

its still something to go on you bucketlist though
build a bmp32 from scratch
>>
>>109777111
do you have any ez explanation of contour detection after i grayscale?
>>
>>109777116
possible
>>109777118
yeah, thats the basics even doe the other anon said there might be more maths to it than just averaging the values
>>
>>109777123
ive already built a bmp from scratch if u mean like createfile and writefile the file header, info header and the pixels
>>
>>109777075
I've got no idea how to interpret your message. It's using live data, so not a dummy. But it's still a demo page, so no security or such things, just to show that it is indeed working and doing it's thing, so a demo.
https://demo.vestro.sh/ledger.html
>>
>>109777125
the most basic form is that you get the difference between two neighboring pixels

as in:
you ass r+g+b of one, r+g+b of the other
and you compare the numbers
if the difference is bigger than a treshold
boom
you have your contrast

then you can do per-channel difference
then you can do ratios per channel
then you can superimpose data from other sensors, like IR onto it

in another direction, you can look for patterns
you can accept statistically plausible deviations from said patterns
etc etc

but the basics are:
you look at the difference bw values of the rgb channels of your pixels
if that value goes beyond your treshold, you mark the pixel as contrast
and you end up with a mask
you can use the alpha channel for that iirc with bmp 32 you have an alpha channel thats not used, basically
or you could have two bitmaps
the sky is the limit there
>>
>>109777146
by that i meant are you hooked into the api of whatever hosts your wallet, and then are you generating an html to printout the data youre getting through ther api?

>>109777146
baste, youre actually 90% of the way there
next step: iterate through pixels
do pixel_a - pixel_b, basically
and then if the absolute of that value is larger than your treshold, you have your contrast

one caveat
you have to compare to pixels around you
and theres a trick to do that efficiently
hint: the difference between two pixels goes both ways
so there might be "directions" you can possibly skip
>>
What cool things can I do now that my language has tables?
>>
>>109777161
aight thanks i kind of get it, needed this for some direction. yeah i was thinking of having different levels/layers/types of filters and superimposing them on each other. dont know what the avg grayscale technique looks like yet, havent wrote it yet gonna do it soon. gotta see what it looks like.
>>
>>109777208
yeah theres a lot you can do when playing around with the pixels, directly
i susupect the other anon alluded to some photo-realistic ways of doing greyscale
but i just looked it up and the average method seems to be a legit way to do it

its the most basic one, though
>>
File: file.png (237 KB, 2476x1204)
237 KB PNG
>>109777186
No, in this case the ledger page is connected to my backend API, which returns the ledger entries, so the relevant chain transactions that were observed, and the actual entries of what is owed, what is queued to be swept and such things. The frontend just renders what my backend feeds it.
And in this case the ledger shouldn't have connection to the blockchain, for that there is the invoice creation, and the actual checkout pages does have a WalletConnect interphase, and also a plain QR, but no deeper blockchain integration.

>picrel
What i meant, create a merchant account. Create an invoice for said merchant. And then go to the checkout and page the invoice with whatever external wallet has the dummy client wallet. And then the ledgerer reflects what the system detected.
>>
File: pony maids.jpg (359 KB, 850x680)
359 KB JPG
>>109777207
Make Datalog, but add the metatables concept from Lua to explore how metatables can be used to make Datalog nicer <3!
>>
>>109777208
>>109777239 cont

its just a matter of maths though
once you get your "infrastructure" down, as in: opening, closing the files
modifying the individual values of each channel of each pixel
in a comfy and easily controllable way

then its just a matter of plugging the right formula in
if you do your interfacing right, you will expose the formula

like:
grey_ify(pixel)

where gery-ify is an abstraction to the formula
and maybe to the access of the result-bitmap, if you dont modify-in-place (modify the source-bitmap)
>>
>>109777250
a-hah
so youre basically building a crypto exchange, if i follow
a client, and a server
client connects to the server
server is connected to the blockchain, right?

that sounds complicated
>>
>that sounds complicated
no in principle
but to maintain
many different protocols
several different components

in principle its simple
but its sounds like something complicated to build and maintain
>>
>>109777282
A crypto payment processor. It's meant to have all the niceties in the back, so multi network, multi token, custodial by design. And i want it to be not too painful to host and run each instance. Plus the frontend or client side being as simple a s possible, as just being crypto is a huge barrier, so some handholding and 'just click these three buttons' sort of UX is ideal, plus a fallback if the yare using some odd wallet that doesn't support WalletConnect.

Yes the backend checks the registered invoice, builds a scan table that fast forwards if it's too far behind and there are no relevant invoices to be checked. And if it detects a payment in any of it's many paths, it registers, and ledgers it.

A bit of a pain to make, but not really that much once i understood he basics of each side, so once i understood the blockchain side, that part became easy to think about, same for ledgering, once i sketched it and got my head around it, it was simple to implement. The main issue is getting to that 'i understand' point.
>>
>>109777317
baste
>>
My language is better than other languages because mine has tables.
>>
>>109777627
can i have 2 tables?
>>
>>109776984
u maid
>>
>maidnigger ruins another thread
where are the moderators?
>>
>>109777699
>I deliberately entered a maid thread and now I am mad.
>>
im a maid nigger and ur all retarded. i dont see the problem. all is balanced. all is swell
>>
>>109777750
Why do you type in schizocase? You're a schizophrenic maid.
>>
Pascal strings alone are enough reason it should've beaten C.
>>
ASTs and IRs are bloat. I'm compiling directly to Assembly.
>>
>>109776984
Maids are the purpose of this website 4maids.
>>
You've inspired me to restart my assembly macro language
>>
>>109777827
leave the schizos alone.
>schizocase
i didn't even know we had a valid case, now i know.

>>109777925
>M-aids
i tested negative for all [*]-aids
>>
Rust is the best.
>>
Rust is the best. For gays.
>>
>>109778010
No that's c.
>>
>>109778018
People that use C have never had sex with a woman let alone a man. All the sexual deviants use Rust. The pure and the chosen use C and x86 64.
>>
>>109776950
I'm back to be retarded in python
>>
File: yotsnail.png (339 KB, 700x640)
339 KB PNG
>>109776950
this is the ost to this thread

https://www.youtube.com/watch?v=26XErNu2KsI
>>
File: images (9).jpg (12 KB, 292x287)
12 KB JPG
>>109777022
>>
>>109778361
nice beautiful
>>
who here /goto gang/? dumb idea? it saves tracking a boolean or creating duplicate code for each branch and looks readable enough to me. I think I might do it.
>>
>>109778430
dew it
>>
Erlang is the best programming language.
Learn Erlang.
>>
>>109777258
Yeah for sure. Once I get infrastructure down I can do a lot more tests easily. Hopefully I can figure out contour detection.
>>
>>109776950
did vibecoding kill the thread or was it really maidposting?
>>
sorry for not keeping /dpt/ alive
too busy jacking off to Clojure and Erlang
>>
>>109778713
>did vibecoding kill the thread or was it really maidposting?
vibegods won
>>
Wtf is vibe coding? Coding with a vibrater?
>>
>>109779104
If only. That would be more interesting.
>>
File: 1788806759772037.png (142 KB, 1914x1075)
142 KB PNG
I think i'm just going to switch language
>>
>>109780018
Easy as poop.
>>
>>109777740
yes I am mad that some nigger is constantly shitting up the PROGRAMMING thread
>>
>>109780692
The only person shitting up the programming thread is you.
>>
File: barghest.jpg (340 KB, 1193x1662)
340 KB JPG
>>109776950
Goal-directed, nondeterministic fizzbuzz written in MAIDS:

fizzbuzz(*n)::
eq(mod(*n,"3"), "0") !eq(mod(*n,"5"), "0") "Fizz"
| !eq(mod(*n,"3"), "0") eq(mod(*n,"5"), "0") "Buzz"
| eq(mod(*n,"3"), "0") eq(mod(*n,"5"), "0") "Fizzbuzz"
| !eq(mod(*n,"3"), "0") !eq(mod(*n,"5"), "0") *n ;


MAIDS does not have booleans or conditionals. The guards can succeed or fail. If they succeed, execution continues through that alternate. If they fail, the system backtracks and another alternate in the alternation is tried. Alternates are attempted in a random order, but only once each. If all alternates fail and there is nowhere left to backtrack too, program execution also fails.

>tl;dr: Booleans and conditionals are bloat.
>>
>>109780831
>so if else but renamed
lol
>>
>>109778083
C attracts le haxor trannies.
>>
>>109780886
its also attracts people who like things to go fastly
thats because c gives you freedom.
you just do wtfever you want.
>>
>>109780903
>you just do wtfever you want.
Unless you want generic containers.
>>
File: barghest2.jpg (345 KB, 850x1235)
345 KB JPG
>>109780844
Goal-direction with backtracking works differently than if-else. The guards are position independent and can appear anywhere in the alternate. I don't have to check them first, and if a guard fails, backtracking will undo any changes made to the environment in the failed alternate before it tries another alternate.

This is also a working fizzbuzz:

fizzbuzz(*n)::
"Fizz" eq(mod(*n,"3"), "0") !eq(mod(*n,"5"), "0")
| "Buzz" !eq(mod(*n,"3"), "0") eq(mod(*n,"5"), "0")
| "Fizzbuzz" eq(mod(*n,"3"), "0") eq(mod(*n,"5"), "0")
| *n !eq(mod(*n,"3"), "0") !eq(mod(*n,"5"), "0");


So is this:

fizzbuzz(*n)::
eq(mod(*n,"3"), "0") "Fizz" !eq(mod(*n,"5"), "0")
| !eq(mod(*n,"3"), "0") "Buzz" eq(mod(*n,"5"), "0")
| eq(mod(*n,"3"), "0") "Fizzbuzz" eq(mod(*n,"5"), "0")
| !eq(mod(*n,"3"), "0") *n !eq(mod(*n,"5"), "0");


Goal-direction is sort of like squashing the functionality of if-else and try-catch together, without needing booleans or having to lead with the guard.
>>
>>109780950
void *
problem solved

>>109780969
this sounds horrendously self defeating
insanely bloated and limiting in the amount of code you can have behind a conditional because you have to be able to restore previous values when backtracking
>>
>>109780969
>>109781014 cont
yeah, because that information is gonna have to go somewhere
and so youre gonna burn through registers, then cache, then ram and maybe even the hard drive in the end
filled with gloriously inert information
thats gonna get deleted whenever a conditional gets resolved
a glorious avalanche of sterile slop

im actually in awe
this is shitposting translated into a programming language
the framework itself shiposts all your storage space with suffciiently complex programs
and that for ALL the fucking variables

its just glorious anti-engineering of the most elevated and complete sort
>>
File: homura.jpg (243 KB, 850x1093)
243 KB JPG
>>109781065
All you have to do is keep track of a compact trail and a choice stack. You are not just snapshotting the entire environment at every alternation. The trail length is also proportional to the mutations you made in the environment in that alternate, not the total length of the code in the alternate. I can also put the guards in front of anything that mutates state if I want, then there would be nothing in the trail to restore in the event of a failed guard. Goal-direction with backtracking lets you manage side-effects of your code easily, while still allowing side-effects. Backtracking efficiently was solved decades ago and implemented in languages like Prolog and Icon.

>sufficiently complex programs
The MAIDS compiler and MAIDS OS are both written in MAIDS.
>>
>>109781302
and all of that ofc lives on the stack?
this sucks
its less grandiosely inefficient than i thought, but it still sucks balls

>heres one write to cache whenever you touch something in the registers
>4 clocks free of charge, on the house
>>
>>109781302
NTA I might make an OS in my table language.
>>
My table language needs raii to dispose of dead tables. Should I just make a list of tables to be disposed of by the end of the function?
>>
>>109781733
Erlang doesn't have this problem.
>>
File: cat sakuya.jpg (169 KB, 600x600)
169 KB JPG
>>109781745
Maids like making their own languages and compilers.
>>
rewriting my OS in my own lisp (basically clojure but "native")
>>
>>109781745
That's because Erlang uses garbage collection which is slower than raii.
>>
>>109782100
I already made an os in lisp. It was probably one of the easiest ways to make an os.
>>
I made a programming language that perfectly fits my preferences. What should I make with it?
>>
>>109782199
One macro syntax to rule them all and in darkness bind them.
bind macro(v) (v + 2) bound
>>
Is for consts looks really nice.
glo f is (\n=
r = 1
| n=r = n * @f n - 1 _
r
)
>>
what are some obscure alternative programming paradigms? (FP is not obscure)
>>
>>109782343
Just google esoteric programming languages.
>>
>>109782346
it's all fucking brainfuck memelangs
I mean actual paradigms that were used at least once
>>
>>109782343
>fp is not obscure
but its mathematical obscurantism
>>
>>109782394
almost every major lang nowadays has varying degrees of FP sprinkled in
sure it's not pure FP but still
>>
File: black survival maid.jpg (229 KB, 850x1259)
229 KB JPG
>>109782343
Look for 1960s era American Computer Science textbooks/monographs. Programming was extremely diverse and interesting back then because ARPA and all branches of the US military dumped money on anyone who wanted to make programming languages in those days, with basically no strings attached. Computer Scientists were building weird languages based on obscure ideas just to see what would happen and the government was happy to give them infinite money to do this which lead to an explosion of research.
>>
>>109782343
OOP
>>
>>109782438
*modernized fp then
bc straight up fp just doesnt cover all bases
its a framework that is empirically incomplete
>>
File: copyright.jpg (405 KB, 4000x3612)
405 KB JPG
>>109776950
I made some Rust lines. Feel good
>>
Just writing a little shitty CRUD for my dad's company in Go + simple vibe coded HTML (Only the HTML).

Makes me feel useful I guess.
>>
I have to learn C#, Tailwind, and Django. Sounds obnoxious.
>>
I'm going to store the tables to be deallocated in an arena.
>>
>>109782926
Good for you.
>>
>>109783479
c shart is lovely desu
>>
>>109783688
cshart would be among my top languages if it wasn't a microslop product
>>
It's time to see if trying new things will be obnoxious again.
>>
table<-index = 42
>>
Rust is better than C.
>>
>have rust kock that barely does anything
>cargo build 0.69s user 0.45s system 183% cpu 0.622 total
wow, I wonder how nice my rust experience will get
>>
>>109784142
>>109777052
>>109777052
>>109777052
>>109777052
>>
>>109784142
I didn't fall for it this time
>>
Feels good, man.
glo pointnew = (\x y z = table[0 0]{
x = x
y = y
z = z
})

a = @pointnew 42 43 44

@putiln x a
>>
pointnew is (\x y z = table[0 0]{
x = x
y = y
z = z
})
>>
>>109783122
func (a App) GetVehicle(id string) (Vehicle, error) {
row := a.db.QueryRow("SELECT id, plate, maker, model, year, assigned_to, location FROM vehicles WHERE id = ?", id)

v := Vehicle{}

err := row.Scan(&v.ID, &v.Plate, &v.Maker, &v.Model, &v.Year, &v.AssignedTo,
&v.Location)

// Not neccessarily an error, but no results
if err == sql.ErrNoRows {
return Vehicle{}, errors.New("Vehicle not found")
}

records_rows, err := a.db.Query("SELECT id, date, type, description, cost FROM records WHERE vehicle_id = ?", id)
if err != nil {
v.Records = nil
return v, err
}

for records_rows.Next() {
r := &Record{}
err := records_rows.Scan(&r.ID, &r.DateShort, &r.Type, &r.Description, &r.Cost)

if err != nil {
continue
}
v.Records = append(v.Records, *r)
}

return v, nil
}


Code to get a vehicle from my database. Seems simple as fuck and still makes me feel like I'm doing this in a very stupid way.
>>
>>109776950
Spectrum Next strategy game inspired by the old CCS strategy games game in C and a port of Zork for the 128K Spectrum
>>
>>109783122
why not use stored proceedures? What database is it? What is the client OS?
>>
>>109785254
>why not use stored proceedures?
I don't know what that is

>What database
SQLite3

>OS
It's a little web app with a mobile-first interface. One of the most important things is for my cousin (the manager) to be able to consult it on the go and I don't really want to touch android stuff
>>
>>109785292
>>109785254
>client OS
It'll run on an Ubuntu server
>>
glo _puti is (\n =
| n = (
@_puti n / 10
putc 48 + n % 10
) _
)

glo puti is (\n =
| n == 0 = putc 48
| n < 0 = (
putc 45
@_puti @neg n
)
| _ = @_puti n
)

glo neg is (\n = 0 - n)

glo ln is (\=
putc 10
)

glo putiln is (\n =
@puti n
@ln
)
>>
I is'd all over the place.
>>
I’m the only person here but I’m keepin the thread alive.
>>
>>109782343
Everything gets put under one of:
procedural, oop, fp, logic, array based, stack based
(concurrent, actor, reactive based things get lumped under fp)
Chapel is a parallel programming language and looks ALGOL-like therefore gets the procedural tag.
>>
Rust macros are a pain and too limited so I'm just using tree-sitter to parse and rewrite files instead.
>>
>>109786312
Strange. I hear everyone loves Rust macros.
>>
>>109786355
Once there's compile time reflection inside of proc macro contexts they'll be good.
>>
>>109786425
Explain.
>>
File: IMG_2050.png (112 KB, 624x495)
112 KB PNG
>>
>>109785199
I hope id is properly sanitized.
>>
But can I vibe code on MAID os?
>>
writing wrapper scripts for git in powershell
>>
>>109787083
You should
>>
>>109776984
I relate with it.
>>
>>109776950
These maids are too flat

>>109780831
>>109780969
Much better
>>
shouldnt there be a programming paradigm for natural language programming (vibe coding )? instead of giving small prompts 1 big design doc so the AI does it in 1 go? just talkin shit
>>
>>109788861
actually doing it iteratively prob better
>>
>>109788861
that's just regular vibe coding
>>
>>109788873
I don't vibe code but I'm trying to revolutionise vibe coding
>>
>>109788861
>>109788880
Try /vcg/
>>
>>109788873
I mean like how you write the design doc :P but I guess models are different too
>>
>>109788885
I don't write the design docs, the machine does that too
>>
>>109788861
https://esolangs.org/wiki/FiM%2B%2B
>>
>>109789036
xD
>>
File: rusthacker.jpg (254 KB, 4000x2257)
254 KB JPG
Rust (tm) is fun
>>
>>109789036
this is definately a vibe
>>
>>109789085
Rust is fun until you have to use other people's libraries to make functional software.
>>
>>109789150
Ok no problem for me. Good that I write bare metal rust
>>
>>109789401
>bare metal rust
Oxymoron.
>>
>>109789745
moron.
>>
finished implementing my first hash table
forgot why I needed it
>>
Trying to make a Lua clone (but Lisp) in Rust
>>
>>109789827
based. Now implement it like this:
https://www.wired.com/story/undergraduate-upends-a-40-year-old-data-science-conjecture/
https://www.youtube.com/watch?v=ArQNyOU1hyE

tfw too lazy to do it
>>
File: ilulu.jpg (683 KB, 850x1202)
683 KB JPG
>>109787274
I agree with you that maids should have huge boobs. A maid dress is a dress for huge boobs. The ideal maid has F cup boobs or bigger. Unfortunately, I could not find any images with four maids that have huge boobs. All the images I can find with four maids have booblets in them.
>>
>>109790602
Just generate better images with ai.
>>
My table language will be assign by reference but functions will return by copy. This makes creating a clone function very simple.
glo clone is (\var = var)
>>
>>109790687
Tell it to make no mistakes
>>
File: alexandrina2.jpg (271 KB, 850x1092)
271 KB JPG
>>109790687
I don't have access to image generating AI, but if you make some, I will add the 4maids logo to them and use them in future OPs.
>>
>>109787274
I love flatchests
>>
File: IMG_2066.jpg (105 KB, 1170x777)
105 KB JPG
>>109790756
Dangit
>>
>>109790788
That means ChatGPT actually sent the request and image was generated lol
>>
File: IMG_2067.jpg (99 KB, 1170x677)
99 KB JPG
>>109790792
What did it mean by this?
>>
Realistically, is there any reason not to use Python and Rust for everything?
>>
>>109790101
looks interesting, will take a look
I'm also interested in swiss tables, since that's apparently all the rage these days. in due time
>>
File: 1780208197009362.jpg (25 KB, 600x600)
25 KB JPG
>>109780053
the question is easy but trying to do that shit in rust fucking sucks. good luck trying to implement DFS over a
Option<Rc<RefCell<TreeNode>>>
>>
File: eishin flash.jpg (119 KB, 850x1202)
119 KB JPG
>>109790862
Rust has been deprecated by MAIDS. MAIDS has better memory safety than Rust, without having to do obnoxious things like fiddle with a borrow checker, and it manages side-effects better. Also, it isn't a C-like, which is nice because C-likes tend to be dumpster fires syntactically/semantically.

When someone says "X is hard to do", they usually actually mean "X is hard to do in C or a C-like" and their brains have been crunched by thinking in terms of C-likes. Lots of things are hard to do in C or C-likes, but easy to do in languages with better syntax/semantics.
>>
>>109790972
Damn. one of the best maids i've seen. Look at those knockers
>>
I have to add raii to my table language now which means doing manual memory management in Assembly. Lucky me!
>>
>>109790862
yeah
>python
slow as shit and terrible
>rust
good luck coding in rust
>>
>>109785199
Kinda want to just rewrite this project in Rust desu
>>
Ok I made some more Rust. I can read files from fat12 now and already put an EPIC TRAIT in place to be able to abstract between sd card and floppy drive later.
Rust is fun, but unironically. This is already much better than my pure assembly implementation (duh).
Now block writing has to be implemented
>>
>>109790972
>but easy to do in languages with better syntax/semantics.
such as Rust
>>
File: 1761499944377227.png (53 KB, 1023x971)
53 KB PNG
hardest fucking easy ever WTF
>>
How should I implement raii? Just destruct everything at the end of all functions?
>>
>>109792269
You've never used Lisp, you pointless troon.
>>
>>109792645
you shouldn't. Memory is cheap. Just use a bunch
>>
>>109792876
>memory is cheap
>>
>>109792613
isn't this just creating a tree from the digits?
then traverse and check if even and then put in hash map
>>
>>109792902
Ok, if memory is so expensive, then how come anthropic and openAI can buy shittons of them? They wouldn't if it was crazy expensive
>>
File: fell-for-it-again-award.jpg (266 KB, 2726x1532)
266 KB JPG
>>109792902
Did you really fall for his bait?
>>
>c++
Did C++ solved at any point the concept of
"compile time enum to string"
Say I have enum class Color with RED value and I want string literal "Red" in compile time.
Instead my brain is limited to create a static lifetime std::map where I use static_cast<int>(muhEnum) as index for string literals.
>>
>>109792931
Iirc it is possible with C++26 reflections, but that looked really fucking ugly. Building a simple map is easier
>>
>>109792947
Decided to search some phrasing and found this:
https://vittorioromeo.com/index/blog/refl_enum_to_string.html
X-macros are still in the league. Unbelievable. Outskilling all that overhead.
>>
>msvc++ is C++23 complete
C++26 never ever
>>
>>109792915
he isn’t wrong. memory is cheap. people fret over alignment wasting 8 bytes while they have 16gb to work with
>>
C doesn’t prevent you from making mistakes. It optimizes them.
>>
>>109794200
same with a pair of scissors
or a box of matches
>>
>>109793018
i luv macros
>>
File: Capture.png (65 KB, 1017x629)
65 KB PNG
>>109794291
i luv macroos
>>
>>109792645
how about you stop doing allocations every frame
>>
>>109792645
you allocate everything on the stack and when you leave the function everything gets deleted
>>
>>109794454
>>109794508
And 4chan successfully looped back to the original problem with vlas. Nice bitchloop you made to noose yourself with.
>>
>>109794454
>>109794569
uhhh, your frame arena, bro??
>>
File: okay subs.jpg (64 KB, 1026x576)
64 KB JPG
wanted to share an image tagger GUI I vibe-coded. It also includes a nsfw video scanner (someone might need it)

TensorFlow is a mess. I had to write a long tutorial on how to install specific numpy ver etc. way too many dependencies,etc
so I added a .bat that automatically downloads and installs everything for you. (locally) this will help me too lol

git:
https://github.com/amagifan99/AI-image-tagger-V1

Comes with a portable curl included not sure if that's how people do it.
feel free to change/fix anything
>>
File: xd.png (24 KB, 603x613)
24 KB PNG
>>109794717
xD nice
>>
>>109790101
i don't understand why you would ever do this when you can just abuse table vacancy, compute the hash once and iterate the index forward until you find a spot

this seems like it's only trying to mitigate worst case in a static table but in reality you wouldn't be using a static table, you would be free to grow it at whatever vacancy rate you want
>>
>>109794825
cooked:' thanks for the fix
but they probably all AI predictions
>>
>>109776950
I'm trying to learn NeoVIM.

So far it's incredibly annoying and mostly unintuitive.
>>
How the frick did Haskell become self-hosted?
>>
>>109795508
they implemented a Haskell compiler in it same as everything else?
>>
>Actually doing something with Haskell.
Isn’t that impossible?
>>
>>109795525
Clearly far easier than using your brain
>>
>>109795530
>Using your brain with Haskell.
Don't you just memorize random builtins for every obscure situation?
>>
>>109795453
if you get used to it you're here for life
>>
File: IMG_2081.jpg (39 KB, 554x554)
39 KB JPG
I broke my table language :(
>>
>>109794592
this guy was talking about RAII
you do whatever you want with arenas, he's not talking about that
>>
Rust is cooler than C.
>>
i like C because it's simple and easy to use
>>
>>109796010
Another Pythonista in utero.
>>
>>109795904
How'd you break it?
>>
>>109796059
I tried nesting tables.
>>
>>109796016
i hate python because it is horrifically overcomplicated. it has too much insane syntax. i like kernel source style C. clear and direct code. no frills
>>
>>109796080
You will stick to a subset of Python and continue to be merely an observer of C.
>>
>>109796071
>>109794355
i feel you. i tried making structs and nesting really fucked me up, eventually got it but its a mindfuck. you got this
>>
>>109794864
you would do this if you can't grow



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