[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: snailcat.png (1.88 MB, 1807x1750)
1.88 MB PNG
What are you snailcats working on?
Previous: >>108683492
>>
>>108717901
Haskell
>>
I'm learning C++
>>
File: time magic.png (355 KB, 1920x1040)
355 KB PNG
>>108717901
I have the time traveling functionality roughed out in the Tohru debugger. The slider lets you move forwards and backwards in execution and appears to be working properly. The buttons are a little buggy, sometimes requiring multiple clicks to do anything, so I am trying to fix that.

I also created a silly debugger bug where breakpointing a rule causes only that rule to run, instead of running the full program and pausing when that rule is encountered. I have no idea what is causing this and will fix it after I get time traveling completely working. Time traveling was actually pretty easy to implement. You almost get it for free because the underlying model of computation is string rewriting.
>>
>>108718483
I wonder, do you use some kind of purely functional patch based event sourcing type stuff or do you apply "inverse" actions to current state?
>>
My text editor
>>
>>108718594
Peppy. What's this operation it's doing that leaves the brackets in place?
>>
>>108718609
So I first implemented two things that made this possible: 1. multiple selection (with gaps) 2. word jumps (which work in a much more precise way than vim or helix). So this thing is kind of like a demo of composable behavior enabled by those two features: it selects all words in a line, then deletes them.
>>
>>108718483
wow looks nice so far!
>>
>>108718626
Pretty rad. Good work bro.
>>
>>108718594
> } unittest { ... }
What the fuck is that, lol?
>>
>>108718701
that's unittests right next to your actual code. Pretty handy. D allows that (although you can keep it separately) and I very prefer it for this particular project.
>>
>>108718594
I'm also working (although it's basically finished) on a completely different project - a no build, no npm, SSR-compatible JS framework, some of you might find it interesting: https://qitejs.qount25.dev
>>
>me when new maid boy tech thread drops
>>
File: maid-dance.mp4 (3.49 MB, 1620x1080)
3.49 MB MP4
>>
>>108718483
>f7
>f8
you shouldn't make shortcuts hard to reach unless there's a compelling reason for it.
One thing I like about my go-to debugger FlowStorm is that it has good shortcuts, with only a few exceptions:
https://flow-storm.github.io/flow-storm-debugger/user_guide.html#_key_bindings
>>
File: 4snailcat.png (558 KB, 1971x819)
558 KB PNG
>>108717901
AIGODS won, luddites lost
>>
>>108718738
It is interesting, but I don't like tight coupling of state management and ajax to presentation, all inside of components. My usual React way of doing things is have purely presentational components fully independent from both big state and ajax combined and wired together inside of "pages" - biggers components that wire things together, and ajax/state management is done in modular/reusable hooks/reducers that can be imported in many pages or even other hooks/reducers.
>>
File: nijisanji.jpg (392 KB, 850x1133)
392 KB JPG
>>108718552
Each state of execution is an individual, immutable Java record. I just stuff them in a list and then hop around list indexes. This only happens during debugging. During a normal run, a record is made for each step of execution, but discarded when that step completes and you get the output of the last one.

>>108718634
>>108718756
>>108718762
>mfw
<3

>>108718769
>P Step prev over. Go to previous step on the same frame
> p Step prev
> n Step next
> N Step next over. Go to next step on the same frame
> ^ Step out
> < Step first
> > Step last
Thank you for showing me this. I will probably use it. I like using n and p for next and previous because it is intuitive.
>>
>>108717901
reading every single line of JS documentation on MDN + learning clojure on the side
Millions must read the docs
>>
>>108719076
>^ Step out
I don't like that one, it seems intuitive but it's hard to type. I would use 'o' for step out, easy to reach because it's next to p.
>>
>>108719227
>reading every single line of JS documentation on MDN
I did that in 2018, really fucking good docs. Too bad I don't write JS anymore.
>>
>>108719437
You still type like a 1960's secretary even when debugging?
>>
>>108719004
Fair enought that you prefer React, but I'm not sure what you mean by "tight coupling", can you give me an example of what you disliked? Will help me write better docs for it in the future.
>>
>>108718594
Noticed a design flaw, it seems to support languages other than Haskell
>>
As a complete coding nobody I've decided to pick C# on a whim purely to expand my horizons. Thought i will drop it in a week, but it's been a month of doing basic free courses, having fun with Claude as a personal teacher and even creating basic shit in unity, and god-damn i wish i got into it years ago.
>>
>>108717901
what's this animal called?
>>
i picked up a weird eeprom chip on a whim
if i remember its datasheet right by default it's set as all ones and the only values you can write to it are zeros
in order to reset it you have to put the chip which has a little window directly to the internals under a germicidal/skin and eyeball cooking UV C lamp for a bit
>>
>>108719899
It’s called "Luddite"
>>
>>108719543
you can't touch type?
>>
>>108719983
Do I look like Edna from the typing pool?
>>
>>108720070
lmao
go debug some Scratch programs on your Tablet, kiddo
>>
File: sakuya shrug.jpg (228 KB, 850x1247)
228 KB JPG
>>108719948
Do you ever get bored of posting this? I don't think maids really have a strong opinion one way or another about AI. It is just another tool in the toolbox.
>>
>>108720148
>maids
You are trans
>>
>>108720153
wow you must be a fucking detective
>>
File: You.jpg (114 KB, 628x960)
114 KB JPG
>>108720093
Here's you with the other old timey negresses
>>
File: maid2.jpg (663 KB, 1000x2115)
663 KB JPG
>>108720153
I'm just saying that if your goal is to get reactions from super anti-AI people, that it doesn't really make sense to go to the daily maid thread for this. This is the eternal maid cafe, and a large amount of the AI technology you are championing was created by maids.

>>108720295
Please do not be racist in the maid thread. Also, I like typewriters. They make nice sounds and you get a paper instead of a file. Very useful for making shopping lists and notes and things. You should go to an antique store and get one and try it out.
>>
File: dev kit.png (780 KB, 1900x632)
780 KB PNG
>>108719948
>>
>>108720338
>a threat to snailmice
>>
>>108720316
>do not be racist
Excuse me!?
>>
>>108720295

they are typing paychecks are they? wonder if each worker had own clearer maybe not daily
>>
File: 1777453580135564.png (32 KB, 493x311)
32 KB PNG
yay
>>
>>108717901
>snailcat thread
very based
>>
>>108719939
Yep, sounds like an EEPROM alright.
It seems a lot of programmable ROMs and flash works like that. To erase you have to erase a large block which will reset it all to 0s or 1s and then you write the opposites to it.
PS2 memory card is the same, which is why whenever I am writing I cache the blocks and write back any dirtied ones.
>>
>>108719948
Nothing wrong with being a luddite.
Does my not using AI to code harm you in some way?
>>
File: SUB2Tu.gif (2.19 MB, 320x262)
2.19 MB GIF
>>108720678
HOLY MACRO you got yesterdays? that thing was insane! nice job
>>
File: file.png (9 KB, 713x143)
9 KB PNG
Dear Past Me: thanks a bunch
>>
>>108720959
I don’t like you. Please die
>>
>>108720316
You are not funny
>>
I don't care what you use but jerking off AI is like jerking off the guy from Delhi who just stole your job.
>>
>>108720951
hadn't considered caching right out of the bat, but thinking about it i should probably be preemptively building a caching layer for it since apparently resetting it can take like an hour of UV C exposure
>>
>>108721323
I don't care about you at all.
>>
>>108721397
I wouldn't think caching is an issue so much, but I hear that for ROMs it is uaually wise to read them and write them multiple times to ensure you get good results.
Especially writing. Make sure you get each cell firmly in position by writing the data 3 or 4 times.
>>
>>108721581
good to know, thanks
>>
How hard is it to retarget a project in Visual Studio 2022 to VS 2026?
>>
>>108722126
i assume you mean an msbuild project, it's been years but all retargeting is, is changing just a couple of project properties corresponding to the windows SDK version, compiler version (i don't think the MSVC STL is allowed to be versioned separately from the compiler), etc. to the latest installed set
it's all the versioned stuff that the visual studio dev command line initialization bat script normally initializes its environment variables with
>>
>>108722613
Yeah, msbuild. Thanks. How much breakage could it even cause? I'm not familiar with how much MS changes stuff across their versions.
>>
>>108720070
you're a little bitch, yes

I learned touch typing in 2 days when I was 8. You don't score bonus points by trying to make your tech illiteracy look like a good thing.
Come on, hunt-and-peck another angry response with two fingers like a toddler.
>>
It seems I can update (overwrite) my saves on the PS2 memory card now.
I guess that means it is integration time. Oh and I need to make some UI messages, which probably means some python scripts to generate the PSMCT16 images that will splash up.

You know, when I first got the emulator running all the emulator code was about 25kB of the final ELF, the majority of it being the GB ROM.
Now I'm gonna have to add in a bunch more binary blobs that will blow up the size more while the emulator code still assembles to something like 30kB. It's fucking stupid.
The fucking PS2 save icon is 33kB alone.
>>
>>108722770
Developing for the playstation 2 is a real mess.

Lately I've been working on THUG, but I'm taking an extended break from it for a long while. Either way old c++ is horrible to work with
>>
>>108722627
i don't recall it ever causing much, and if it does you can always just keep older toolchains installed
the MSVC ABI has been the same since XP despite the fact that it no longer supports XP, they just don't fix bugs that affect the ABI and tack new shit on as satellite dlls
with i think only the one minor exception for std::format between VS2019 and VS2022 and things like the std::coroutine preview ABI vs actual ABI

occasionally they'll move headers around or remove unneeded includes so that can break things that expect say <utility> to include <cstdint>
>>
>>108719948
Change anime to tranime for the artist in your pic
>>
>>108720148
Shartyposters never get bored of doing the same thing over and over again, its basically reddit but filled with teens that think they are edgy and that humor is a formula that you force until people agree that its "funny".
>>
>>108722718
Don't chip a nail typing these angry replies, Dorris.
>>
File: 1772336070230245.png (2.63 MB, 1536x1024)
2.63 MB PNG
>>
>>108723058
3 trillion dollars well fucking spent
>>
File: nijisanji2.jpg (869 KB, 853x1700)
869 KB JPG
>>108718483
The debugger is mostly fixed. The buttons work now, but for whatever reason, when I hit resume, it is not respecting my breakpoints and program execution runs to completion.

>>108719437
This is a good idea. Thank you for telling me.

>>108721332
Nothing in that post was intended to be funny?

>>108723015
I am so desensitized to soijak spam that it didn't even register to me as sharty nonsense. I try to believe in the best in people.

>>108723058
I feel like this should be redrawn in a more moe style, with the dog more clearly chasing the cat. It kind of looks like it is also after the mouse in this one.
>>
File: 1757501431454195.png (2.6 MB, 1536x1024)
2.6 MB PNG
>>108723456
>>
>>108723507
This is wonderful. I like that snailMOUSE looks concerned for snailCAT.
>>
File: fml.jpg (124 KB, 768x1024)
124 KB JPG
>>108717901
I need some non-autistic software that runs on Linux (or online if it doesn't need me to create an account for any reason) to create diagrams, especially ER-Diagrams.

Got anything good?
>>
>>108723657
There's mermaid charts or something like that which you can use in web pages if you're looking for something easy
>>
>>108723657
>non-autistic
The only people who make ER Diagrams are autistic and all software created to do this will also be autistic.
>>
File: cat.jpg (92 KB, 660x495)
92 KB JPG
>>108723693
I know mermaid charts, there's no chen notation. Thanks anyways anon.

I think I'll create my own software sometime, for now I'm just using my Rotring 600.
>>
>>108719948
Holy fuck you're retarded kek
>>
File: engine.png (91 KB, 856x984)
91 KB PNG
>>108723657
draw.io no account needed
>>
File: 1613871653108 70c.jpg (28 KB, 414x598)
28 KB JPG
>>108723855
Perfect. Thanks Anon!
>>
malloc.c is 6 thousand lines of code. An arena allocator is less than 100.
>>
>>108723058
>snails
>legs
>>
>>108723892
don't you start again
>>
>>108723892
What is an arena allocator? Does it have other advantages over malloc?
>>
>>108724006
https://en.wikipedia.org/wiki/Region-based_memory_management
>>
>>108722933
Thanks.
>>
>>108724006
Don't fall for resident malloc schizo rambling. Area allocators are very useful in specific niches, but they are a drop in replacement for general purpose dynamic memory managment like the ones used by malloc(btw malloc is not an algorithm by itself, it doesn't have any LoC. it's just a standard C function that can be mapped to various allocators depending on your system, compiler, etc).
Outside of the situations where area allocators excel at, using them makes no sense and will likely end up in your code using significantly more memory and possibly never be able to deallocate any of it causing resource exhaustion and crash. The key aspect of memory areas is that all the objects living there must have similar lifetime because you can only free them all at the same time. Majority of long-running user programs like web browsers, video games, editors, etc only have small amount of objects with joined and bounded lifetime if any where use of memory areas make any sense.
>>
>>108724162
>but they are a drop in
*but they are not a drop in
>>
>>108724006
Start here: https://pastebin.com/dJAavFc6
>>
oh shit gcc 16.1 has C++26 reflection
a lot of my stuff is set up mostly around clang/the wider llvm projects but with how badly clang has been with stagnating on implementing C++23 and 26 conformance i think this is the last straw and i'm switching to gcc as my primary target unless something massive changes
>>
>>108722948
If I did that I would get banned.
>>108723827
Cope, coders lost, vibeGODS won. You will be replaced and you will die of hunger after losing your job to some AIGOD agent
>>
>>108724986
I don't think anyone is afraid of competing with you.
>>
>>108725084
it's b8
>>
File: 3742-max-grid-path.png (391 KB, 692x607)
391 KB PNG
I wanna go for the month badge in May. April I got pretty lazy the first week.
>>
>>108725323
Who names their variables "Dynamic Programming"?
>>
File: GWlKksiXEAAS2tf.jpg (890 KB, 2400x3150)
890 KB JPG
>>108725340
DP means Double Penetration you silly.
>>
>>108725340
>>108725368
I thought it was Daily Programming but this really explains a lot
>>
File: don quixote.jpg (265 KB, 850x1078)
265 KB JPG
>>108725323
What game is this? Seeing you maidpost about it makes me want to play it too.
>>
>>108717901
Snailcat bros can't stop winning
https://xcancel.com/theo/status/2049645973350363168
>>
File: leetcode.png (124 KB, 318x418)
124 KB PNG
>>108725340
>>108725368
>>108725397
lol I honestly don't know what it stands for. I just learned it by reading other peoples codes. all 3 make sense to me!
>>108725400
Yay, its just the daily leetcodes.
https://leetcode.com/problemset
The fun ones are Advent of Code and Everybody Codes, but last year I sorta sucked at those so I gotta study up for this years!
https://everybody.codes/events
https://adventofcode.com
>>
>>108720970
>you got yesterdays?
I read the editorial and translated it to my language
>>
File: slow.png (837 KB, 1776x631)
837 KB PNG
Feline a little sluggish.
>>
File: 1772676785247529.png (2.42 MB, 1402x1122)
2.42 MB PNG
>>
>>108725609
KEK
AItards LOST
ludditeCHADS WON
>>
>>108725323
>using 0 <=
Lol.
>>
>>108725862
>>108726067
does snailcat use Haskell?
>>
>>108726226
ah embarasing :( only right and down... and its a for. force of 2d grid habit.
>>108725706
lets see your punch card!
>>
>>108726292
Only maids use Haskell. Mostly as an academic exercise for research purposes.

So the real question is, is snaiCAT a maid?
>>
File: snail_man.png (16 KB, 400x400)
16 KB PNG
>>108726292
>Haskell
now there's a language for snailMEN
>>
>>108718594
what the fuck your text editor makes emoticons?
(=>-<=)
>the coolest shit I've ever seen in a text editor
>>
I don't know what's the deal with the snailcat and I hate snails but love cats and I love this silly little guy
>>108726325
danke doctor
>>
File: 1755321630627364.png (32 KB, 841x192)
32 KB PNG
>>108726319
>lets see your punch card!
unironically one of the few things I have to be proud of in my life
I try all the questions on my own first, if I'm super busy and I don't have the time to answer I'll copy a solution from the tab and bookmark it for later
if I have the time but for the life of me can't solve it I'll check out the editorial and try to understand the question on my own
>>
>>108726384
>what's the deal with the snailcat
Anti-AI spammer accidentally represented non-AI users in a super cute way. Then it became a meme no longer related to AI (except that AI is used to draw it a lot of the time) because it is so cute.
>>
test
>>
File: snail_maid.png (136 KB, 400x400)
136 KB PNG
>>108726323
>Only maids use Haskell. Mostly as an academic exercise for research purposes.
oh sorry
>>
File: 1762132426870525.png (849 KB, 1200x675)
849 KB PNG
>>108726400
>anti-AI retard uses a diffusion model to represent non-AI users
lel ofc
tho really this just shows that memes from diffusion models are just as valid, you still need a human brain to come up with a concept that'll have that something about it. Just another extension of the collective human consciousness in the digital space.
>>
>>108726387
oo nice job. are you the swift anon? regardless that actually sounds like a good way to study languages. if I get a real job I'll have to try something new
>>
>>108726449
>are you the swift anon
yes hi!!!!
>>
>>108726067
>>108726437
fuck off with that bullshit.
i made the thread with snailcat OP because I thought it would be funny, don't need you retards using it as an excuse to post AI slop and "le ai art is heckin valid" posts.
>>
>>108725609
Luddite cope tweet, literally skill issue. We are gonna replace you
>>
>>108726507
then you shouldn't be using a meme that AItards spam
>>
>>108726400
>anti ai
Im pro ai tho.
I hate ludders and codetrannies
>>
>>108726635
I misspoke, but you're also retarded so it doesn't actually matter if I represent your position accurately or not.
>>
>>108726661
>says than I’m a retard
>his reading comprehension is trash, can’t write coherent stuff and he’s a codetrans
Lmao, we are gonna destroy you lil bro, AI is gonna make you lose your job and die of hunger.
>>
>>108726676
>having a job
>>
>>108726676
>than
nta but I think you need to work on your reading/writing
>>
>>108726691
You are an useless eaten then
>>
>>108726706
You are a slave.
>>
>>108726706
>nooooooooo you have to waste your entire life being exploited so that someone else can profit from your labor
Wagie, wagie, get back in the cagie. You have to fund my chicken nuggies.
>>
>an oosless eater
>>
>>108726706
>eaten
>>
>>108726746
>>108726738
Im phoneposting. You are trans anyway
>>
>>108726706
>hahahaha your job is going away
>nooooooo, you can't just not have a job and not care what happens to the industry

>>108726749
>having a smartphone
>>
>>108726749
Holy shit they weren't kidding you ARE retarded HAHAHAHAHA
>>
>>108726761
Cope, you will die. VibeGODS are gonna torture you and your loved ones. AiGODS won
>>
>>108726766
lmao retard
>>
File: 1686131810389151.png (12 KB, 840x610)
12 KB PNG
>>108726325
waaaait a minute... that art style...
>>
>>108726770
Cope, trans
>>
>>108726786
>Cope
The only one coping is YOU, now that everyone is laughing at you for being the retarded wagie you are kek
>trans
I'm not a troon but you probably are KEKAROO
>>
>>108726791
>neet
>tranny
>gay
>codetrans
lol, you lost
>Y-you are a wagie
I’m a vibeGOD and my job is to replace people like you (coding manually is a trans activity)
>>
>people are giving the retard the attention he desperately craves
total retard victory
>>
>>108726803
copium
>>
>>108726806
Codetrans
>>
trans don't code, they write CoC and ride cock
>>
>>108726815
Coding manually is a transgender activity. Just like posting on the Sharty like you
>>
>>108726815
k retard
>>
File: ed2.png (180 KB, 680x1483)
180 KB PNG
This reminds me
Someone once forked a random unfinished project (that did literally nothing mind you) I had and "made it their own" (relicensing it from GPL to some proprietary license iirc), all for the purpose of some AI/crypto nonsense, for their random AIbro startup
And you know what the funny thing was?
They were trans ("she/her")
>>
>>108726827
did you not notice my pun? someone should give me a medal.
>>
>>108726836
That's a copyright violation.
>>
>>108726807
thank you for constantly proving my point
>>
>>108726885
>change the name of the variables
>say that it was AI generated code
gg Luddite
>>
File: c3547780497f259f.png (35 KB, 1085x875)
35 KB PNG
>>108726885
Well, A) the original repo was an attempt (keyword: attempt) at decompiling an EA game, and B) the repo had barely anything in it, so I don't care much about it anyways
Just find the whole situation funny, in a cosmic sort of way
Also correction: my original repo didn't have a license to begin with (I could have sworn I had the GPL, but nope) so ehhhhh
picrel is who/what I'm talking about btw
>>
File: 1775237757487647.png (250 KB, 640x640)
250 KB PNG
>Using AI to teach myself x86 32 bit assembly
>Have to make a syscall
>Program exits due to all kinds of random errors I've never seen before
>Do more research
>AI was literally making up syscall table numbers
>No function even exists for the number I was trying to call
>Calling convention was even wrong besides that
>>
>>108726928
>>Using AI to teach myself x86 32 bit assembly
>>
>>108726985
If you know any actually useful resources I'm all ears.
>>
>>108727035
it's called a book. this one is pretty good and on zlibrary
>>
>>108727048
>zlibrary
nta but what/where is that? All I know is libgen iirc
>>
File: faf73c6f3d0e4baf.png (65 KB, 1433x937)
65 KB PNG
I have the sudden urge to make my own screenwriting program, because all the existing ones either suck or are expensive as hell (see picrel)
>>
>>108727080
uhh... fountain.io?
>>
>>108727062
https://open-slum.pages.dev/
use this to find book sites. zlib should be up again, i don't think i can link directly to it here but i checked and the book i showed is still available
>>
>>108727087
damn you've got a point
>>
>>108727080
What's the advantage of screenwriting program over MS Office Word or even markdown/latex?
>>
>>108727093
I like it with the vs code extension 'better fountain'
>>
File: image_8af95b34.png (1.99 MB, 1408x768)
1.99 MB PNG
>>
I love programming and by programming I mean writing gay little games and toys that nobody else on earth besides me will ever use. What do I pivot to for an actual job? Construction?
>>
>>108727048
Thanks for the recommendation. Looks like the same guy made a 32 bit book back in 2009, too.
>>
>>108727141
> 1990s
Ffs, couldn't you at least add proper years into your prompt.
>>
File: 1769208265210136.png (55 KB, 420x646)
55 KB PNG
explain
>>
>>108718594
>all those conditional checks
worse than AI slop
>>
>>108719948
do you make things or just shill kosher products?
>>
>>108727144
is that you lynks?
>>
File: 1708863449218210.gif (318 KB, 500x281)
318 KB GIF
>>108727141
2030s will be the decade of formal methods
>>
>>108727270
char and unsigned char are both character types, both belong to the non-member overload group for operator<< which treats them as ascii codes, that way shit like '\n' doesn't get converted to hex too.
>>
File: 5927154.png (19 KB, 280x280)
19 KB PNG
>>
int main()
{
uint8_t a = 0xAB;

// this will call operator<<(ostream, unsigned char)
std::cout << std::hex << a;
operator<<(std::cout << std::hex, a);


// member function overload set
std::cout << std::hex << +a;
(std::cout << std::hex).operator<<(a);
}
>>
Can you guys run this and tell me what you see in the first 1G of memory? I'm trying to figure out which low memory regions are safe to use in most computers.

printf "%-10s %-10s %-10s %-10s\n" "Start" "End" "Size" "Type"
printf "%-10s %-10s %-10s %-10s\n" "-----" "-----" "----" "----"

sudo dmesg | grep -i 'e820: \[mem' | while read -r line; do
mem=$(echo "$line" | grep -o '0x[0-9a-f]\+-0x[0-9a-f]\+')
[ -z "$mem" ] && continue
start=${mem%-*}
end=${mem#*-}
type=${line##* }
start_dec=$((start))
end_dec=$((end))
size=$((end_dec - start_dec + 1))
start_mb=$((start_dec / 1024 / 1024))
end_mb=$((end_dec / 1024 / 1024))
if ((size >= 1024*1024)); then
size_h=$((size / 1024 / 1024))" MB"
else
size_h=$((size / 1024))" KB"
fi
printf "%-10s %-10s %-10s %-10s\n" "${start_mb} MB" "${end_mb} MB" "$size_h" "$type"
done

Start End Size Type
----- ----- ---- ----
0 MB 0 MB 629 KB usable
0 MB 0 MB 11 KB reserved
0 MB 0 MB 128 KB reserved
1 MB 156 MB 155 MB usable
156 MB 159 MB 3 MB reserved
160 MB 161 MB 2 MB usable
162 MB 162 MB 44 KB NVS
162 MB 175 MB 13 MB usable
176 MB 176 MB 128 KB reserved
176 MB 1184 MB 1008 MB usable
1184 MB 1184 MB 4 KB reserved
1184 MB 1185 MB 372 KB usable
1185 MB 1185 MB 4 KB reserved
1185 MB 3229 MB 2044 MB usable
3229 MB 3233 MB 3 MB reserved
>>
File: alien.png (50 KB, 709x619)
50 KB PNG
>>108727048
anon...
>>
>>108724897
clang had reflection for years, but you need a build from a separate source tree (this is the same clang(reflection) you get from godbolt)
https://github.com/bloomberg/clang-p2996/tree/p2996
>>
>>108717901
Slowcat is slow.
>>
>>108727772
i've used the bloomberg fork before, that doesn't make it the proper implementation
amoungst other things it intentionally has very little optimization work
also there's some issues with it like it restricting you to llvm's STL unless you rewrite their <meta> to work with the GNU STL
>>
>>108727695
What the hell kind of gay ass baby talk is this shit?
>>
>>108727682
Don't. It makes mustard gas.
>>
>>108727695
This is what the government doesn't want you to know. Shhhh.
>>
>>108726400
> Anti-AI spammer accidentally represented non-AI users in a super cute way.
>a weak snailcat is cute
Moron
>>
>>108727695
i already knew this so i just skipped it. lmao though.
>>
>>108727300
Saar I am making nothing of value as in the usual in the shit covered slums of bharat
>>
>>108727890
it's waste of paper that's what it is
>>
Got laid off so got kicked off my companys gpt subscription.
What’s some ways to get the 5x-20x level of usage without paying $100?

Inb4 other models - No

My usage is usually like ~40% of the 5x plan 5 hr window limits when I use it.

Are there legit resellers that share with max 3-5 people to offset costs?
>>
>>108727314
>2030s will be the decade of formal methods
I wish! I've only had website jobs. I can't even imagine writing a real program.
>>
>>108727682
0 MB       0 MB       636 KB     usable
0 MB 0 MB 132 KB reserved
1 MB 153 MB 153 MB usable
154 MB 157 MB 4 MB reserved
158 MB 158 MB 1 MB usable
159 MB 159 MB 60 KB NVS
159 MB 2987 MB 2828 MB usable
2987 MB 3005 MB 18 MB reserved
3005 MB 3231 MB 226 MB usable
3231 MB 3279 MB 48 MB reserved
3279 MB 3295 MB 16 MB NVS
3295 MB 3295 MB 512 KB data
3295 MB 3295 MB 4 KB usable
3296 MB 3327 MB 32 MB reserved
3968 MB 4031 MB 64 MB reserved
4062 MB 4062 MB 1 MB reserved
4064 MB 4064 MB 1 MB reserved
4076 MB 4076 MB 8 KB reserved
4076 MB 4076 MB 4 KB reserved
4076 MB 4076 MB 4 KB reserved
4077 MB 4077 MB 8 KB reserved
4078 MB 4078 MB 4 KB reserved
4080 MB 4095 MB 16 MB reserved
4096 MB 15074 MB 10979 MB usable
15075 MB 17151 MB 2077 MB reserved
>>
>when the daily leetcode topic is math
I guess I'll try next month.
>>
Erlang is King!
>>
>>108728378
>>>/g/vcg
>>
>have project idea
>spend some time planning and using chatgpt to research existing apis/services/shit i can use
>gives me a self hosted service that covers all of my needs
>go back to check it later
>thing doesnt even exist, neither do the other alternatives, the entire convo was basically hallucinated
SnailCHADS won, i do not understand how people look at this and pay 5 billion dollars to it, its over
>>
from PIL import Image

filename = "gbemu-saveload"

img = Image.open(filename+".bmp")
img = img.convert('RGB')
pixels = img.load()
w,h = img.size

f = open(filename+".img", "wb")

for y in range(h):
for x in range(w):
r,g,b = pixels[x,y]
p = 0x8000
p |= r>>3
p |= (g>>3)<<5
p |= (b>>3)<<10

f.write((p & 0x00FF).to_bytes())
f.write(((p & 0xFF00) >> 8).to_bytes())

f.close()

It takes a bmp and converts it into PSMCT16 (RGBA16) format.
>>
File: mmbig.png (34 KB, 603x523)
34 KB PNG
Kinda looks too big but you know, UX isn't my passion.
>>
>>108727314
we don't have mainstream languages with good toolchains for formal verification
maybe C, Rust, or Ada but those tools are a niche
>>
File: ymawky.png (1.58 MB, 2764x1726)
1.58 MB PNG
i've been working on a static web server entirely in handrolled arm64 assembly. it supports GET, PUT, HEAD, DELETE, and OPTIONS requests, and does URL decoding and some decently robus safety checks
>>
>>108729757
assembly chads CANNOT stop winning.
>>
>>108729757
That is assembly + GNU/Linux though
>>
>>108729800
erm actually it's assembly + XNU/Darwin. this shit would Not Work on GNU/Linux without being rewritten.
>>
Maybe this should go in the /sqg/ but how do ai learn sql, particularly sqlite? Any book that's the best or something? I'm using DB browser for sql
>>
>>108729879
I meant, how do I learn
>>
>>108729255
>have project idea
>ask chatgpt about it
>it spends 20 minutes doing web searches and reading like fifty pages, tutorials, docs, browses the repos to check how specific features I asked for I implemented
>gives me a comprehensive answer with citations, official doc links, and links to the code

I think you got a skill issue doc
>>
File: 1770741422214925.png (270 KB, 1442x1496)
270 KB PNG
https://leetcode.com/problems/employee-free-time/description/

https://leetcode.com/problems/merge-k-sorted-lists/
>>
>>108730095
>ask another person a question
>person gives you a wrong answer
>looks like the asker has a skill issue
You're dumb.
>>
>>108730473
>tool lets you ask your question to different people
>pick a free/cheap one or use the setting to explicitly get a quick low effort answer
>your question is assigned to a dalit pajeet whose job is to answer asap without looking anything up, he makes some shit up on the spot for you
>on the next booth over you have a brahmin pajeet with western higher education and full access to the internet, whose job is to carefully research every question he gets; he's sitting there twiddling his thumbs watching you cheap out and slurp up the dalit's unhinged ramblings
Yes that is indeed your skill issue
>>
>>108729757
that is retarded and it will be soon forgotten even by yerself. you should invest your time into building runtimes. runtime is a safe where goodies stored. same regarding other low-level dev activity
>>
camelCase or snake_case?
>>
>>108730095
>>gives me a comprehensive answer with citations, official doc links, and links to the code
>but the code it generates doesn't work
>and some of the quotes and information aren't on the pages it cited
So many such cases.
>>
>>108730821
lisp-case
>>
>>108730821
I tried to come up with an elegant way to explain my rationale but then I just came up with this demonstration which I think speaks for itself:

https://en.wikipedia.org/wiki/Camel_case
mental illness

https://en.wikipedia.org/wiki/Snake_case
a genius admires simplicity
>>
>>108730821
snake case for variables
camel case for functions
camel case with the first letter capitalized for classes (this probably has some other name idk about)
>>
File: 1776973715458311.jpg (73 KB, 1080x1031)
73 KB JPG
>>108730821
Ada_Case
>>
>new job
>takes them two weeks to even make me accounts
>then takes another week for me to get invited to a call
>still haven't managed to get my development enviorment setup
>got my first paycheck, havent written a single line of code
is this normal, or am i getting fired from my six month trial a month in?
>>
>>108718594
>command line slop



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