[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
Subject
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]

[Catalog] [Archive]

File: 1756812839.jpg (602 KB, 1920x1080)
602 KB
602 KB JPG
181 replies and 65 images omitted. Click here to view.
>>
>>106509435
>>106509584
based
>>
>>106506050
do u live in albania? u from the north?
>>
>>106510866
I'm from Kosovo.
>>
>>

File: 1756559931188015.jpg (504 KB, 2198x2716)
504 KB
504 KB JPG
Previous /sdg/ thread : >>106503934

>Beginner UI
EasyDiffusion: https://easydiffusion.github.io
SwarmUI: https://github.com/mcmonkeyprojects/SwarmUI

>Advanced UI
ComfyUI: https://github.com/comfyanonymous/ComfyUI
Forge Classic: https://github.com/Haoming02/sd-webui-forge-classic
reForge: https://github.com/Panchovix/stable-diffusion-webui-reForge
Stability Matrix: https://github.com/LykosAI/StabilityMatrix

>Early Preview UI
AniStudio: https://github.com/FizzleDorf/AniStudio


Comment too long. Click here to view the full text.
>>
First for containment general
>>
>nigbo
>>
inb4 research news that no one will discuss
>>
>tfw fully missed rocketgurlp***s crashout
dang

File: logo-c-1.png (68 KB, 2000x2000)
68 KB
68 KB PNG
I'm a programming novice taking some online courses. The courses have moved off c, but i want to keep what I've learned sharp, so I'm writing an amateur string library for personal use.

I made a linked list based function (properly frees all nodes after the linked list is transcribed into an array) that returns a pointer to a character array for dynamic string input and utilization back in main(). The array in main does need to be freed as well; put a reminder in the function docstring.

Are there any known safety edge cases for a strategy like this? Does it generally make more sense to save all of the work and just initialize arrays with way more space than needed versus allowing for completely dynamic creation? It just annoys me that char arrays need to be fixed size at compile time, and I wanted to see if I could work around that for increased safety and interactivity.
10 replies and 1 image omitted. Click here to view.
>>
>>106511352
Well in case you haven't noticed, it is a compiled language and it is more code efficient and statically type correct to determine allocation size at compile time. You know the size at compile time? Okay now you can do compile time bounds checking and when you lower the code to assembly you can use an allocation instruction with an immediate value rather than telling the cpu to wait on a register to become available. You also have a compile time source of how large the function call stack will be. Whether or not programmer likes the behaviour is why abstractions exist.
By choosing an allocation at compile time you are only paying for the behaviour you ask for.
>>
>>106511175
Post the code.
Reading English confuses me.
>>
>>106511444
So, like the other guys were saying realloc is best practice. Alright. At least i got a little more practice rudimentary data structures. Still at the point where traversing nodes isn't quite muscle memory.

Thanks all!
>>
>>106511468
Lol. My power went out. In the middle of refactoring this mini project actually. That's the only reason I'm here phone posting.
>>
>>106511481
(nta)
theres several ways you could deal with this problem
you could "over-allocate" (actually over commit), as in allocate a lot of available memory, and play on the fact that said memory isnt "occupied" until you write to it
ofc theres realloc, but one could write a version thereof with mmap directly

but these are advanced methods

at your level, i think you should look into what an arena is.

you create a linked list
and each node's data is an allocated region of memory
then you distribute pointers from said memory regions until you run out.
when you do, you allocate a new node, new region of memory


Comment too long. Click here to view the full text.

File: 1743032959377845.png (347 KB, 982x913)
347 KB
347 KB PNG
40 replies and 4 images omitted. Click here to view.
>>
>>106511568
yeah but 8GB is more expensive so at that point the 3060/3080 stuff is on the table and at some point you just have to say nah 3050 is enough
>>
>>106510851
>going to linux for graphics drivers
anon pls

pls
>>
>>106511107
>Nobody gives a shit about almost 20 year old content not running as fast it "could".
there is a difference between a game not running at 10000 fps and it being humiliated by EIGHT fucking generations old GPU
>>
>>106511975
forgot the video
https://www.youtube.com/watch?v=h4w_aObRzCc
>>
>>106508841
>oh no my ancient card wont get the newest placebo drivers
Still on 431.60 and all womm

File: 1756894545567076.jpg (163 KB, 1024x1024)
163 KB
163 KB JPG
Previous Thread: >>106471022

>Links:
>DALL-E 3
https://www.bing.com/images/create
https://designer.microsoft.com/image-creator
>4o
https://chatgpt.com/
https://sora.chatgpt.com
https://copilot.microsoft.com/
>Imagen 3
https://labs.google/fx/tools/image-fx
>Imagen 4
https://gemini.google.com/app
https://labs.google/fx/tools/whisk

Comment too long. Click here to view the full text.
72 replies and 53 images omitted. Click here to view.
>>
>>106511217
oh no if /v/ is purging it's AI thread who will pick up all the schizos?
>>
>>106511497
There's a thread up on /v/ right now, Denny's boy.
>>
>>106511497
I just hope the noimg schizos won't notice this thread. Threads randomly deleted isn't really anything new on /v/, but they've had several threads in the last few days that failed to reach either post/image bump limit.
>>
>>
File: OIG4.bgirJ2JLEX5BXZ.jpg (129 KB, 1024x1024)
129 KB
129 KB JPG
>>106510527
"beautiful plump anime lady, beachwear attire, motherly" makes BIC deliver the wide hips

File deleted.
What are you maids working on?

Last one: >>106482423
65 replies and 13 images omitted. Click here to view.
>>
File: error.png (11 KB, 1576x348)
11 KB
11 KB PNG
>>106511791
if i try passing the entire directory to the include i get this.
>>
>>106511909
you might need another -i
>>
>>106511942
thats because the included file itself includes files and they dont include those as /usr/local/whatever
>>
>>106505513
turn the volume down
>>
>>106505513
the terms are the real noise

File: 1746715992597524.png (1.37 MB, 800x1200)
1.37 MB
1.37 MB PNG
FAQ:
>How do I activate Windows?
HWID2 generates and registers a permanent legitimate license on MS's activation servers
github.com/massgravel/Microsoft-Activation-Scripts
Usage: paste this into Powershell, run.
irm https://get.activated.win | iex

>and Office?
Same link, select Ohook option
You can also use Office.com if your needs are very minimal
or try OnlyOffice/LibreOffice and set it to save in MSOffice file formats

>What version should I install?
>W10 Enterprise IoT LTSC 2021
Binary identical to Enterprise except no MS Store or apps
Preinstalled with: Edge & Win32 system apps

Comment too long. Click here to view the full text.
208 replies and 29 images omitted. Click here to view.
>>
>>106511203
>Your entire system stack will be permanently stuck on a build that will every 3 years be 3 years out of date and incompatible with anything inovative and new that released in that period.
Not an LTSCfag but Enterprise gets 3y of support on any given feature release which gives you more guarantee of support. This is also a big reason to just use a GAC edition but the whole appeal of LTSC IMO isn't the lifecycle but the OOTB minimal configuration that you know future updates will respect.
>>
It's best to ignore schizos and shills.
>>
Can I install Windows Sandbox on W11 IoT Ent LTSC?
>>
why cant i just buy a loicense from microsoft?
>>
>>106511955
Yes, you can just enable it in the Windows Features dialog. You can also use Sandboxie Plus if you want.

>>106511988
Why lick the boots of a corpo that doesn't care about you

File: 1757248502550.png (1.35 MB, 1284x1136)
1.35 MB
1.35 MB PNG
Linus, Brodie and all other onions redditors are completely in the wrong, as usual.
When you have high IQ talented people, like Elon Musk, Drew Devault, or, indeed, Kent Overstreet, who want to move fast, you LET them develop at their own pace. You don't cripple them just to appease low performers

That is the problem with the Linux kernel, everything moves at the speed of the weakest (slowest) chain, and Linus is too dumb to understand that those slowest chains are the problem, not the excellent programmers like Kent Overstreet who are just leagues ahead in terms of IQ.
Linus not understanding this is why Linux is still subpar to proprietary on many fronts, despite massive funding and corporate involvement.

BTW, Kent Overstreet is the author of BCacheFS, currently the most advanced filesystem for GNU/Linux.
2 replies omitted. Click here to view.
>>
why are you spamming this do you want to suck kent's cock or something if so hmu because i look like him desu :-)
>>
If he's so great, he should take his talents over to a different OS or just make it into an easy-to-install optional module.
>>
>>106511713
He should build his own kernel or fork bsd.
>>
>>106511748
I think its the dude who kept submitting fucked up buggy code last second to linux for his garbage file system and glt btfo'd for it by everyone including linus
>>
>>106511814
Wrong. he submitted bugfixes, not buggy code
bcachefs is the only filesystem, where you can get a bug, write to a developer and it will be fixed within 3 days, but usually much sooner.

File: 1744108399963252.png (97 KB, 236x233)
97 KB
97 KB PNG
>gpu overheats
9 replies and 1 image omitted. Click here to view.
>>
>>106511624
>Dying for some random irrelevant shithole that hates you is based and human
>>
>>106511662
1++
>>
>>106511662
but immigrating from the irrelevant shithole to a better place makes everyone there hate you and say "why dont you try to improve your own place breh" and pretend they didn't "improve" their country by stealing shit from the entire planet
>>
File: 1746943172848108.jpg (48 KB, 761x563)
48 KB
48 KB JPG
>>106511571
I don't like seeing countless thousands get killed, especially children. Even if they are Palestinian. The fact that /pol/tards gave into demonic cruelty so easily somehow feels even more disheartening, though. Perhaps many are born with evil in their DNA.
>>
>>106511838
Mudslime shitskins are at fault for worshipping the devil in God's holy land and terrorizing the people He gave that land to. Mossad created and financed Hamas, but it was the evil in the hearts of these mudslime animals what moved them to support it and join it collectively, and now they're getting rekt. Good riddance to the invaders. They brought this upon their own heads and upon their children by refusing to play by God's rules.

File: file.png (32 KB, 225x225)
32 KB
32 KB PNG
>native linux version of game is incredibly fucked
>proton version works fine
????
9 replies omitted. Click here to view.
>>
File: 95.jpg (85 KB, 1920x1080)
85 KB
85 KB JPG
>>106509656
>>proton version works fine
Because the Windows API is stable and the Linux APIs aren't. It's that simple.
>>
File: 1738810770227835.jpg (141 KB, 785x847)
141 KB
141 KB JPG
>>106509656
It's actually Valve's fault.
They couldn't be arsed to keep older Ubuntu runtime around so all the older Linux games are broken.
>>
>>106509656
>????
because you can't really make "linux native" games. there's different kernels, libcs and userspaces. what fuck do you even suppose to target? infinite amount of different permutations of linux desktop setups? with windows use just have win32. it's not perfect and in many ways is shit, but at least it's standardized. so you know what to target when developing for windows, unlike linux. if i would ever ship a game for linux today, i would just tatget windows and ensure that it works fine with proton.
>>
>>106509656
Literally what the fuck is confusing about that
>>
>>106509960
>>106511671
Microsoft has fucked with it multiple times, and gaslit everyone that they weren't following the win32 api properly.

File: 1732902037238582.png (3.63 MB, 1920x1080)
3.63 MB
3.63 MB PNG
Kino Edition

>Not sure what private trackers are all about?
A private tracker is an invite-only torrent website. Each member shares common goals: collecting, preserving and discussing media.

>Have a question?
- FAQ https://archive.is/UVQkn
- WIKI https://igwiki.lyci.de/wiki/Private_trackers
- NEWFAG PYRAMID https://inviteroute.github.io/graph or https://inviteroute.github.io/sheet/
- STUDY https://www.cambridge.org/core/services/aop-cambridge-core/content/view/2F379FE0CB50DF502F0075119FD3E060
- SPREADSHEET https://hdvinnie.github.io/Private-Trackers-Spreadsheet/
- TEN CURRY COMMANDMENTS https://pastebin.com/raw/dBbdE73M (embed)
- TEN NEON COMMANDMENTS https://pastebin.com/raw/Ud2pGYaE (embed)
- RED SPAMMER'S BIBLE https://rentry.org/69zbxh4h


Comment too long. Click here to view the full text.
286 replies and 34 images omitted. Click here to view.
>>
>>106511888
It is, once the torrent is on RED, you cannot recompress it.
>>
>>106511888
Alone, no. But if you have a large enough music collection, any delta makes a difference. I just think it's best practice for that reason.
>>
>>106511890
ALACs is just another apple insanity.
why do the same as FLAC, but worse with less support?
>>
>>106511907
To make you buy a new phone with more storage.
>>
>>106511907
There's no good reason but if you buy iToddler crap that's what you put up with. When I download from Apple Music I just convert them to FLAC.

File: peak linux.jpg (186 KB, 1080x675)
186 KB
186 KB JPG
>linux will never be this comfy again
59 replies and 5 images omitted. Click here to view.
>>
>>106507935
>gaming laptop
gayest thing about this image
>>
>>106509877
cringe take
>>
>>106498769
>>106498791
nothing feels like larbs
>>
>>106507579
You must be 50 or older if you still do that
I know it was all the rage when I was a kid in the 90s when the average Joe was still handwriting postal letters to distant family members but even grandpas are now on social platforms
This is the kind of email you expect to read in Windows 95 or on a beige Mac
>>
why is every single post on /g/ about linux crying about defaults kek

File: lolipantsu.jpg (105 KB, 850x1134)
105 KB
105 KB JPG
should i switch to gentoo from arch linux?
8 replies and 5 images omitted. Click here to view.
>>
File: 1757250011989.jpg (468 KB, 800x1130)
468 KB
468 KB JPG
>>106511839
Then I don't see why it would be worth it. Maybe for the meme it could be fun for awhile.
>>
>>106511608
no, gentoo sucks ass. You can compile shit on any distro
phones should be forced to run gentoo so phoneposters batteries would be shorter and they fuck off
>>
>>106511608
Gentoo and Haifuri are the same.

Haifuri had huge potential with a great premise. But then all the tension was diffused early, and the hamster thing was beyond stupid. I still look back at this video sometimes and wish the series turned out better: https://www.youtube.com/watch?v=p2WuDHoLF04

Gentoo is no different. It sounds nice on paper and seems pretty cool initially, but in practice its a disappointment.
>>
File: uoh.jpg (113 KB, 850x850)
113 KB
113 KB JPG
>>106511881
>>106511894
yeah true. i'll stick with arch then
>>
File: GNU+Linux.jpg (2.28 MB, 1825x2704)
2.28 MB
2.28 MB JPG
>>106511926
Glad you've made a decision.
Maybe try compiling specific programs from source on your distro of choice to get a feel for it? If compiling makes you feel good, then you could reconsider Gentoo

>Monolyth retards think that microservices and the basics of cloud computing are a scam.
Why would you hate having a decoupled and redundant infrastructure. That's like begging to be sued by one of those litigious retards that sign the 99.999% uptime contracts.
9 replies omitted. Click here to view.
>>
>>106510030
You seem very confused about the purpose of microservice architectures. Microservices aren't a redundancy technique - you can just run several copies of a monolith and in fact, that's what some of the most redundant systems on Earth do. Microservices aren't a technique to make code more understandable - they actually make the system way harder to understand. Microservices also aren't a performance technique - adding network hops to an operation won't magically make it faster.
In reality, microservices are an organizational technique and nothing more. You take on extra technical complexity in the hopes that it will be outweighed by gains at the people management layer. Everything else is just midwits cargo culting large companies like Google.
>>
>>106510030
>litigious retards that sign the 99.999% uptime contracts
retards? they pay 4x the price. you better follow through.
>>
>>106510030
>tfw my shit PHP+Node single server service only has 99.99% uptime
feels bad man
>>
>>106510030
>decoupled
bad for latency, more complexity, API-change coordination dev overhead, adds networking as additional points of failure

>redundant
monolith refers to code, you can still instantiate it N times, at least as long as it doesn't rely on critical in-memory state that somehow can't be replicated.

>monolith
>microservices
There's a middleground. just services. Split just those things that must be split. orchestrator + leaf services if you need to scale to many machines. perhaps backend + database if you sqlite isn't good enough. Having a separate watchdog running is fine too.

You don't need to on-demand-start leftpad it in its own serverless function.

>That's like begging to be sued by one of those litigious retards that sign the 99.999% uptime contracts
Unless you're operating critical infrastructure, medical devices or stuff like that customers rarely really care about the uptime. They SAY they want all the nines, but when you show them the pricetag then suddenly they'll tolerate a day or two of downtime over the year.
>>
>>106511870
Exactly. The optimal choice for the vast majority of businesses (not FAANG-scale) is the "boring technology" stack: nginx reverse proxy -> monolith in a popular backend language -> Postgres. If you want more performance and redundancy, you replicate Postgres, stand up several copies of the monolith, and use nginx as a load balancer. You stand up extra services when you really need to use a different technology (maybe your backend is in Java but you have a problem for which the library ecosystem is far better in Python or C++) or when you need a completely independent service (maybe it's an internal system for HR).

Let me guess, you need more?
>>
I need less energy spent


[Advertise on 4chan]

Delete Post: [File Only] Style:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[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.