[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: incr.png (48 KB, 449x981)
48 KB
48 KB PNG
/dpt/ - Daily Programming Thread

Welcome to the Daily Programming Thread. What are you working on, /g/?
Previous thread: >>107575071
111 replies and 15 images omitted. Click here to view.
>>
>>107639874
Don't reply to systems programmer larpers.
>>
File: 1756186336772767.jpg (133 KB, 851x1099)
133 KB
133 KB JPG
>>107639908
Suck my dick long-beard, I'll try to glean wisdom and knowledge where I please.
- just wrapped up his hollow Community College [canada] program, 0 prospects but took *a* Data Structures class.
>>
>>107639874
>what the foundations of your arguments are for it being/not-being a language?
It just doesn't make any sense to me to put hardware instruction set architectures and software programming languages in the same category.
Instruction Sets deals with primitive computing operations.
Programming language deals with *combining* computing operations.

Note that "combining" is a general term/not overloaded term, it applies equally well to imperative and functional languages and any other paradigm.
>>
File: 1766439378699106.jpg (131 KB, 1200x851)
131 KB
131 KB JPG
>>107639835
you should have a permissive parse actually, the semantic passes have more hope of emitting descriptive error messages than just syntax errors
>>
>>107639948
>Programming language deals with *combining* computing operations.
also, combining stuff is what languages in the formal sense (in the purely syntactic sense) (regular languages, context free grammars) are all about combining stuff
syntax is different than semantics but in programming languages semantics are coupled with the syntax
in PLs you can syntactically nest expressions as much as you want and when you do the compiler will combine as many primitive operations as needed in order to evaluate that expression

In other words, programming is all about combining primitive operations that will get executed by real hardware in the end, directly if the language is natively compiled or indirectly if it is bytecode interpreted, and formal languages are all about combining strings so they are the perfect to tool to express the combination of primive computing operations that overall makes a program.

File: chatgpt.png (678 KB, 573x639)
678 KB
678 KB PNG
apparently I'm a power user
5 replies and 4 images omitted. Click here to view.
>>
File: nowposttheart.png (1.64 MB, 889x910)
1.64 MB
1.64 MB PNG
>>107639909
>notabuttplug
>>
>>107639512
awwwww
>>
>>107639937
sam altman gets yours messages for training either ways
might as well make it accessible to yourself
>>
>>107639950
theres no point now :\
i'd have to wait another whole year

also i didnt do anything towards anonymization
its just that i didnt configure my account. im using mine since c-gpt 3, surely memory's setting is off. while being on at the same time
>>
File: opera_G9jyy3TJ0U.png (533 KB, 437x624)
533 KB
533 KB PNG
>>107639512

Post your chair photo with a flash
24 replies and 5 images omitted. Click here to view.
>>
File: chair.jpg (3.64 MB, 3000x3000)
3.64 MB
3.64 MB JPG
good as new
>>
>>107639811
Pleatherfags, THIS is your mindset.
>>
>>107639299
before 3 marijuanas
>>107639811
after 3 marijuanas
>>
File: chair2.jpg (2.61 MB, 2539x3000)
2.61 MB
2.61 MB JPG
>>107639811
the seat just lays flat on some metal now
>>
>>107639890
sovl

Windows 11 is shit but I like it's aesthetic. It reminds me of Windows 2000.
7 replies and 5 images omitted. Click here to view.
>>
File: 1766458508.1787083.png (47 KB, 706x739)
47 KB
47 KB PNG
>>
File: microsoft.png (709 KB, 982x500)
709 KB
709 KB PNG
>>107639825
VirtualBox is enough to run windows 7 for older programs. All new programs are jeet street tier anyway.
>>
>>107639918
95, 98, ME, NT4, Win2k, are all of the classic windows family. Win2k is the final and peak evolution of classic windows. Then we enter XP/2k3, a corrupted devolution of classic windows, but still usable. After which there is Vista which was the start of the cursed death where classic windows was destroyed. Then Windows 8 starts the abomination era.
>>
>>107639979
fucking hell i almost erased windows 8 from my mind until you mentioned it
>>
>>107639989
When I first saw windows 8, I did not even believe it was real, I thought it was satire. I could not comprehend that something so hideous would actually be created.

File: 138854520_p0_master1200.jpg (323 KB, 838x1200)
323 KB
323 KB JPG
/lmg/ - a general dedicated to the discussion and development of local language models.

Previous threads: >>107623385 & >>107614830

►News
>(12/22) GLM-4.7: Advancing the Coding Capability: https://z.ai/blog/glm-4.7
>(12/17) Introducing Meta Segment Anything Model Audio: https://ai.meta.com/samaudio
>(12/16) MiMo-V2-Flash 309B-A15B released: https://mimo.xiaomi.com/blog/mimo-v2-flash
>(12/16) GLM4V vision encoder support merged: https://github.com/ggml-org/llama.cpp/pull/18042
>(12/15) llama.cpp automation for memory allocation: https://github.com/ggml-org/llama.cpp/discussions/18049

►News Archive: https://rentry.org/lmg-news-archive
►Glossary: https://rentry.org/lmg-glossary
►Links: https://rentry.org/LocalModelsLinks
►Official /lmg/ card: https://files.catbox.moe/cbclyf.png

Comment too long. Click here to view the full text.
227 replies and 31 images omitted. Click here to view.
>>
>>107639392
50k is enough for a lora though.
>>
File: 6SFl8FdAOLs.jpg (56 KB, 376x603)
56 KB
56 KB JPG
What's the most capable least synthslopped LLM? Any of the old naturally trained models good enough for a human to human chat? Not walls of text.
>>
>>107639924
Just go back and find the most popular stuff from around 2 years ago. They have to be wrangled with samplers but they're more than capable of doing chats.
>>
>>107639924
the original uncensored character.ai model
>>
>>107640017
I mean local that I can download

File: 1749188784014495.png (6 KB, 800x400)
6 KB
6 KB PNG
Matrix won
116 replies and 11 images omitted. Click here to view.
>>
>>107635278
>the number of times they broke backwards comaptibility
Is Zero. None. Not a single time.

And that is a problem, because it means to carry a decade old design decisions with you forever.
Its actually a very common criticism. Many people would prefer it if they would brake backwards compatibility, which would simplify things a lot.

I don't know why you lie so much in this thread. Those lies don't make any sense. You don't have to lie. You could make a valid point while telling the truth.

Nobody hates xmpp. This is not a competition. Someone isn't going to join your fringe MitMed Jabber server just because you shit on matrix.
>>
>>107637910
>a malicious homeserver
matrix.org
>some clients supporting calls and other not is good actually
shut yo bitch ass up
>>
The only difference between Matrix and Email is that the former has encryption and calls. Otherwise every single flaw of Email applies to Matrix too. Not only did it NOT win, it never stood a chance
>>
>>107636366
So you and your ilk can shit up the space with CP? No.
>>
>>107638508
Please

File: 1749866725794496.jpg (53 KB, 829x553)
53 KB
53 KB JPG
>loongarch is now an official debian architecture
>review samples of loongson chips are getting sent to outlets like phoronix

the year of the chinese computer will soon be upon us
https://lists.debian.org/debian-devel-announce/2025/12/msg00004.html
64 replies and 3 images omitted. Click here to view.
>>
>>107637448
More like Anal, lel.
>>
File: 1765744819405609.jpg (759 KB, 2400x3600)
759 KB
759 KB JPG
>>107620178
commies lost in the USSR and they'll lose in China.

Sorry, but you just lost social credit and IZZAT
>>
>Go on holiday in Europe
>Buy Chinese ram if it ever gets banned
>???
>>
>>107628809
Huawei's doing a pretty good job on the AI accelerator front. Now as good as Nvidia but trading blows with AMD and beating them when it comes to Chinese models
>>
>>107639217
oh no no no no

File: 35476235.png (525 KB, 2076x1118)
525 KB
525 KB PNG
HOLY BEAUTIFUL
47 replies and 3 images omitted. Click here to view.
>>
File: 1766423279565669.jpg (70 KB, 736x736)
70 KB
70 KB JPG
>>107624959
let primary_color = get_user()
.and_then(|user| user.profile)
.and_then(|profile| profile.settings)
.and_then(|settings| settings.theme)
.map(|theme| theme.primary_color)

match primary_color {
Some(color) => println!("Primary color: {}", color),
None => println!("Could not access primary color")
}
>>
>>107625196
I don't mind Hickey, I kind of like Clojure, and I almost agree with this viewpoint but I hate how he blathers on about his ideas and fails to address any practical, real life concerns about actually complicated software. I wish he'd, for once in his entire life, elaborate with properly worked real life practical examples.
>>
>>107639423
#![feature(try_blocks)]

let color = try { get_user()?.profile?.settings?.theme?.primary_color? };
match color {
Some(color) => println!("Primary color: {color}"),
None => println!("Could not access primary color"),
}
>>
>}), }), }), }), }), }),
Lisp won.
>>
this board is so fucking retarded nigga

File: neofetch.png (67 KB, 785x429)
67 KB
67 KB PNG
post em
11 replies and 7 images omitted. Click here to view.
>>
>>
>look up fastfetch
>CMake
I'm out
>>
>>107637847
>>
>>
>>107639368
Install scoop
https://scoop.sh/
Then install fastfetch as neofetch is no longer functional on windows.

/g/ has no arguments against this
66 replies and 13 images omitted. Click here to view.
>>
>>107635691
Discoveries can't happen for infinity because the cost needed to advance from step to step grows and the amount of knowledge required also advances step to step. Eventually it will take more resources than the earth has and more than a life time of research just to make tiny upgrades over the previous level of technology. Humans, on earth, with limited resources and limited life spans have a hard cap on the level of technology that can be achieved. In computing we are obviously already at that place given how little improvements we see generation to generation in hardware and that the majority the so called gains turn out to be marketing spiel or gimmicks like fake frames. 15 year old CPU's hold up for a lot of tasks which would never have been the case at anytime period between 1950-2010.
>>
File: rust-vs-c.png (1.4 MB, 1654x1104)
1.4 MB
1.4 MB PNG
>>107639273
you dont need much in the way of hardware beyond a pen and a sheet of paper to figure shit out
theres still tons of things that others just didnt think of
you wouldnt have ai-lmaoo aka shatbots to begin with, otherwise

proof by absurd:
its a chicken and egg paradox
lets say you defo need resources to innovate:
how is you gonna invent shatbots if you dont have the gpus then?
and who is gonna give you gpus if you dont have a shatbot to run on em?

thats not how innovation works.
it starts with inspiration.
it starts with one idea, one brain.
and a sheet of paper. and a pen, ofc.
>>
I use AI a lot but always get reminded from time to time of its BS. Today I asked ChatGPT to add a few lines to one of my laptop power management scripts to set powercap for the PCU in some low power circumstances. It is like 3 or 4 lines to add to an existing script, which I provided. Honestly I was just being lazy, but after prompting if I forgot about it. About 10 minutes later I remembered and went back to check and it was STILL churning on this question. And after another minute or so it dumped this insanely long script (original is maybe 18 lines, ChatGPT's update is over 150 lines) with so many problems, assumptions, and issues that I would never even consider using the script. I imagine how much compute was wasted to generate this nonsense. This happens pretty often. But at the same time, it can be incredibly useful when you give it clear step by step instructions. AI is a strange tool.
>>
>>107639860
> to set powercap for the PCU in some low power circumstances.
CPU*
>>
File: AI Investors.png (363 KB, 850x731)
363 KB
363 KB PNG
>>107635614
Sure thing bro

File: 1756543769703626.jpg (142 KB, 800x600)
142 KB
142 KB JPG
i want to go back
>>
Then open a text editor and start coding https://sl-toolkit-samples.azurewebsites.net/?20240429
>>
you already made this thread twice today
>>
Install a VM or stop making this topic
>>
>>107640000 (checked)
Back to where?

Neat and tidy edition

Previous: >>107558411 #

>Keyboard recommendation template:
https://pastebin.com/n220xk9V

>Find vendors
https://www.alexotos.com/keyboard-vendor-list // Up-to-date list of reputable vendors with brief descriptions
https://keycaplendar.firebaseapp.com // Tracker for current and upcoming keycap group buys

>This keyboard stuff is so expensive!
https://aliexpress.com (or Taobao if you know how)

>Learn about MX-type switches ("mechanical keyboard switches")

Comment too long. Click here to view the full text.
267 replies and 45 images omitted. Click here to view.
>>
>>107639294
You can get better switches than the bog standard cherry mx ones, it's no longer 2010 where mx red/black/brown/blue were basically the only easily available options.
>>
>>107635416
I am on loonix...
>>
>>107639294
browns suck so much ass as tactiles that they're basically the same as reds and 90% of people find clickies annoying, so I would say brown or red

just make sure whatever you're buying has a hotswap pcb so you can experiment with other switches in the future. I recommend HMX tactiles.
>>
>>107639340
you can use blues for gaming, they're just going to be more annoying to listen to
>>
>>107639340
>gaming
tactiles for gaming is retarded
you want linears
start with red
>b-b-but clicky also works for gaming
yeah but why go with "the experience sucks, but it works" when you could go with "the experience is enjoyable"

File: ISO_C++_Logo.svg.png (16 KB, 330x372)
16 KB
16 KB PNG
Want to use modern C++ features like Modules? Nuh uh can't include "non-importable headers" from common libraries
What's "non-importable"? IT'S IMPLEMENTATION DEPENDENT. No one knows.
C++ keeps stapling shiny new abstractions onto a language whose foundation is still “whatever your compiler feels like today.” Every new feature “works unless it doesn’t.”
It’s not a language design so much as cardboard layer cake.
Why don't you use something else? MPI. The alternative would be Fortran.
3 replies omitted. Click here to view.
>>
>>107638778
Doesn't matter. It's still fast. It still has good libraries. It can still do anything you want/need. It still has good compilers. It still has good tools. It still runs on anything.
>>
>>107638778
> Why don't you use something else
Because every other language is a second class citizen. C is the lingua franca of computing, everything else is forced to use some grotesque FFI. Being mostly a superset of C is the only reason anyone uses C++. And people will continue to use C++, since not one person has attempted to create an alternative.
>>
>>107639141
>like that's actually a sane thing to say
but isn't it? it's better to have a single language with thousand extensions and standard libraries you can choose among then having to learn multiple different smaller languages with all different syntax, semantics and idioms, imo.
>>
File: GycPjzJasAAFsDi.jpg (79 KB, 685x685)
79 KB
79 KB JPG
https://www.youtube.com/watch?v=7fGB-hjc2Gc
>>
>>107639984
>a single language with thousand extensions and standard libraries you can choose among then
>multiple different smaller languages with all different syntax, semantics and idioms
there is little distinction between the two in practice
a c-style c++ codebase is practically unusable in a rust-style c++ codebase without so much code in between that it approximates a FFI

File: file.png (3.17 MB, 2770x1756)
3.17 MB
3.17 MB PNG
wtf is wrong with youtube these days? I am watching this video in 1080p, the highest resolution, and it looks more pixelated than I've ever seen on a video. And it's not a temporary buffer issue. I've reloaded and rewatched from the start, and it continues to look like this. I also frequently have 20s freezes for buffering on a video when I have 500Mbps down speeds. Is youtube just cheaping out on bandwidth to save money or what
13 replies and 2 images omitted. Click here to view.
>>
>>107639498
Yeah you're right. I thought it was weird there was no 4K but for the 1080p to look that shitty must be on them too.
>>
>>107637610
It looks fine for me, something is wrong on your side.
>>
I'm watching on a laptop from 2014 with openbsd and it looks normal. the bit rate seems low, but not like yours.
>>
>>107639723
>>107639802
screenshot the frame that OP posted from your machine
>>
File: 1752330601272255.png (1.83 MB, 1920x814)
1.83 MB
1.83 MB PNG
>>107639940
I watched it on four devices (a PC, a laptop, a phone and a tablet) and it's always fucked, but only that particular scene.
Everything else looks fine.

File: Screenshot_1.png (88 KB, 701x554)
88 KB
88 KB PNG
ill go first
41 replies and 21 images omitted. Click here to view.
>>
>>107637119
restart your pc anon
>>
>>107637883
Only a fraction of /g/ actually uses linux.
>>
>>107638424
yeah but at least use the enterprise IoT version of windows
fucking NORMIES
>>
>>107637883
>He fell for the Linux meme
>>
>>107639986
Why, so i can LARP as some faggot uber tech guy?


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