[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: 9781647396381.jpg (1.3 MB, 2250x2775)
1.3 MB JPG
What are you working on, /g/?
Previous thread: >>110215366
>>
Say what you want about Python but tkinter it is quiet /comfy/.
>>
I'm trying to learn SQL
But I couldn't start :c
Why is Dbeaver so complicated
>>
>git commit --cleanup=scissors
>works different than
>git config commit.cleanup scissors
why
>>
>>110240956
this sounds like a decent idea for vibe coding. I might do it. Thanks
>>
File: templeos1440.png (141 KB, 2560x1440)
141 KB PNG
>>110242079
I just asked claude to evaluate writing a redsea file system driver that can boot linux and it says, booting a read-online root filesystem might be possible.
THo /boot would need to be ext4 or something for grub and booting a writeable file system is almost impossible because missing posix permissions.
Hmm.
When I am back home again I'll ask it a bit more and look around. Would be a fun idea, but I guess not really worth investing too much time on
>>
I asked Claude how to finger my arsehole without my fingers reeking of shit and it said it can't help me with that.
>>
>>110242269
Finger condoms exist.
>>
>>110242269
ass is digusting. Don't do that.
Post kode instead. On Wednesday we kode
>>
>>110240931
lol dude I fucking hate dbeaver. what an awful program. listen here: just fucking install sqlite3 on your system and use it directly. or command line mysql or postgres. doesn't matter. anything is better than that piece of shit. you can write sql directly in their clients eg sqlite lets you do sqlite3 cool.db and it'll just open up your database and you can read and write tables or whatever. you can also just pipe in scripts like this
sqlite3 nooby.db < create.sql
mysql and postgres let you do basically the same shit with a different syntax. but once your "connected" to the db even if its just a local file sqlite deal you can do shit like
.tables
or
show tables
to just see all the tables there's also
describe users;
to see your table structure. like trust me just having sql files and queriying directly with the cli is way easier for learning. GUI shit like dbeaver is only good for when you're dealing with some fucking massive enterprise app with a million tables and databases and you need to save all the connections and queries so you can actually manage that giant pile of shit.

>SQLServerGirl.jpeg Pic Related
>>
holy shit this thread is crazy ded. It gets worse by the day. By now I am literally the only one posting here. It's all my posts
>>
>>110240838
Say what you want about Python but Python as a whole is quite /comfy/.
>>
>>110243577
its slow, though
also indentation as significant symbol is just bad

i messed around with paiton for years btw
but i do want my curly braces
>>
unless it's some special one-off utility, an actual program should see more time being used (not just "tested" or pretend-used - actually used) than being developed
if no one uses your program, not even you, then it's not a real program. not even a toy program. it's just a bit of code
the biggest sin all programming books and tutorials make is shoveling tiny exercises that have no purpose other than being an exercise in a book or tutorial. an ideal book would leave you with at least a few small programs that you can actually keep using for real
>>
>>110243642
its hard to come up with something like that
not only your program has to be useful, and you have as many non-overlapping needs as theres people
but also beginner code would have to be good enough to be better than already-made alternatives
>>
>>110243664
just figure out what you or someone else does manually that could be streamlined or otherwise improved by having it implemented as a program
it's an actually important skill for a programmer to have the ability to notice what can be implemented as a program. knowing only how to type code makes you a code monkey easily replaceable by AI
>>
>>110243642
I like writing code, but I have zero practical need for it. There is literally nothing I need automated.
>>
>>110243611
I prefer significant indentation because it forces bad programmers to indent properly.
>>
>>110243784
>just xyz
mkay
>write example into book
>everyone writes this stuff resulting in the feature getting implemented into os'es
>your example has now become another exercice

ntm it has to be beginner friendly
plus: youre talking about identifying usecases

if you give a ready-made design to the student they wont learn that skill
>>
>>110244076
yeah, and then youre in a multi-nested piece of code and it becomes an annoyance
>>
tfw no open HolyC positions in my area :(
How 2 become a professional HolyC dev? Maybe twitch and youtuber.
I think I could improve it a lot and make god and terry happy
>>
>>110237222
roll
>>
>>110244264
>How 2 become a professional HolyC dev?
Contact auto manufacturers and convince them to replace QNX with TempleOS. In-dash GodWords, turn-by-turn with Varoom navigation, the possibilities are endless.
>>
>>110244564
cooperative multitasking could actually pretty good for real time apps.
just a few ops for task switching
>>
File: gcip.png (186 KB, 392x331)
186 KB PNG
>>110243539
Yes.
>>
Where do I pivot from SWE if I can't get fucking hired? I need something that pays OK and can be learned without studying full-time.
Also I'd like to know which temporary jobs can I get while I study for the new job.
>>
File: wallhaven-4d5zoo.jpg (777 KB, 1920x1080)
777 KB JPG
>complete 1000 line hand-written refactoring of typescript code with complicated algebraic types without testing it once
>unit tests all pass
This makes me more worried than if they didn't pass, but I guess this is the benefit of type contracts
>>
>>110244861
Construction, the fact that it's on-and-off type work is great plus you can work just enough to survive then take time off to study, plus it sucks so much that it gives you additional motivation to work hard on your study when you aren't busting your ass.
>>
>>110244311
Well this is actually an interesting idea, how about instead of flooding the the thread with "roll" well all just use the OP digits.
>>
making AppImage for my program. it is pretty awesome. my only gripe is that they force you to add a .desktop file and an icon, even for a CLI program.
>>
>>110245829
make the program a quine that generates its own .desktop file and icon that contains the contents of the program
>>
>>110244221
you retard
>>
>>110245899
i accept your constipation
>>
>>110243539
I stopped coming here because of the tranime OPs
>>110245922
kek
>>
I solved Rubik's cube. I still don't quite understand the solution and how I did it though. I just had a vague notion of repeating the same set of moves with small random variations when I ended up in a cycles, to iterate through every configuration until I chanced upon the right one.
>>
>>110245376
that's the worst feel.
>>
>>110240502
I guess most of you are as into making slime as me.
>>
>>110246825
iirc this was a good video on this topic https://www.youtube.com/watch?v=753qn588P1o
to solve it without algorithms
>>
>>110243642
I have some programs I've made multiple times but I still keep using one of the first ones because it just works and it's been tested in real use... it just feels bad to switch to something else even though I've built the new versions to be more robust, at least in spirit...
>>
I never reuse stuff from old projects so I end up rewriting the same thing over and over
>>
>>110247983
>it just feels bad to switch to something else
Why? This sounds to me like you didn't do a good job of implementing your new version. You should you should integrate all the best features —the ones that actually make you want to use your program— into one version and start using that. And then use that version as a base to fix any remaining issues.
>>
>>110244264
Since no one uses Holy C in their businesses, you would need to start a business making programs using Holy C. Best of luck with marketing that though.
>>
>>110248632
I do that too and it is kinda frustrating.
By now I am always frustrated that I haven't written generic HDL stuff for things like SPI, uart, i2c and shit.
And in sofware it's the same.
But then I pretend it's good to rewrite that for remembering stuff. It's weird. But I also refuse to use stuff from third parties that much
>>110248662
Thanks. I will come up with something. Since I am intending to port HolyC to risc-v, I will probably come up with something great
>>
>>110248798
>Since I am intending to port HolyC to risc-v
So you're looking for a niche within a niche, then. At least you'll have dedicated customers, if you do find any.
>>
I have been advocating for forth from time to time. I thought forth could do everything lisp can and more, due to the compile time vs interpret time implementation combined with the power of the syntax.

I have learned that this is incorrect. I did not correctly understand the full brunt of the implications of the separation of compile and run phases along with eval-when vs forth's compile-time vs interpret-time, which are more or less like always enabling eval-when top-level and compile-time.
Furthermore, I was not aware of load-time-value and while in practice you might as well use runtime, it's slightly more powerful than that.

It remains true that forth is 90% as powerful as lisp with 1/10000 of the complexity, however lisp remains the most powerful programming language.

Very very sad, given that all the main common lisp compilers are now vibeslopped.
>>
Now that the AI bubble has popped, should I learn to code?
>>
I like Rust and Python.
>>
File: ihearteatingdinner.jpg (390 KB, 1155x2048)
390 KB JPG
>started reading nand2tetris
>can't even build the basic gates

jesus christ i'm too stupid, already got filtered by the first exercise you're supposed to figure out on your own.
I could build Not and And but Or filtered me and I can't even begin to understand Mux
>>
>>110251901
you could easily achieve or just by trial and error
>>
File: 1777003071280687.png (39 KB, 410x487)
39 KB PNG
>>110251901
Just look at the truth table for OR
Should be pretty obvious that it's just !(!A & !B)

Use the parts you already have to build the next thing
>>
>>110240502
Nothing, now I am studying C language, and probably I will do Computer network to learn more about how the things really works. And about scratch, what is the best way to show to a kid the world of computer science?
>>
>>110252161
(quick) BASIC is the best intro language. It boils programming down to its most essential components and gives a straightforward upgrade path to the next language, without the brain-worm-tier cancer graphical memegraming is.
>>
>>110252170
Thanks, the basic was my first idea, I have a brother and he wants learn to code to fun. In my list I have: Basic, Batch/Bash or Pascal, probably i will choice some one from the list.
>>
>>110252204
Batch is terrible. Far too niche and awful syntax. Bash is a huge step up but still a bad idea because even relatively basic things require fucked up syntax. Who even ever remembers "the filename without the path and with the extension replaced with another extension" syntax?

Pascal can also be a good choice, but I'd use it only after basic. It's because I believe you need to cleanly split the different learning concepts, so anything with very simple syntax is a good start. You can add all the {} ; [] and typing and shit you want after the learner can understand what part of the things they write is semantically relevant vs only syntactically.
>>
>>110240502
Imagine wasting your childhood reading that and now they have 3d printers so there aren't even lego bricks anymore. It's so over.
>>
>>110252235
Thanks by recommendations! Probably Basic, Pascal and C. Also I am a Computer Science student and my brother looked and like the idea.
>>
>>110252337
With Pascal you can use the Lazarus IDE which has a GUI builder built in
>>
Man work really takes side project time away.
>>
I think it would be fun to organize a Slopathon / Slop Golf competition.
Define a decently complex goal, like developing a file manager or whatever.
Each participant rolls out an implementation, documenting his process, sharing what was fun and what less so. Also shares the time spent breakdown.
Everyone rates the submissions. Ideally a combination of [good result] + [enjoyable process] + [done quick] goes to the top, while soul-sucking slop goes to the bottom.
If an artisanal hand-crafted project wins, that's cool, L for slop boosters.
If agentic process shows better results, that's also cool, maybe it'll serve as an example how to have fun vibing without outputting slop.

Needs a less offputting name though.
>>
not "programming" per se, but does anyone have a good source for learning about networking protocols, vlans and stuff like that?
>>
The democrats are going to take away C++ and force everyone to use Haskell.
>>
File: 1765400060275389.jpg (52 KB, 1149x983)
52 KB JPG
>>110251630
rust doesnt let you do funny things like this
its like the no-fun-allowed kid
>>
>>110255393
>The democrats are going to take away C++
they'll just rename it LGBTIAQC++
>>
>>110255393
I wish.
>>
>>110255414
So this is the equivalent of indians playing with shit.
>>
anyone knows of a publicly (recorded lectures online etc.) available, decent course for intro to graphics ?
>>
>>110255763
https://www.youtube.com/playlist?list=PLplnkTzzqsZTfYh4UbhLGpI5kGd5oW_Hh
https://www.youtube.com/playlist?list=PLplnkTzzqsZS3R5DjmCQsqupu43oS9CFN
>>
up
>>
>>110257327
It's called "bump" stupid frognigger
>>
I think I know how to make agi but I am a nobody who no one would believe or fund.
>>
>>110255346
Cisco stuff.
>>
File: image_525555f1.jpg (330 KB, 1408x768)
330 KB JPG
>>
File: file.png (1.95 MB, 2514x2179)
1.95 MB PNG
>>110239487
Moved from 5 to 6 per row, perhaps 7 would be too much and it'd go back to be too cramped. Also generalized the catalog view, and now it works for every section
>>
>>110251901
Lol literal hr staceys with absolute 0 programming skills are building apps for top companies while you reading some shitty dead tree books
>>
>>110251901
What the fuck are retards like you even doing on a board like /g/?
>>
>>110257421
What the hell does that do?
>>
>>110257421
>>110257828
Defines and assigns constants homer, marge and bart the values with the matching keys from the object. Trying to print lisa to the console gives
>ReferenceError: lisa is not defined

Right? Makes sense to me. I had to try it out to check my understanding though. I expected it to just print "undefined" instead of throwing an error.
>>
>>110255414
Memory– and type-safety is fun.
>>
>>110258711
im only at chapter 4 of the rust book learning ownership right now.

coming from C the main things i like is how much better rustc is at warning/errors compared to clang/gcc out of the box. but then again rustc has a 1/4 century less backwards-compatibility-baggage to deal with so it makes sense.
>>
>>110258774
>much better at warning/errors
Including tips on how to fix them.

For me one of the takeaways I had with my experience with rust, particularly the ownership concept, is the initial feeling of the borrow checker constantly getting in your way at some point giving way to the realisation that the problem is not with the language or compiler, the problem is the way you're used to doing things in c or other languages and you've been doing it wrong all this time. It's a humbling experience.
>>
>>110258923
i dont think its 'wrong' ive used things like keeping multiple arrays of pointers to the same heap memory in C arranged in different ways which wouldnt work as easily in rust.

having a language that doesnt allow that blocks you from using code which would otherwise by 100% valid. rust does what i think is a wise tradeoff in making the more complicated path more awkward to write and making the 'nicer' more orderly way of writing the same code easy to write and compile-time-checked far more thoroughly than say C code.

you can still do the thing you do in C like
    let s1 = String::from("some text");
let s2 = unsafe { String::from_raw_parts(s1.as_ptr() as *mut u8, s1.len(), s1.capacity()) };
println!("s1: {s1}, heap location: {:p}", s1.as_ptr());
println!("s2: {s2}, heap location: {:p}", s2.as_ptr());
std::mem::forget(s2);

which prints
s1: some text, heap location: 0x563817921d50
s2: some text, heap location: 0x563817921d50


but it looks retarded and needs an 'unsafe block' + assembling the second string part by part + you need to run 'forget' on one of them so rust doesnt do a double-free.

i like the design philosophy and this isnt what i thought it was when ive been hearing people talking about rust. i think in 95% of cases the solution where you dont do things like this and just let the compiler handle deallocation thats a better, less complicated,more readable and more maintainable solution.
>>
File: 1765573151570448.png (27 KB, 1200x1200)
27 KB PNG
>>110240502
are we ready for advent of code
>>
>>110259082
>needs an 'unsafe block'
This in itself is a red flag.
>>
>>110259111
advent of slop
>>
File: 1765601836920840.jpg (157 KB, 462x260)
157 KB JPG
>>110259175
eric would not do us dirty like that
>>
>>110259111
didnt it go to shit last year? 12 puzzles instead of 25?

the first one ive solved in real time is 2023 and since ive been going back to the early ones. i did 2015-2017 in C but now im doing 2018 in C/python/rust depending what i feel like that day. its really a good repository of old puzzles to practice on when learning a language
>>
>>110259246
>12 puzzles instead of 25?
yeah that sucks but there were some good ones regardless
although the last day was cheeks and lame
>>
>>110259111
I'll just read the spoilers if I get stuck this time instead of falling days behind and missing out on the threads like I did last year.
>>
lsp or treesitter?
>>
>>110259111
I wanted to use JAI this year but blow didn't keep his word
>>
>>110259819
How did you believe that guy
Wasn't it supposed to be ready YEARS ago?
>>
week 6 of programming, playing around with regex in python and building a news parser that doesn't show any articles following my regex rules
>>
>>110259819
Jai source was leaked ages ago.
>>
>>110259819
So you're saying blow blows.
>>
>>110260005
I'm only really interested in the "no more breaking changes" version of the compiler
>>
>>110260546
>blowjob
>no more breaking *
lmao
>>
uppp
wtf
is dpt all hinging on me postong code or something?
>nuh opncl
just fuckign learn it
its fucking kino
its like drugs, but free
also its simple
just ask c-gpt to write boilerplate
wtf. do better.
>>
I might work on pinball more this weekend.
>>
ok, ill post the lib in two days. on dpt
youll call hngh_gpu()
and its gonna select one gpu at somwehat random on your rig

oin two days, 00:00 eurotime, ill post first pooblic version of the thing

all youll have to do is:
run getgpu()
then make kernel (context, kernel)
then make_buffers and such
load buffers, read buffers etc

fukken terroristfags
you make me culpabilize because if im not posting this place is kindova shitholl

i wanna play warhammer, doe
ffs. im btfoing everyone with archaeon...
>>
you could have solved it just by asking c-gpt or your shatbot of choice to
a) walk you through installing opencl
b) just shit out the boilerplate

the actual hurdle is unerstanding that youre running one instance of your program (kernel) per work-item (kinda like each iteration of a loop runs in parrallel. kindof. conceptually.)
(opencl really is drugs. cuda really is drugs.
whoever disagrees, just doesnt undertand modern art + is a prole)
>>
actually
opencl is *hngh*drugs

if you learn opencl
it makes you fuck harder
its like viagra, but permanent

yes, sometimes walking around with an erection is awkward
but you win some you lose some
engineering at its finest. its all about tradeoffs
>>
id expect coodah does the same to you
but its diluted bc its hosted within sepples

and everyone knows sepples is a fuckup and smells bad.
i think this satisfies argumentation quite plentifully
>>
MOM!!!!!!!!! MAKE THEM TALK ABOUT HASKELL OR SOMETHING!!!
>>
>>110262055
haskell is actually a tomboi, but pretending really well...
>>
>>110240838
I never understood why people write code like this. It's just such a complete lack of taste and structure, and LLMs do the same shit but 10 times worse. Every code review I have to do makes me pull what's remaining of my hair. Anyway, at least you don't use cryptic one or two letter variable names, which is pleasantly surprising.
>>
>>110240931
>Why is Dbeaver so complicated
Works on my machine.
>>
File: tfw-porch-pirates.png (620 KB, 1100x1124)
620 KB PNG
i kinda wonder what the maidfags are doing rn
they suddenly disappeared, no?
>>
>>110262178
I haven't seen Mikee around in a while, either. I hope he's doing okay.
>>
>>110262185
wtf
mikee's linked to maids???

otherwise mikee's a legend
i, too hope hes doing ok

what about darkplaces?
did it work out?
>>
File: shh-shush.gif (58 KB, 640x354)
58 KB GIF
>>110262200
>mikee's linked to maids???
unofficially
>>
>>110262209
thats another level of respect you get from me.
things are more complex than what i knew,
and im ok with that.
you maids are ok.
>>
maidniggers fuck off
literally start a discord and fuck off, all you do is jerk each other off
>>
>>110262209
when will you come back from your vacation, btw
things are kinda dead w/o yall
i had to bump dpt twice at page 9
also im not the most regular in things
or should i be?
bw cargo cultists and /v/ermin theres not many of us left
>>
File: 1776671477907083.gif (584 KB, 480x487)
584 KB GIF
So everytime I change settings in neovim, do I really need to:
>cd to the ~/.config/nvim directory
>edit file
>restart neovim
every single time?
>>
>>110263801
use the :source command, dummy
>>
>>a kid's guide to coding funamentals
>daddy what's a fundamention
>>MS MA
>daddy why is Raina also called Miss Ma
why the fuck would you write a book for kids and present it it to impress adults? Just say 'how to make cool games and tools in your own computer, by a very clever person'
>>
>>110263911
kids don't have money to buy books and people who write programming books dont have kids
>>
>>110263973
kids don't have pocket money in the 21st century? I had money for books since I was like 7 cause I hoarded the little bits of money adults gave me
>>
>>110263844
oh that :make sense
>>
It's so over, bros.
>>
>buying books
just download the epub lol
>>
>>110240838
That would be so much shorter and cleaner if written directly in tcl
>>
>>110265484
Prove it.
>>
>>110248662
You just need to say that it was written by God himself you won't need much marketing after that.
>>
>>110263801
how does he keep screaming after he is been explode
>>
File: 1790581293861303.png (37 KB, 1072x224)
37 KB PNG
TRVTH NVKE
>>
>>110266395
Probably the most retarded statement in the whole AI generated hallucination retardation.
>>
File: 1793097475432170.jpg (90 KB, 720x612)
90 KB JPG
re.
>been on vacation for 5 weeks
>it's still the same thread
wow
>>
https://github.com/dilshan/flash-c
For the C-tards who enjoy programming like it's 1990.
>>
Just use ai you retards no reason to make these thread
>>
my pet Indian can get fiesty at times, so like just ignore any and all of his posts, including the one above me.
>>
>>110240502
I'm building a small HTTP library for my own webscraping purposes.
>>
>>110262064
Like what?
I can't improve if I am not told what I am doing wrong and how to do it better.
>inb4 look up "xyz", bro I am not reading a 10,000 page technical manual.
>>
>>110240838
>camel case
please stop
>>
>>110268867
NTA, but a couple of things that jumped out to me:
- your code blocks should be broken out into functions and called (you've even given them names), and your functions should be spaced out from other blocks of code
- values should be passed as arguments to and returned from functions, you have no good reason to use the global keyword here
- ...especially with secondsRemaining, that only gets used in tick, it shouldn't exist outside that function
>>
>>110266395
Rustards are really reaching whenever their argument boils down to
>in Rust this wouldn't happen because this is would be considered a bad practice in Rust
like every single Rust developer writes perfect code... have we as an industry learned absolutely nothing? isn't the whole point of Rust that you don't need to care? but suddenly when it's a bug that COULD happen in Rust they just go "yeah that wouldn't happen anyway, even if technically you could write the same exact bug in Rust"
>>
File: debianWindows.png (538 B, 80x80)
538 B PNG
should I stream my templeos development and become a rich influencer?
>>
>>110272369
jon is basically semi-retired from streaming, so the niche is open desu
>>
>>110267889
>Just use ai you retards no reason to make these thread
Kill yourself faggot
>>
>>110266395
Rust based libc when?



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