[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: 1766940152977.jpg (881 KB, 2079x2165)
881 KB
881 KB JPG
Welcome to the Daily Programming Thread. What are you working on, /g/?
Previous: >>107690624
>>
>>107711909
>What are you working on, /g/?
Procrastinating what I really should be doing by refactoring and moving already implemented parts out of the way. With the excuse that reducing clutter (really just shoving the clutter in the closet) will make it easier to consider the next steps.
>>
>In some instruction sets such as the MIPS architecture, a dedicated flag register is not used; jump instructions instead check a register for zero.
From last thread, it seems like average demented /g/eet believes all hardware works like MIPS lol.
>>
File: b91.gif (437 KB, 400x400)
437 KB
437 KB GIF
>>107711909
first.
Check em.
>>
Rewriting libc in Rust.
>>
I’m supposed to be working on Java.
>>
>>107712253
Which part of Java specifically?
>>
>>107712270
The use of setter and getter methods, I’m still learning.
>>
File: Maid thread.png (3.73 MB, 5433x3592)
3.73 MB
3.73 MB PNG
>>107711909
>What are you working on, /g/?
Posting maids.
>>
>>107712320
having fun is off-topic
>>
>>107712353
Programming can be fun.
>>
i continue to do nothing
its over i will never improve
>>
Working on my mental state before I start a programming session. Stressed.
>>
>>107712390
only if you are autistic. Autists not allowed here. This is a board for normal humans
>>
>>107711909
I'm learning C++ today!
I have been going over the Programming: Principles and Practice Using C++
>>
File: learning_is_fun.png (1.02 MB, 2455x956)
1.02 MB
1.02 MB PNG
>>107712408
Do something. For the fun of it.
>>
>>107712416
Dunking on autists is fun.
>>
I have programmed a bit yesterday
I will continue to program a bit today
Java btw (good morning sirs)
>>
>>107711909
ive discovered that the tiny CH32X035F8U6 that drives the WeAct Studio Display FS V1(0.96Inch) really does not like it when you send it a full bitmap image. it takes about 500ms to display 25600 LE bytes which is incredibly slow and i can only imagine its because its spending its single thread buffering then chunking then writing individual pixels to the ST7735 driver ic on the oled panel after it receives them. bitbanging 1x1 rects as pixels is the same speed, if not faster.

it really throws me for a loop because i rewrote my shit thats running on a raspi zero for it to support layers with alpha channel support and was planning on just flattening those and sending an entire bitmap for each ui refresh, but because its so slow i think im going to have to go back to bitbanging and drawrect, which leads me to thinking about how i can make components out of that a la frontend webshit. i shouldnt need to rewrite react for something thats 80x160 but at this point speed is the constraint driving everything. what a bunch of bullshit for a tui.
>>
>>107712486
why
>>
>>107712464
>programming bit
try bprogramming a byte
>>
>>107712408
>>107712444
No.
Especially programming won't be fun. Don't ever hope for it.
Do something because you THINK it could be fun. But it will not. But then you have to keep on fighting and do it anyways. Sooner or later it will become fun. Nothing is fun from the start, except heroin
>>
File: maxresdefault.jpg (215 KB, 1280x720)
215 KB
215 KB JPG
>>107712464
Have you tried script?
https://www.youtube.com/watch?v=zPTY1hKq3SU
>>
If you just:
>Show up on time
>Do what you say you’re going to do
>Give a shit
You’re already ahead of 99% of people.
>>
>>107711909
>What are you working on
My plan to escape my house so I can learn to program. Better to have 1 consistent hour I can knuckle down to program hello world or some tiny exercise even chatgpt could fart out than have 12 hours once in a blue moon, right?
>>
>>107712544
>>Do what you say you’re going to do
Leave out the part in the end. Don't talk about doing something. Just do it (tm)
>>
>>107712532
I'm working on a thing I've been wanting to do since I was 15. I'm making small progress, hit a significant milestone, and doing things I definitely didn't have the skills for back then. I'm having fun.
>>
>>107712544
>>Do what you say you’re going to do
My old manager used to complain that it's impossible to get software engineers to commit to anything.
>>
>>107712604
I commit to git HAHAHA
>>
>>107712587
I'm trans btw
>>
>>107712641
who asked
>>
>>107712630
At the planning meetings?
>>
>>107712486
being mean and immediately deleting your post just makes you a salty bitch. very poor sportsmanship.
>>
>>107712647
Nta but I suspect that wasn't that anon
>>
>>107712657
The post was deleted before 1 minute grace period has passed, it was so fast that it wasn't even archived.
Also why would I ever delete my own posts when trannitors do it for free?
>>
>>107712657
>be mean
>immediately regret it
>take it back
Nta, but personally I'd think that's slightly better than just plain being mean.
>>
>>107712672
well go on then, tell me why i should suckstart a shotgun before i finish my project.
>>
>>107712677
You're trans btw
>>
>>107712684
because nobody needs react native on whatever hardware you are raping right now
>>
>>107712693
you could have said that
>>
>>107712699
He's a miserable loser that absolutely haunts this thread 14 hours per day. He's never made a single helpful or interesting contribution, and spends his life dopamine farming with the lowest level negativity he can type out 365 days a year.

It's really fucking sad. Just pity him, if possible, despite the fact that he ruins the only two coding threads on the board.
>>
>>107712684
Back in my day we didn't need a reason to tell people to an hero. We just did.
>>
>>107712799
back in my day it was funny when we told people to kill themselves
>>
>>107712829
Kill yourself.
>>
>>107712866
wow, that's a rude formulation
>>
This is now an Erlang thread.
>>
Btw?
>>
I’m supposed to be working on css
>>
>>107713519
I'm so sorry for you.
>>
>>107713519
I'm supposed to be working on vhdl
>>
>>107713644
Your design is broken by definition.
>>
Niggaz, any suggestion what to use to learn c++? I'm using learncpp.com but having doubts if this extremely verbose explanations/or technicals wordings are the right way? For example "best practice: use list initialization with an initializer list of values to construct a container with those element values" when it actually means "best practice is not to initialize empty containers, and start off with elements/variables or shit" ?
These high tech words stress and tire the brain then the information doesn't enter. Is this really the way?
>>
>>107713680
no. The unit tests are passing
>>
>>107713726
The tests are also broken by design.
>>
>>107713697
>These high tech words stress and tire the brain then the information doesn't enter.
That's what the entirety of C++ is like.
>>
>>107713777
They are made by InCore Semiconductors (C). Not by me. Checkmate hitler
>>
>>107713802
The code itself a side, is there a value or importance to communicate the information like that?
>>
>>107713818
All you're doing is proving how utterly broken chip manufacturers are.
>>
Why...
I freaking love C since decades, but god damn shit why can we do:
a[0] = 1;
a[1] = 2;
a[2] = 3;

But we can't do:
a = {1,2,3};

This fucking syntax sugar would make some code (like buffer construction) sooo much more readable...
And this is fucking aweful...
int tmp = {1,2,3};
memcpy(a, tmp, 3);
>>
>>107713829
There's a value to being precise and correct. But I often find C++ specification and documentation can difficult to interpret. Your learning material doesn't have to be that way though. I'm sure there are lots of other books if you don't like the one you have now.
Personally I started out with Jesse Liberty, Teach Yourself C++ in 21 Days.
I'm just saying at some point you have to deal with it since the whole language is like that.
>>
ok it was chosen.
lets do it all again, but better.
5 stage risc pipeline
tilelink system bus
very modular
>>
>>107713905
int buf[] = {1, 2, 3}; 
>>
After trying out enough meme languages I'm almost broken down to the point where I'm about to learn C++. Still going to try and hold out though.
>>
>>107713697
first of all you won't learn programmying by reading about programing
second of all 99% of books that focus on specific programming language are very low value
third of all modern cpp is dogcrap like 99% of features after c11 is poop,
the only initialization that should exist is zero initialization
best c/cpp introduction is first few episodes of Handmade Hero then (if you are intersted in gamedev-adjecent things continue watching) just start programming whatever thing you like
if you need more "raw" practice code up a simple string library, make your own string type and code up library for it
>>
File: IMG_0611.png (466 KB, 600x429)
466 KB
466 KB PNG
Going through picrel after moving to gnu/linux from winapi
>>
>>107714063
What are you looking for? I don't think there is any language that suits you if you're not willing to stick with it.
>>
>>107714080
>make your own string type and code up library for it
Not them, but I kind of want to do this too.
>>
>>107714108
If it doesn't address the insanity of grafting a microkernel API onto a monokernel within the first ten pages I would drop it. Every programmer deserves that warning.
>>
File: Kazakh ginger wife.jpg (48 KB, 460x578)
48 KB
48 KB JPG
>>107711909
>Welcome to the Daily Programming Thread. What are you working on, /g/?

Working on C++ haptics code for my research project. Also looking into programming a numerical analysis library and graphics library to learn the tricks of the scientific simulation and game engine programming sub-fields. The chick in the OP is cute. What's her name?
>>
>>107711909
I've been reading OpenStax math textbooks. They're really well-written.
>>
>>107713905
your memcpy is wrong
just cast the variables to int* and then you can reassign how ever you want
>>
>>107714149
>not using mathacademy
ngmi
>>
>>107714063
I like go. Not sure if it's considered a meme language.
Smol and fun like C, but you can just kode F A S T

>muh error handling bad
>muh channels too smart for me brain
>muh not so many functional things like rust and jabbascrib
ok go fuck you'reselves
>>
>>107714193
I'm trans btw
>>
>>107714217
I said go, not rust
>>
>>107713948
>>107714163
Yeah, I wrote too fast.
My point still stand tho, why can't we just assign as easily as we initialize when we declare?
int a[] = {0,1,2};
// Yada yada
a = {3,4,5};

would be way clearer no?
>>
>>107714121
It’s equivalent to Jeffrey Richters winapi books imo, but for linux specifically (not to be mistaken for portable unix)
>>
>>107714080
>the only initialization that should exist is zero initialization
ah, a nocoder post
>>
>>107711909
Was that shot with a 500mm lens or something. The perspective looks jank as fuck.
>>
>>107714346
So it just looks like you're mom
>>
>>107714294
I want to smash your penis with a closed fist
>>
Is it better to make my input buffer global than to put it the main() stack frame and pass around pointers to it?
>>
>>107714469
premature optimization.
Just do whatever the fuck you want. You'll find out if it was good or bad sooner or later
>>
>>107713929
Appreciate it, will deal with it now than.

>>107714080
Yeah I do wanna get to the part where I write and break shit, but Its abit hard to jump in with out knowing basic tools and things to solve easy litcode, let alone how the f do I make a list and itterate it. Don't understand the last thing you said, but I'll look it up, thanks.
>>
>>107714080
>third of all modern cpp is dogcrap like 99% of features after c11 is poop,
nice boomer statement.
It's true that you don't really need anything after c++11, but it has nice syntactic sugar features that prevent stupid nigger errors often
>>
>>107714495
Cs50x. If week 1 (where C language starts) is a bit too hard, learn python first. Python is easy as shot, so you can really learn it however, but Automate the Boring Stuff and Python Crash Course are good.
>>
>>107714469
>waste one precious parameter register on every call
vs
>just access the damn thing directly

Obvious, innit.
>>
>>107714442
I'm not mom. What are you talking about?
>>
>>107714541
>I'm not mom.
Of course your not. Your just stupid as hell
>>
>>107711909
Retarded white man here. What's the best way to transition to Rust?
>>
>>107714582
https://doc.rust-lang.org/book/ch01-00-getting-started.html
>>
>>107714582
https://doc.rust-lang.org/stable/book/
AoC
some random project that is actually fun

PS: I don't know much rust
>>
>>107714582
>transition to Rust
Ehheh he
>>
>>107712542
Nare Shit
>>
>>107714469
Globals are bad, m'kay?
>>
>>107713905
I want to say macros fix this but don't quote me on that.
Either way, some compiler extension probably does that but nobody uses it because it's not C89.
>>
>>107713905
>>107714266
I like doing
int a[] = {0, 1, 2};
a[0] = 3, a[1] = 4, a[2] = 5;
>>
> [ 1337.973168] Loading hello framebuffer...
> [ 1337.978366] [my_fb_probe] framebuffer register done.
based as hell, but unironically
>>
making browser extensions to add ?userskin=vector to wikipedia urls and to redirect www.reddit.com to old.reddit.com
>>
>>107715030
Probably the most useful thing ITT.
>>
>>107715030
also make one that shortens youtube url to just the video ID



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