← Home ← Back to /g/

Thread 105992603

278 posts 82 images /g/
Anonymous No.105992603 [Report] >>105992639 >>105992693 >>105993677 >>105995381 >>106003691 >>106005056 >>106015492 >>106017064 >>106020970 >>106027305
/dpt/ - Daily Programming Thread
What are you working on, /g/?

Previous thread: >>105929300
Anonymous No.105992639 [Report]
>>105992603 (OP)
Dilate.
Anonymous No.105992661 [Report]
Daily "look at me i'm superman and you're a retard" programming thread
Anonymous No.105992693 [Report]
>>105992603 (OP)
Anonymous No.105993011 [Report] >>105993021
Can someone open a new graphics and game engine developement general, please? I don't have the pasta.
Anonymous No.105993017 [Report]
hey where's the filemap schizo
Anonymous No.105993021 [Report] >>105993033 >>106037421
>>105993011
What's the use case for developing more game engines?
Anonymous No.105993033 [Report]
>>105993021
having nothing better to do
Anonymous No.105993115 [Report] >>105993141 >>105993160 >>105995735 >>106004715 >>106012697
How hard would it be to create a version of Rust without all the bullshit.
Anonymous No.105993141 [Report]
>>105993115
>Rust without all the bullshit.
That would just be an uglier and less capable C++.
Anonymous No.105993160 [Report]
>>105993115
C and C++ exist
Anonymous No.105993677 [Report] >>105999885
>>105992603 (OP)
>What are you working on, /g/?
Working on an SDL3 wrapper for Ada.
Got window+events working and I'm cleaning up some bindings right now. Tomorrow I'll start on the GPU wrapper.
Anonymous No.105993876 [Report] >>105994204 >>105994794
holy shit this OpenGL shit is pure madness.
When did we decide as humanity that we needed this shit?
I'm dying over here.
Anonymous No.105994015 [Report]
JS, Python, and Rust is all you need. Tauri solve GUI
Anonymous No.105994204 [Report]
>>105993876
babymode, it gets worse
Anonymous No.105994543 [Report]
https://www.youtube.com/watch?v=RCgEIBfnTEI
this guy is an idiot
Anonymous No.105994794 [Report] >>105994879
>>105993876
GPUs are complicated, and it doesn't help that OpenGL carries around all of its baggage from the 90s.
Anonymous No.105994879 [Report]
>>105994794
Could be worse. Could be 3dfx or direct3d.
Anonymous No.105995289 [Report] >>105995395
what data structure should I use for a container that needs to hold ~0-15 large objects of different types, changing very infrequently (< once an hour on average), supports concurrency (single writer, multiple readers), and frequent access to specific elements?

I was thinking I'd make a linked list where each node had a mutex for the object combined with a key value map to each element in the list (for the frequent specific element access). That way the 'writer' can add, modify, or delete nodes without interfering with anyone who is doing a 'frequent' read
Anonymous No.105995381 [Report] >>105997556 >>106002662
>>105992603 (OP)
My C# GtkSharp application keeps running into random crashes and it typically says due to an attempt to access restricted memory or something like that. I am compiling with AOT but even when I toggle it off I encounter the issue. Any other anons have experience with this? Is this just a memory leak issue with the library wrapper?

>inb4 just use Maui or Avolonia or some other cross platform framework
Gtk is the easiest to compile cross platform for Windows and Linux and it's holding up with AOT compilation pretty well
Anonymous No.105995395 [Report]
>>105995289
https://en.wikipedia.org/wiki/Read-copy-update
Anonymous No.105995588 [Report]
I'm spec'ing out a ton of changes for my web app's backend. My teammate is responsible for the frontend. Have to basically not jeet this up tonight
Anonymous No.105995735 [Report] >>105995858 >>106019792
>>105993115
It wouldn't, but all programmers are brainwashed into thinking that making a programming language is uberhard and useless if it doesn't have a user base of 1 million devs, so almost no one makes new PLs even though this is the biggest bottleneck of programming.
Anonymous No.105995858 [Report] >>105996142
>>105995735
There are six billion languages, they are just forgotten because they don't have webshit template libraries or established game engines and nobody wants to reinvent the wheel on a meme language.
Anonymous No.105996142 [Report] >>105998654
>>105995858
>There are six billion languages
and not a single good one
>nobody wants to reinvent the wheel
another falsehood. take any field of application and the top softwares for it have a lot to be desired and if you're going to rewrite it from scratch (a lot of code) you will be happy to use a language with a good type system and excellent metaprogramming features
Anonymous No.105997285 [Report] >>106012686
i was thinking
>vi
great editor name, 1 syllable
>vim
still great
>neovim
3 syllables, wtf are you doing

editor technology and specifically vi* development has shown itself to keep advancing with the times, so we may expect vi* to live on for some decades more.
whats the future incarnation going to be? "neovim++"?
my ideas are
>envy
from a shortening of neovim to "NV". still 2 syllables though
>niv / nav / nev / nov
same as above, but from "nv", where the nomenclature is youre supposed to pronounce it with a vowel.
advantages are that it could be marketed with an arabic letter logo, nun-vav. and also "niv" kind of sounds like "vim" backwards so it's familiar.
>ted
for "tactile editor". this is if vibe coding paired with visual studio or yet-unknown ai-integrated ide becomes so popular that some people just never need to make precise text edits. "vi" now becoming a meaningless distinction since everything has been "visual" for a long time, ted would reaffirm traditional editing by keeping the repertoire of vi commands in a 2040s era app.
Anonymous No.105997556 [Report] >>106004737
>>105995381
what does the dump file tell your?
or just configure your OS to suspend the process and attach the debugger
Anonymous No.105998654 [Report] >>105998724 >>105999901
>>105996142
Nobody is happy reinventing a standards compliant HTTP 3 server on a dead language. It's boring.
Anonymous No.105998724 [Report]
>>105998654
That's why you just use bindings to a C library.
Anonymous No.105998866 [Report] >>105998898 >>105998909 >>105998927
I'm new to git and github. What can people see if I commit a public project of mine? Can they see the name of my PC?
Anonymous No.105998883 [Report]
Panty color is recorded.
Anonymous No.105998898 [Report]
>>105998866
The name and email address that you configure it to set.
Anonymous No.105998909 [Report] >>105999343
>>105998866
They can see the entire history of your git repo (even if you accidentally committed a file and deleted it after), and they can see the username and email you've configured with git. That's about it.

It's really just your git history.
Anonymous No.105998927 [Report]
>>105998866
>if I commit
nothing
you have to push a branch to which you committed things to for other people to see it
Anonymous No.105999258 [Report]
if you declare a variable as var instead of its actual class I will find you and hurt you.
Anonymous No.105999343 [Report] >>106004755
>>105998909
What if I make a commit and then delete the whole project, no trace of that project will ever exist on my github account right?
Anonymous No.105999465 [Report] >>105999611
how does the computer know what variable I'm protecting with my mutex and to freshly retrieve it in particular???
Anonymous No.105999611 [Report] >>105999923
>>105999465
Flags
Anonymous No.105999885 [Report] >>106000089 >>106004969
>>105993677
Is there is a nicely organized reference documentation for the standard library somewhere?
Anonymous No.105999901 [Report] >>106003701
>>105998654
>webdev ad absurdum
faggot
Anonymous No.105999923 [Report]
>>105999611
what does that mean
Anonymous No.106000011 [Report]
i learned my company uses webhooks today and i need to configure stripe webhooks today

another day another WORK TASK TO BE DONE SAAAR
Anonymous No.106000089 [Report]
>>105999885
I've been working on nicer Ada docs and an overview: https://kontosdev.gitgud.site/notes/programming/ada/packages/
Not finished yet and requires some reorganisation, but it should be a lot easier than the manual and there are links to the manual for all the details.
Anonymous No.106000656 [Report] >>106000746
>want to buy fsf shirt
>see this
huh?
Anonymous No.106000746 [Report]
>>106000656
>Number one sex
>or woman
Anonymous No.106001318 [Report] >>106001535 >>106001744 >>106002566
You guys know how jeets in tech are rote memorization slaves who have no lateral thinking skills, so they apply abstract software design principles like LSP / DRY, etc. in the most retarded fashion like an autistic booknerd with zero global, holistic engineering or design sense


I was thinking that's just like LLMs that write code. . The LLMs are like jeets. They apply DRY or other SOLID shit unnecessarily and shit up codebases with needless abstraction.

The LLMs are Indian. The training data is Indian. It's all Indian.
Anonymous No.106001535 [Report] >>106002381
>>106001318
saaaaaaaaaar, give the visa saaaar
Anonymous No.106001744 [Report]
>>106001318
>Indians scrape data
>Indians shit data
>LLM scrape shit
>AI becomes shit
>AI becomes Indian
>AI shits data
>repeat
Anonymous No.106002253 [Report] >>106002262 >>106004598 >>106004747 >>106005056
What is the best way to check if a character is an uppercase letter, A-Z, in python?
There are a few ways to do it.
Anonymous No.106002262 [Report]
>>106002253
I check the ascii code if it's within the range of capital letters.
someone may have a better way of doing it...
Anonymous No.106002337 [Report]
Reading C++ Primer!
Anonymous No.106002381 [Report]
>>106001535
llms also accept mastercard and amex
Anonymous No.106002443 [Report] >>106002508 >>106002529
hello /g/ im learning java as a hobby and tried to recreate a program i made way back in high school from memory where the goal was to check whether one box could fit into another one in any rotation

how can i post my code so anons can shit on my code?
Anonymous No.106002508 [Report]
>>106002443
just paste it in with <code>
Anonymous No.106002529 [Report] >>106002560
>>106002443
>how can i post my code so anons can shit on my code?
>>105076684
Anonymous No.106002560 [Report] >>106002672
>>106002529
wait until he posts it wrong you fucking retard
Anonymous No.106002566 [Report] >>106002582
>>106001318
it's quite ironic how cniles and functards always shit on poojeets for memorization, cargo cult and whatnot, while themselves being the most extreme zealots doing just that
Anonymous No.106002582 [Report] >>106002639
>>106002566
>defending jeets
fortunately soon brindia will be blocked from 4chan
Anonymous No.106002639 [Report] >>106002643
>>106002582
that won't stop cniles and functards from being the kind of zealots they criticize others being, though
Anonymous No.106002643 [Report]
>>106002639
i can immediately understand that what you're saying is false, because you are indian
Anonymous No.106002662 [Report] >>106004737
>>105995381
You use multi-threading?
Anonymous No.106002672 [Report] >>106002686
Test.java
idk what im doing
>>106002560
i probably just did, feel free to laugh
Anonymous No.106002686 [Report]
>>106002672
>Test.java
downloading it now sir...
Anonymous No.106002704 [Report] >>106002718 >>106002968
public class Test {

static void check(float[] cube1, float[] cube2){
if(cube1[0] <= cube2[0] && cube1[1] <= cube2[1] && cube1[2] <= cube2[2]){
System.out.println("cube 1 fits inside of cube 2 in the same position");
}
else if(cube1[0] <= cube2[0] && cube1[1] <= cube2[2] && cube1[2] <= cube2[1]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis");
}
else if(cube1[0] <= cube2[2] && cube1[1] <= cube2[1] && cube1[2] <= cube2[1]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the width axis");
}
else if(cube1[0] <= cube2[1] && cube1[1] <= cube2[0] && cube1[2] <= cube2[2]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis");
}
else if(cube1[0] <= cube2[2] && cube1[1] <= cube2[0] && cube1[2] <= cube2[1]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis, then the width axis");
}
else if(cube1[0] <= cube2[1] && cube1[1] <= cube2[2] && cube1[2] <= cube2[0]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis, then the length axis");
}
else{
System.out.println("Cube 1 does not fit inside of cube 2");
}
}

public static void main(String[] args) {
float[] cube_1 = {10, 3, 7};
float[] cube_2 = {3, 7, 10};
System.out.println("cube 1 dimensions, Length: " + cube_1[0] + "cm, Width: " + cube_1[1] + "cm, Height: " + cube_1[2] + "cm\ncube 2 dimensions, Length: " + cube_2[0] + "cm, Width: " + cube_2[1] + "cm, Height: " + cube_2[2] + "cm\n");
check(cube_1, cube_2);
}
}
Anonymous No.106002718 [Report]
>>106002704
heres the comments i deleted so it would fit

//this program tests if one rectangular prisim can fit into another in all configurations which allow for the largest possible rectangular prisim to fit, therefor it excludes checking along diagonals
//this program also needlessly uses arrays and methods for the sake of learning
//also the rectangular prisims are called cubes even though they should be called "rectangles" but i cant be assed to write that as a variable

// 0 = Length, 1 = width, 2 = height, dimmensions are assumed to be in cm
Anonymous No.106002968 [Report] >>106003059 >>106003064 >>106003793
>>106002704
public class Test {

public static void main(String[] args) {
Prism prism1 = new Prism(10, 3, 7);
Prism prism2 = new Prism(3, 7, 10);

System.out.println("cube 1: " + prism1);
System.out.println("cube 2: " + prism2);

if (prism1.fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 in the same position");
} else if (prism1.rotatedAlongLengthAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis");
} else if (prism1.rotatedAlongWidthAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the width axis");
} else if (prism1.rotatedAlongHeightAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis");
} else if (prism1.rotatedAlongLengthAxis().rotatedAlongHeightAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis, then the width axis");
} else if (prism1.rotatedAlongHeightAxis().rotatedAlongLengthAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis, then the length axis");
} else {
System.out.println("Cube 1 does not fit inside of cube 2");
}
}
}

class Prism {
final float l, w, h;

public Prism(float l, float w, float h) {
this.l = l;
this.w = w;
this.h = h;
}

public Prism rotatedAlongLengthAxis() {
return new Prism(l, h, w);
}

public Prism rotatedAlongWidthAxis() {
return new Prism(h, w, l);
}

public Prism rotatedAlongHeightAxis() {
return new Prism(w, l, h);
}

public boolean fitsInsideOf(Prism other) {
return this.l <= other.l && this.w <= other.w && this.h <= other.h;
}

@Override
public String toString() {
return "Length: " + l + "cm, Width: " + w + "cm, Height: " + h + "cm";
}
}
have some OOP
Anonymous No.106003022 [Report] >>106004639
__attribute__((__transparent_union__))

This thing seems really useful, but the fact that it's a non-standard extension makes me wonder if it's got footguns hidden.
Is anyone familiar with this attribute?
Anonymous No.106003059 [Report] >>106003175
>>106002968
>have some OOP
im doing the w3school java tutorial rn and haven't got to it yet :(
Anonymous No.106003064 [Report]
>>106002968
yiking rn desuyone
Anonymous No.106003175 [Report] >>106003214
>>106003059
just be aware that using primitive arrays instead of objects is not a typical Java practice
Anonymous No.106003214 [Report] >>106003493
>>106003175
isnt an object like just an array...?
i don't get the difference
Anonymous No.106003493 [Report] >>106003506 >>106003650
>>106003214
no
an array is just a linear structure of values of the same type - either primitives (eg. int[], float[], etc.) or objects (eg. Prism[], String[], etc)

an object is an instance of a class
a class is a definition for objects
a class can have fields (basically variables, but tied to the context of an object) that can be differing types, as well as methods (basically functions, but also in context of an object)

so if you have a class Prism and you create two Prism objects, each object's method will use its own object's fields
Anonymous No.106003506 [Report] >>106003793
>>106003493
>a class can have fields (basically variables, but tied to the context of an object) that can be differing types, as well as methods (basically functions, but also in context of an object)
why does any of this need to be tied to an object tho? it feels arbitrary
Anonymous No.106003650 [Report] >>106003793
>>106003493
Technically, In Java an array is an object too and so you can invoke java.lang.Object methods on it.
Anonymous No.106003691 [Report]
>>105992603 (OP)
I'm low on mental fuel, and a capacity to give a rats ass about developing software. I threw screenshots of Kuroba Ex at openai and x and told it implement the image manipulations. The image type logic is sorta fucked, and it renames images to unix by default, but it works.

On one hand, I can't believe no one has made such a basic image processing app on droid for these actions. On the other hand, I do believe it because Android Studio fucking sucks. Maybe I will release it, idk. I need to stop being tired. But I keep shitting my guts out thanks to illness
Anonymous No.106003701 [Report] >>106003752
>>105999901
Yes. Literally all new languages get popular by doing novel ways of doing webshit and provide immediate value.
There's too much code already entrenched and generating heaps of sunk cost for management to ever advocate for something else.
Do you use Chapel for HPC? No. Do you use Erlang or Scala for distributed services? No. You write corposhit and then write something novel to get a better job and then the corpo rewrites your OCaml tool into Java corposhit to maintain it.
Nobody is rewriting all that C++/Java/Python.
Anonymous No.106003752 [Report] >>106003811 >>106015801
>>106003701
why cant normal languages just be used for websites? why does every web language have to be its own thing, like java script
Anonymous No.106003793 [Report]
>>106003506
the main advantage is that it lets you keep all related values and behavior close, in one place

take for example the Prism class in >>106002968
all possible behavior you can invoke is defined by public methods of that class - you don't need to search through your whole codebase to find what can you do with it

usually you don't need to even inspect the code inside methods, it's enough to read the name and return type to understand what it does - you should easily tell that all you can do with a Prism object is rotate it against one of its axes, or check if it fits inside another Prism object

when done right, the usage turns basically into writing plain English (eg. if (prism1.fitsInsideOf(prism2)) { ... )

>it feels arbitrary
it is

>>106003650
an array is an object but an object isn't an array
Anonymous No.106003811 [Report]
>>106003752
That's what they are trying to do with webassembly: compile your language for the virtual machine everybody has.
The problem: it's still a virtual machine so it's slow, not all lang features map cleanly to webassembly features, and doing GUI sucks ass since forever so people want the DOM and therefore not want webassembly.
And Chromium is a bajillion lines of C++ and that's how it's going to stay because fucking nobody wants to read and implement the specs of all the W3C autism plus muh quirks mode plus tip. So Javascript it is.
Anonymous No.106003953 [Report] >>106004203
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Don't read this page, just click the link and try to scroll to the bottom as fast as you can
Anonymous No.106004203 [Report]
>>106003953
Gotta GNU fast
Anonymous No.106004598 [Report] >>106005056
>>106002253
from string import ascii_uppercase
def is_upper(c):
return c in ascii_uppercase

idiomatic saar
Anonymous No.106004639 [Report] >>106004769
>>106003022
it's not that useful because all the associated types have to be put in the same union, so you have to have one centralized type that has all of the applicable types
maybe you have a usecase I'm not thinking of, but the last time I thought it might be useful was when I had a bunch of structs with a common initial sequence, and I wanted to have them all be valid arguments to a function without having to do
func(&item->base)
// or
func((Base*)item)
Anonymous No.106004715 [Report]
>>105993115
Without the bullshit you would have to malloc manually so there wouldn't any point in using rust.
Anonymous No.106004737 [Report]
>>105997556
I don't know if need to start checking
>>106002662
Yes but I have been meticulous about safely invoking code within the gui thread
Anonymous No.106004747 [Report]
>>106002253
ord('A') <= ord(c) <= ord('Z')
c.isupper()
re.fullmatch('[A-Z]', c)
second one is probably "best", but other two are more general.
Anonymous No.106004755 [Report]
>>105999343
If no one forked/cloned your repo only you and Microsoft can access the data.
Anonymous No.106004769 [Report]
>>106004639
I've personally always found it odd that this isn't how they work, with values you have to either cast and uncast or cast and do member access
>you have a usecase I'm not thinking of, but the last time I thought it might be useful was when I had a bunch of structs with a common initial sequence
I'm implementing an AST, so I have a shit ton of C style polymorphism going on rn. I've been using _Generic in a macro to get around the source code bloat.
I'm conservative with macros, but I'd rather deal with that and run -E than type that shit,
Anonymous No.106004883 [Report]
https://gcc.gnu.org/onlinedocs/cpp/C_002b_002b-Named-Operators.html
Let's hope the python niggas don't find out about this
Anonymous No.106004969 [Report]
>>105999885
>not cnilistic
Anonymous No.106005056 [Report] >>106005608
>>106002253
I vote for this >>106004598
the others are retarded. Don't use regex. Don't compute anything.

>>105992603 (OP)
Any of you just get burned out? I can't think through any logic anymore, and I don't care to try.

Listener events? Idempotency? If else? NO.

Nap time? Fap time? Walk time? YES.
Anonymous No.106005608 [Report] >>106006540 >>106008800
>>106005056
>the others are retarded. Don't use regex. Don't compute anything.
Fun fact, python's regex implementation optimizes char classes like that really heavily, provided you don't run compile a lot, you'll likely end up with a DFA about as fast as the in keyword
Anonymous No.106006540 [Report]
>>106005608
u should test it
Anonymous No.106007253 [Report] >>106007588 >>106008025 >>106008097
how do i get into c++? especially for working with hardware and electronics. im okay at python so im not completely new to programming.
Anonymous No.106007588 [Report] >>106007672
>>106007253
>hardware and electronics
>c++
stay the fuck away we don't want you
Anonymous No.106007672 [Report]
>>106007588
its not my choice, its the industry im targeting
Anonymous No.106008025 [Report]
>>106007253
arduino
Anonymous No.106008097 [Report]
>>106007253
https://wokwi.com/
Anonymous No.106008633 [Report] >>106010842
What's your biggest programming mistake?
Anonymous No.106008701 [Report]
for getting into google/aws/netflix/openai python is actually wayyyyyyyyy more useful than anything else

it's a shame but i'm forcing myself to be better at python

currently going through all leetcode problems rewriting in python
Anonymous No.106008800 [Report] >>106008837
>>106005608
>you'll likely end up with a DFA
charclasses are implemented very easily with bitvectors.
uint32_t charclass[32] = {0};
// make the charclass
uint8_t c = ...;
if (charclass[ c >> 3 ] & (1 << (c & 7)))
{
// character is in the charclass
}

some regex engines also use a 16 byte bitvectors when the charclass characters are all ascii
Anonymous No.106008837 [Report]
>>106008800
whoops
>uint32_t charclass[32] = {0};
uint8_t charclass[32]
Anonymous No.106008949 [Report] >>106009275 >>106009530
Guys one week left to build a moderate program for my project, but I haven't programmed in a year tho. What should I do, goal is to get something complete and with at least 4 to 5 features that the program will have. Also I have to write a detailed report and a diagram to show how the program works unfortunately, time that I will have to spare and reduce from my programming time. Also I can't copy everything, I need to show versions of it and time it was done at. So version control. Cheating and cramming will be impossible.
Anonymous No.106009275 [Report] >>106009985
>>106008949
You haven't given any technical details so I assume you just want to blog?
Anonymous No.106009530 [Report] >>106009961
>>106008949
sounds like high school homework
use chatgpt
Anonymous No.106009961 [Report] >>106010072
>>106009530
No I can't. Its college class during the summer so you can't cheat, they have programs to detect it genius. You get 0 if you get caught plagiarizing anything or using AI.
Anonymous No.106009985 [Report] >>106010222
>>106009275
No I have to create a program a business would need but it can't be an online shop. Also I'm trying to avoid anything that would require me to do any sort of designs because I can't draw at all or it would just take forever. I was thinking of creating a gps system but for the timeframe I have that is never going to happen.
Anonymous No.106010072 [Report] >>106010982
>>106009961
just use chat gpt and then try to implement it yourself by memory.
>b-b-b-but the software is gonna detect it!
The only trick they have to check if you are checking is Git, chatgpt (or whatever AI) gives you to full solution, then you just build up to that solution knowing what chatgpt told you (if you want a challenge, you could use a different programming language and you could port it, the language doesn't really matter it's the solution)
spend your time programming shit that actually matters instead of wasting it on school work.
An example of something that actually matters is a project that an AI can't do on it's first try with a single prompt, and it's something you could show off.
Anonymous No.106010222 [Report]
>>106009985
>I was thinking of creating a gps system
lol wut
Anonymous No.106010842 [Report]
>>106008633
>Lord **
Jesus or Satan?
Anonymous No.106010982 [Report] >>106011763
>>106010072
Just stfu you retard. No it can be fully detected. I know people who got caught.
Anonymous No.106011763 [Report]
>>106010982
>No it can be fully detected
lmao you are as clueless as the people marking your work

technologically illiterate boomers and zoomers
Anonymous No.106011844 [Report] >>106012113
Poggers
Anonymous No.106012095 [Report] >>106012179 >>106012661
It is ok to be a C++ dev
Anonymous No.106012113 [Report] >>106012853
>>106011844
single render split between several windows, or did you just fix the triangle based on the screen and open 5 instances that you resized?
Anonymous No.106012179 [Report]
>>106012095
It is nok, baka chiruno poster
Anonymous No.106012226 [Report] >>106012276
Spent all day browsing the internet for social media whores instead of programming. I am never getting a job in IT.
Anonymous No.106012276 [Report] >>106012441 >>106012600 >>106013481 >>106024680
>>106012226
Best thing to do it just put on some porn, have a wank, and get it over with. Scrolling on TikTok for hours looking at bitches like this means you will never write a line of code.
Anonymous No.106012441 [Report]
>>106012276
>tinfoil covers everything except the head
makes sense when you're a woman with nothing there to protect
Anonymous No.106012600 [Report] >>106012615
>>106012276
It usually takes me a couple of hours to have a wank tho. I never cum until I've watched at least a couple hours of whores. I have to stroke it for a couple of hours, it can even be up to 7 hours.
Anonymous No.106012615 [Report] >>106012626
>>106012600
>training your penis to not work
Anonymous No.106012626 [Report] >>106012715
>>106012615
Well its been working perfectly for decades.
Anonymous No.106012661 [Report]
>>106012095
only with rtti and exceptions off and STL runtime not linked
Anonymous No.106012686 [Report]
>>105997285
>vee eye is one syllable
?
Anonymous No.106012697 [Report] >>106012857
>>105993115
https://github.com/tsoding/Crust
Anonymous No.106012715 [Report] >>106012881
>>106012626
uh huh how many children do you have?
Anonymous No.106012853 [Report]
>>106012113
The former I suppose, they all run off the same pipeline but the triangle is hardcoded in the shader, all I change between windows is the viewport and clear color.
Anonymous No.106012857 [Report]
>>106012697
>No cargo, build with rustc directly.
Yeah lets get rid of one of the few good aspects of using Rust.
Anonymous No.106012865 [Report] >>106014527
Holy SHIT why did nobody tell me async Python was this good? All my dumb "waiting for HTTP API calls" bottlenecks just EVAPORATED from sticking a bunch of awaits in for loops. Golang, you're fired.
Anonymous No.106012881 [Report]
>>106012715
None, women are insufferable nowadays.
Anonymous No.106013092 [Report] >>106013425 >>106013491 >>106013561
Submitted solutions in Python, C++ and Rust.

They were all written by me based on the same solution I thought about while pooing earlier on in the day, so you can't claim the Rust one was better because the algorithm was more efficient.
Anonymous No.106013240 [Report]
I love metaprogramming C using the Tool Chad Language, so comfy.
Anonymous No.106013425 [Report] >>106013560
>>106013092
you faked the numbers to shill for crab
Anonymous No.106013481 [Report] >>106013569
>>106012276
https://www.tiktok.com/@sara.manner/video/7269365050396200225
Anonymous No.106013491 [Report] >>106013560
>>106013092
as believable as porn scenarios
Anonymous No.106013560 [Report] >>106013575
>>106013425
>>106013491
It was a run of the mill linked list question where C++ needed to allocate memory and rust had less of an overhead.

i don't even like Rust or C++, and I especially hate Python. I just thought the results were interesting.

it's a shame I can't upload my Haskell solution to compare. I don't care if it's slower and uses 1gb more memory I would still use Haskell
Anonymous No.106013561 [Report]
>>106013092
Python+Rust is an underrated combo.
Anonymous No.106013569 [Report]
>>106013481
what an ass on this white bitch holy shit
Anonymous No.106013575 [Report]
>>106013560
post the problem
Anonymous No.106014527 [Report] >>106014536
>>106012865
Don't DDoS other people's websites.
Anonymous No.106014536 [Report]
>>106014527
This is the Azure API and I'm not the one signing the cloud account checks.
Anonymous No.106015159 [Report] >>106015268 >>106016037
I'm making an assembler. I have a class for each instruction type. What should I do about the labels? Should they be a property of each instruction like this?
Add(['label1','label2',...], Reg.R1, Reg.R2)

or should they be one layer up like this?
Object(['label1','label2',...], Add(Reg.R1, Reg.R2))
Anonymous No.106015216 [Report] >>106015336 >>106015402
why do i have good ideas for projects right as i'm about to go to bed? this is the third time this has happened recently
Anonymous No.106015268 [Report]
>>106015159
A label -> line number map.
You can use this map/table to rewrite jumps.
Anonymous No.106015336 [Report]
>>106015216
Google your question if you really care. boils down to something something, brain is relaxing, reorganizing info, and or revisiting info.
I swear I had a science teacher really talk about this when I was in like middle school, but I can't recall the details. There seem to be a lot of articles online about it.
Anonymous No.106015402 [Report]
>>106015216
Write them down so you have a stash for the time when you want to work on something but don't have an idea.
Anonymous No.106015482 [Report] >>106015505
I always make sure to thank GPT-chan and include an image of the results if applicable so she can properly appreciate her handiwork.
Anonymous No.106015492 [Report] >>106016770
>>105992603 (OP)
What are your preferred build systems?
I was introduced to make pre-college, ended up 'learning' CMake like any good man does and just copy-pasted other build files I found online. I seriously hate CMake; however, I had just started getting good at it & catching up to the modern 3.XX versions by the time I found meson.
Fiddled around with Xed (linuxmint's text editor, fork of old gedit) and starting using Gtk + GLib more. I honestly don't want to ever build without meson again...
Anonymous No.106015505 [Report] >>106015538
>>106015482
Why? Her memory of that feedback will be obliterated when the conversation ends
Anonymous No.106015538 [Report]
>>106015505
Not true they give it your whole convo history now.
Anonymous No.106015687 [Report] >>106015706 >>106016426
I was replaced 3 months ago by a contracting company in Canada. I found out today that the software suite I maintained has been completely trashed and they can't get the server to work.

All the documentation was translated to Punjabi using AI. All the new components for the app they were tasked with building were inserted as images. They were even running queries on the production database without backups, transactions, or even double checking anything.

Thank you India -- today is a good day.
Anonymous No.106015706 [Report]
>>106015687
Our firm specializes in technical debt
Anonymous No.106015801 [Report]
>>106003752
The use case for wasm is cryptography or game engines. Anything else I can get a chick with multicolored hair to do for $20/hr
Anonymous No.106015810 [Report]
How can I generate a compilation database for clangd if I'm using a unity build?
Anonymous No.106016037 [Report]
>>106015159
>I'm making an assembler. I have a class for each instruction type. What should I do about the labels? Should they be a property of each instruction like this?
niggerlicious
Anonymous No.106016426 [Report]
>>106015687
>All the documentation was translated to Punjabi using AI
lmao
Anonymous No.106016770 [Report]
>>106015492
one makefile per target platform
Anonymous No.106017064 [Report]
>>105992603 (OP)
>What are you working on, /g/?
Boredly tried to vibe code some shitty python script to spit out a dumb wallpaper idea I had. It came out exaclty as I wanted (pixel perfect to the spec in my head), but turns out it doesn't look nice at all. I added some more code to include palette to make the main cross a different color. Still doesn't look anywhere nice.

Meh.
Anonymous No.106017140 [Report]
ktim
Anonymous No.106017513 [Report]
Every time i finish another nugget of my emulator i realize i have waaaaay more work to do than i ever imagined at the outset of the nugget and it will involve lots of fumbling and many more hours of manual rereading
Anonymous No.106018067 [Report]
Good day anons, I would like to ask if building the software from scratch is still relevant to the industry? I am currently building a Point of Sales software but I only know how to build a web application offline and I have no knowledge of doing the way programmers did back in the days and might end up making it as a web app instead.
Anonymous No.106019058 [Report]
Why tf are these jeets and pakis charging so much for them to program me something? Their minimum wage is like a 1 usd a day yet they're asking for like 20 an hour. These south asian monkeys are so out of touch with reality. I would use AI but the reason I'm not is because AI is too obvious.
Anonymous No.106019126 [Report]
I'm a senior dev but I only have 18 months of experience. kek
Anonymous No.106019295 [Report] >>106019594 >>106019732
Hi, I'm not a programmer but enough tech savvy to vibe code.
I want to create this project for personal use,(Private clinic records)
>Record name/age/sex/complain/management
>add their imaging studies from file or webcam
>modify those at later point
>Tags for certain disease
>search those based on various filters
>reactive UI for desktop/phone
>store data as database including images
>export those as PDF
>Basic user authentication
>ability to backup data
>self hosted
And finally reproducibility on different platforms, or just being able to make an executable for windows users.
I tried using chatgpt/deepseek, but it was very frustrating experience.
Any idea how would it be possible to do this?
Anonymous No.106019594 [Report] >>106019749
>>106019295
these are the difficult parts
>reactive UI for desktop/phone
>Basic user authentication
an undergrad can do the rest in a weekend
pay someone to do it if you can't
Anonymous No.106019732 [Report] >>106019749
>>106019295
> Any idea how would it be possible to do this?
learn how to code.
Learn how a database works
Probably just use django web framework to handle site/api mapping + orm.
Backing up data wouldn't really be something the *app* does, it boils down to copy-paste the database somewhere not on that same drive/server.
You could probably do a lot of this in python. I'm not a webdev so I can't tell you how to make a reactive UI. I can recommend you look for the "Certificate", not certification, by Meta for Back-end development, Front-end development, and fullstack development. They are free and introduce you to about half of what you want to know. I believe they hyphenated back-end development, which is why I hyphenated it here.
I can't name a crossplatform UI toolkit that does windows and mobile off the top of my head. You might as well just make a webpage.
>but it was very frustrating experience
Well obviously, you're asking text predictor to help you, not someone who actually knows what they're doing.
Anonymous No.106019749 [Report] >>106019755 >>106020241
>>106019594
I don't want to.
I want to build it myself, and if undergrad can do it, then it's no difference than AI.
and I have made something with flask, but asking AI vague question doesn't mean I would get the best answers.
And I need to know what i want so it would generate better code.
Any advice regarding that I mean.
I guess doing it with flask would be a safe choice isn't it?
But what about the data? how to store it? since some might be videos and images.
I know flask and python can be set as stand alone executable, so there's that.
And can be set up to run from a container too.
>>106019732
>learn how to code.
Not really helpful answer.
>omeone who actually knows what they're doing.
That's why I'm asking here.
I'm not asking to write code for me I'm asking what do I need to use to get it working.
Anonymous No.106019755 [Report] >>106024326
>>106019749
Forgot webm
Anonymous No.106019792 [Report] >>106019930 >>106020254
>>105995735
People should really make more languages. Even with that OOP talk last week, it was clear that the problem is that there's just not enough people trying new different things. It's insane that if Bjarne makes some dumb mistake in the 80's and we're just stuck with it for 40 years.
The solution should probably be more modular libraries and stuff like that. I know that nowadays it's trendy to hate on dependencies and do everything yourself, but the thing is that nobody wants to spend years reimplementing all the dumb boring crap that Rust already does fine, just to finally be able to try changing a few small things.
At least there's LLVM, which sucks, is slow and way too hard to use, but it's something. Imagine if we didn't even have that.
Anonymous No.106019930 [Report] >>106020267
>>106019792
>People should really make more languages
>nobody wants to spend years reimplementing all the dumb boring crap
make up your mind
Anonymous No.106020241 [Report] >>106021551
>>106019749
Well, if you want a helpful answer you should not be in here. Also, although both of you use AI (which almost every undergrad does), the undergrads have already finished your project
Anonymous No.106020254 [Report]
>>106019792
>At least there's LLVM
LLVM is holding language design back though. There needs to be an LLVM 2.
Anonymous No.106020267 [Report]
>>106019930
Did you not notice the Rust shilling?
Anonymous No.106020273 [Report] >>106020353
It's fucking insane that I first learned programming from this fucking thread.

Some guy showed me how blocks in Ruby worked and that somehow got me hooked. Now I code for money every day.

thanks, /dpt/.
Anonymous No.106020328 [Report] >>106020441 >>106020830
How much writing do I need for backlogs in Scrum and do I need to use certain language when writing in backlogs? Is it ok if I just do bullet points or one liners like "Finish this" or "Finish that"? Or do I have to go in great detail?
Anonymous No.106020353 [Report]
>>106020273
No one works or gets paid everyday retard. Stop coming her and spreading crap.
Anonymous No.106020361 [Report]
Lord forgive me but the deadlines have to be met
Anonymous No.106020441 [Report] >>106020696
>>106020328
What is Scrum?
Anonymous No.106020696 [Report]
>>106020441
Not programming.
Anonymous No.106020766 [Report] >>106020847 >>106021457
https://github.com/shader-slang/slang/blob/master/CLAUDE.md
LLMs are tricking devs into writing decent docs/overviews of their project's architecture.
Anonymous No.106020830 [Report]
>>106020328
>How much writing do I need for backlogs in Scrum
none? just talk it out
>do I need to use certain language when writing in backlogs
what do you even mean by "writing in backlogs"?
the backlog itself doesn't have any writing, it's just a list of tasks that are not yet assigned to a sprint
when you write a new story, you first add it to the bottom of the backlog - do you mean this?

you don't have to know every detail of the story from the start. write a short stub and ask the team what they need to know about it to be able to complete it
Anonymous No.106020847 [Report]
>>106020766
What retard wrote this? It's literally:
>lexer.cpp - does lexing
>parser.cpp - parses
Are LLMs the new niggers for soidevs to baby around?
Anonymous No.106020919 [Report]
Is kate the best IDE?
Anonymous No.106020970 [Report] >>106020998 >>106021502 >>106030176
>>105992603 (OP)
Anons, how would you go on about architecting an interpreter for a programming language?
I personally would use a pipelined "report errors but compute anyway" approach; the consequence of such pipelining enabling the code to potentially look like this:
int main(int argc, char **argv) { ExecInstrs(ValidateInstrs(Ast2OrderedInstrs(ValidateAst(Text2Ast(ValidateText(LoadText(ValidateArgs(argc, argv)))))))); return 0; }
/* Todo: implement them all */
Anonymous No.106020998 [Report] >>106021097
>>106020970
not like this
Anonymous No.106021097 [Report] >>106021109 >>106021158
>>106020998
Sepples could probably convert that into something more pleasant:
int main(argc, argv) {
auto pipeline { ValidateArgs, LoadText, ValidateText, Text2Ast, ValidateAst, Ast2Instrs, ValidateInstrs, ExecInstrs };
for (auto &f: pipeline) f();
return 0;
}

I admit that I do not know how I would mangle the language to achieve this, and I'm not sure whether it's worth the time learning said language.
Anonymous No.106021109 [Report] >>106021156 >>106021158
>>106021097
you don't want to do it that way anyway, even if some of those things individually make sense
Anonymous No.106021156 [Report] >>106021169
>>106021109
Why not? The program is just a series of functions converting data to other data, with validators in between to handle errors.
I don't see the problem with this approach.
Anonymous No.106021158 [Report]
>>106021097
>>106021109
also if you want a language to try this out in, go for Haskell
i would recommend
>all the language implementation shit you plan on adding
>command line option parsing
>interpreter command parsing
>possibly byte code compiler/interpreter if you don't plan on evaluating the AST as-is
>maybe debugging shit
>something that executes interpreter commands
Anonymous No.106021169 [Report]
>>106021156
for a start the fact that the input to the interpreter won't all be available up front
Anonymous No.106021457 [Report]
>>106020766
Kek
Anonymous No.106021502 [Report] >>106021538
>>106020970
1) define a big struct with all your data. Don't scatter things on the stack like a retard. If some fields or buffers won't be relevant until later phases, that doesn't matter, just initialize them at the beginning anyway
2) write functions that take a pointer to your data and change it
3) call them in the correct order
Anonymous No.106021538 [Report] >>106021576
>>106021502
>anon is retarded
Anonymous No.106021551 [Report] >>106022051
>>106020241
>the undergrads have already finished your project
[citation needed]
Anonymous No.106021576 [Report]
>>106021538
Functionaltroons lost
Anonymous No.106021611 [Report] >>106021906 >>106021909 >>106025938 >>106027242
What's the best way to set up python development?
I use docker to make a python container and mount the project directory.
That way I can make is easy to deploy when needed.
Is that stupid?
Anonymous No.106021906 [Report]
>>106021611
>Is that stupid?
Yes using python is pretty stupid.
Anonymous No.106021909 [Report]
>>106021611
uv is all you need
Anonymous No.106022051 [Report] >>106022056 >>106022064
>>106021551
What citation is even needed anymore? Most Zoomers aren’t puritans they don’t obsess over the process, just the result. They’ll do manual work if they have to not some extreme of “no AI ever” or “if I use AI, I have to use it for everything” then cry when it doesn’t work
Anonymous No.106022056 [Report]
>>106022051
>Most Zoomers aren’t puritans
Most zoomers are FUCKED
Anonymous No.106022064 [Report]
>>106022051
>Most Zoomers aren’t puritans
Yes we are what are you smoking
Anonymous No.106024326 [Report] >>106024821
>>106019755
huh
Anonymous No.106024680 [Report]
>>106012276
8/10, her cock is not big enough.
AI can fix that.
Anonymous No.106024821 [Report]
>>106024326
Since you couldn't tell from his bad English, I'm starting to think you're ESL as well.
Anonymous No.106025938 [Report]
>>106021611
>Is that stupid?
Depends on the overall structure of the application. For many things, that works well. For some, it's a total terrible idea.
I deal with one app which does lots of calling back into itself in complicated ways. Designed for Docker it absolutely isn't.
Anonymous No.106026050 [Report]
i've decided i've spent too long working out
i will now learn to program
Anonymous No.106026821 [Report] >>106026835
My retarded beginner ass just found out I can de reference in rust with *.
AMA
Anonymous No.106026835 [Report] >>106026852
>>106026821
>AMA
What are you drinking rn? I'm drinking a Leffe (I had spare from a party) and Crimson Cask from Compass Box.
Anonymous No.106026852 [Report] >>106026861 >>106027315
>>106026835
Water and coffee only.
Anonymous No.106026861 [Report] >>106027286
>>106026852
lame
Anonymous No.106027242 [Report]
>>106021611
Not really.
I do it all the time, it's less complicated than messing venv and actually make sure you've included all dependencies.
And prevent you from adding bloat to your OS especially if you're using it for things other than coding.
I'm using arch and many of the pip packages are handled with pacman so this offer better way to make things are building correctly.
bruh bruhhhson No.106027286 [Report]
>>106026861
>> 106026852

testing
Anonymous No.106027305 [Report]
>>105992603 (OP)
Working terminal file manager and standard C for HolyC and TempleOS
Status: WIP

https://github.com/ZerpRedgrave/LibHC
bruh bruhhhson No.106027315 [Report]
>>106026852

this this
Anonymous No.106027446 [Report] >>106027486 >>106028973
i just learned how to manipulate individual bits of a data type with pointers in c.
Anonymous No.106027486 [Report] >>106027541 >>106029115
>>106027446
im still clueless on rust ownership
how can people use this shit language
Anonymous No.106027541 [Report]
>>106027486
i don't know anything about rust. ai seems to do a decent job of taking your retarded question and spitting out something that either answers your question, or at least gives you enough info to know what you're looking for and how to find the answer somewhere.
god i'd be embarrassed if anyone saw some of my prompts.
Anonymous No.106027724 [Report] >>106030842
loading tracks works (mostly)
Anonymous No.106027822 [Report]
Implemented wide graphemes support in my editor.
Anonymous No.106028973 [Report] >>106029030
>>106027446
no you didn't because pointers address bytes not bits
Anonymous No.106029030 [Report] >>106029111
>>106028973
bitwise operations.
yes i did
fuck off
Anonymous No.106029111 [Report]
>>106029030
>bitwise operations.
so not
>with pointers in c
stupid ass frogposting retard
Anonymous No.106029115 [Report] >>106029160
>>106027486
>how can people use this shit language
thats the neat part they dont
Anonymous No.106029160 [Report]
>>106029115
what langs are like rust but without the shittery
Anonymous No.106030176 [Report]
>>106020970
write a bytecode VM then write the compiler for it
Anonymous No.106030842 [Report]
>>106027724
ok I fixed it, heap corruption caused by me not noticing one of the compiler optimized loops addressing adjacent data
Anonymous No.106031459 [Report] >>106032203 >>106033812
As an exercise, I'm trying to create something similar to std::hive (a.k.a. a colony) from C++26 in Rust as a near absolute beginner in Rust, and using language features and the Standard library as much as possible.
In order to achieve the complexity requirements for insertion, deletion, and iteration, you need
>a linked list of all memory blocks allocated for the colony
>a linked list of nodes from the first list that point to memory blocks with unused elements
>a struct that tells us how to find the corresponding nodes in both lists (and an index into that block)
>a push function that returns objects of that struct
>a pop function that consumes objects of that struct
For example, in C++,
// Block class template defined above
template<typename T> class ItemHandle {
std::optional<std::list<std::list<Block<T>>::iterator>::iterator> opt_it_erased_block;
std::list<Block<T>>::iterator it_block;
std::size_t index;
};
template<typename T> class Colony {
// ... other fields ...
std::list<Block<T>> blocks;
std::list<std::list<Block<T>>::iterator> erased_blocks;

public:
// constructors/etc. ...

ItemHandle<T> push(const &T);
T pop(const &ItemHandle<T> h);
};

In Rust, the equivalent of std::list<T>::iterator here would be std::collections::linked_list::CursorMut<'a, T>, but because of the borrow checker, if you try to translate the above code directly
>can't give the erased-block list a real lifetime without requiring T: 'static (because the lifetime would be 'self, if it existed)
>can't return ItemHandle from push more than once, because fn push<'a>(&mut self, t: T) -> ItemHandle<'a,T> will require that the lifetime of &mut self outlive 'a
I've tried several ways to use unsafe code to get around these issues, but they all got unruly and error prone very fast, so I'm wondering if there is a technique I don't know about to this (without creating my own linked list).
Anonymous No.106032203 [Report] >>106033426
>>106031459
try doing it in Haskell
Anonymous No.106032780 [Report] >>106033131
// Why does Microshit insist on this:

class Program
{
// Stuff
}

// When this is obviously better:

class Program {
// Stuff
}
Anonymous No.106032790 [Report]
what if
class Program
}
Anonymous No.106032921 [Report] >>106032962 >>106033321
Spent 3 hours today programming and got one single shitty thing done, yet I'm supposed to complete a decently sized program in 1 month for my summer class for college. Nevermind also completing a lengthy report as well. This is such fucking bs. All my friends in business or economics just write something a couple of days before the deadline and pass their classes. In programming you could write for a fucking month and still not have one tenth of your program done.
Anonymous No.106032962 [Report]
>>106032921
its not bs if half your class manages it
maybe you didnt pay attention in class
Anonymous No.106033131 [Report] >>106034306
>>106032780
>t. nocoder
Anonymous No.106033321 [Report] >>106033846
>>106032921
what's the program you want to write and in what language?
maybe you didn't properly decomposed your program into adequate data structures and state, function,, layers, subsystems in a way that would make you progress, reuse code, build something above something else, avoid too much friction and low code reuse, etc..
Anonymous No.106033347 [Report]
>106031459
maybe im not cut out for this coding stuff
Anonymous No.106033426 [Report] >>106033432
>>106032203
The entire reason for using std::hive is performance, Haskell is the antithesis of performance and as such trying to implement performant data structures would be a waste of time.
Anonymous No.106033432 [Report] >>106033437
>>106033426
>preprogrammed vibe-thought NPC response
Anonymous No.106033437 [Report]
>>106033432
Throw that reply into your slow ass garbage collector.
Anonymous No.106033664 [Report] >>106033684
you vill vrite haskell
Anonymous No.106033684 [Report] >>106033706
>>106033664
even SPJ won't anymore
Anonymous No.106033706 [Report]
>>106033684
Anonymous No.106033812 [Report]
>>106031459
>Hive is a formalisation, extension and optimization of what is typically known as a 'bucket array' or 'object pool' container in game programming circles. [...]

>The concept of a bucket array is: you have multiple memory blocks of elements, and a boolean token for each element which denotes whether or not that element is 'active' or 'erased' - commonly known as a skipfield. If it is 'erased', it is skipped over during iteration. When all elements in a block are erased, the block is removed, so that iteration does not lose performance by having to skip empty blocks. If an insertion occurs when all the blocks are full, a new memory block is allocated.

Why is this in the standard library?
Anonymous No.106033846 [Report] >>106034000
>>106033321
I chose to build a tax calculator program for ten countries from Europe, including options for tax credits and also including standard tax cut off rates and other options. The class requires me to use Java. I also have to create a GUI for it and to use version control so that my lecturer can sees my progress.
Anonymous No.106034000 [Report] >>106034587
>>106033846
It's kind of a simple program then, what I said doesn't really apply as much then.
>and to use version control so that my lecturer can sees my progress.
I understand you have to but that's the last thing you should think about
>a tax calculator program for ten countries from Europe, including options for tax credits and also including standard tax cut off rates and other options.
I don't know what this involves. Is it just a GUI with a fixed set of input fields (where the input is simple numbers) and boolean button for the options? does the input can take expresssions that you need to parse and evaluate? do you need to implement a mini-spreadsheet?
Anonymous No.106034175 [Report]
Does anyone know if any of gelbooru / danboru etc. provide an api / a way to reverse search an image by its hash? I wrote a tagging application and its very very manual at the moment I'm looking for ways to cut down on the manual tagging. Or is there a image classifier that I could use for this? I mean you think given the size of all the boorus there would be some neural network classifier you could plug in that would be useful for tagging?
Anonymous No.106034306 [Report]
>>106033131
I don't use Microsoft style because it's stupid
Anonymous No.106034587 [Report]
>>106034000
Its up to me how the program works, there are no set guidelines as to how the program should be built. But complexity does give you a better marking. Anything too simple will not get a pass. I pretty much have to figure out everything.
Anonymous No.106034666 [Report] >>106034738 >>106034743 >>106034758 >>106034870
Roughly how many total hours are recommended in order to build a solid project to display on my github portfolio? I am trying to build a portfolio for job seeking.
Anonymous No.106034738 [Report]
>>106034666
minimum 3000 hours
Anonymous No.106034743 [Report]
>>106034666
Over 9000
Anonymous No.106034758 [Report] >>106034861
>>106034666
Wrong metric. Make something useful instead of thinking about hours.
Anonymous No.106034861 [Report] >>106035078 >>106035557
>>106034758
Something very simple can be useful. Thats really stupid advice.
Anonymous No.106034870 [Report] >>106034918
>>106034666
6 million
Anonymous No.106034918 [Report]
>>106034870
with interests
Anonymous No.106034953 [Report]
can i land a job if i build a github portfolio with rust only
Anonymous No.106035078 [Report] >>106035542
>>106034861
>Something very simple can be useful
And?
Anonymous No.106035542 [Report] >>106035557
>>106035078
And you're retarded.
Anonymous No.106035557 [Report]
>>106034861
>>106035542
Two of the dumbest posts I've ever seen on 4chan
Anonymous No.106036227 [Report] >>106036339 >>106036372 >>106036493
I want to learn more about lower level systems and how computers function
Anonymous No.106036339 [Report]
>>106036227
no you don't
Anonymous No.106036372 [Report]
>>106036227
If you did you would be reading technical pdfs already instead of posting here
Anonymous No.106036493 [Report]
>>106036227
It is impossible to learn anything.
Anonymous No.106036629 [Report] >>106037060 >>106037507
watching other people debug makes me feel a lot less like an imposter....
Anonymous No.106037060 [Report] >>106037155
>>106036629
Once I watched a 2h video on youtube of a guy trying to debug its emulator. Turns out, after almost 2 hours of walking over and over over the code, he had used "1" instead "i" somewhere. In a loop I think.
Anonymous No.106037155 [Report]
>>106037060
Yeah, first step is always a regression test. But that also means you need to break your commits down into smaller pieces. Nothing worse than a regressing before a commit and seeing +932849 -50 on the commit that introduced the problem.
Although, I'm not doing that atomic commit shit.
Anonymous No.106037421 [Report]
>>105993021
appearing busy and having an excuse not to actually work on a game
Anonymous No.106037507 [Report]
>>106036629
speaking of imposters. you ever learn about what they have to do with "3d model collages" or have you seen the among us character in the apl language?
Anonymous No.106037544 [Report] >>106037703 >>106037724
Which books to read for distributed systems if I know nothing about them?
Anonymous No.106037703 [Report]
>>106037544
distributed systems as in a large processor. or instrumenting several dumb systems with a smart one. or having specific tasks for different hardware and failsafe stuff? are you programming or managing them? dabbling in general? i have over 1k books on it and related
Anonymous No.106037724 [Report]
>>106037544
Distributed Systems (4th Edition) (Maarten van Steen, Andrew S. Tanenbaum)
Anonymous No.106037754 [Report]
I have started using tauri for a simple screenshotting app and it's kind of cozy getting it up and running, even though I think it takes way too much ram for the default app (80mb??). It was learn this or gtk and use c, which is fine, but seems about 7x more work and I've got other shit I want to make.

I feel like a part of the problem. But also I'm not getting paid so, whatever?
Anonymous No.106038134 [Report] >>106038163
Uhm,
I have built a pipelined RISC-V CPU with classic 5 stage RISC pipeline and rv32i ISA. Now with interrupts and sprites running a simple cooperative scheduler and displaying shit on vga.
I don't have pixel perfect positioning yet (it's just a 40x30 matrix with 8x8 sprites, no full framebuffer).

I feel really bad because I struggle really fucking hard, coming up to this point (almost entirely from scratch, just reusing a bit of code from an old CPU, like instruction decode) and this shit took me 4 weeks incredible hustle. I am so fucking obsessed with it. i hate it, but i can't let go.
Lets kode more.
Anonymous No.106038163 [Report] >>106038271 >>106038286
>>106038134
Tell me more, this seems pretty cool
Anonymous No.106038271 [Report] >>106038286
>>106038163
I am using this FPGA straight out of DEUTSCHLAND on a devboard from olimex. GatemateA1.
It's pretty comfy. Not very fast, but has already vga and PS/2 port on. For now I am just playing a bit around.
My rv32i instructions are risc-v compliant, just still struggle a bit with privilege levels still (ebreak and ecall), so there are still errors in my interrupt handling somewhere.
I also wanted to use rust, but i don't even know much rust and this gives even more struggle. So now I will play around a bit, fix things, probably add PS/2 and SDcard (or some other persistent memory) soon (tm) and then the ultimate dream goal would be to write a custom assembler for rv32i and from there on just build fucking everything and bootstrap that little bitch. But I don't know if I have the balls to do it.
Also I fucking need to attach a floppy drive. ASAP actually
Anonymous No.106038286 [Report]
>>106038163
>>106038271
Currently running at 25 MHz btw with 2-3 CPI (not tested yet, but my pipeline is really bad still).
64kB RAM (might extend with 32Mb PSRAM that I have on board).
Anonymous No.106039408 [Report] >>106039499
Anyone know of more projects like this
https://github.com/eclipse-langium/langium
https://github.com/Ghost4Man/DSLToolsGen
https://github.com/adclz/auto-lsp/

The idea of automatically creating IDE tools for a language from its grammar and some configuration is very intriguing.
Anonymous No.106039499 [Report]
>>106039408
Treesitter + Emacs have had this for years
Anonymous No.106040881 [Report]
monad