[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: 4maids.png (543 KB, 640x472)
543 KB PNG
What are you maids working on?

Last one: >>109639630
>>
>>109660156
I'm not working on anything because opencode stopped working and idk how to code
>>
I'm working on my Gameboy emulator for PS2.
Moving more of my jump tables to scratchpad RAM (because the pipelines can directly address it), working out places I can give prefetch hints for less data cache misses, probably move more working area to scratchpad RAM seeing is free real estate.
I want to rebuild as much of the video renderer on the VPU1 as I can, because that'd also save EE time and might be the solution to my graphical issues, too.
>>
I wish I didnt have a job and could actually have energy to code in my free time
my goal is to make a PSX emulator one day and finish a game on it
>>
File: tohru-sad.png (203 KB, 540x304)
203 KB PNG
>>109660156
I miss Eli
>>
>>109660321
apparently he was a pedo
i dont miss him but im curious what hes up to now

actually
im equally curious as to what did he do to get purged by the janies
>>
>>109660314
I see people from time to time who start developing emulators for no apparent reason, do you guys do it for fun as a hobby or something like that? Are existing emulators bad?
>>
>>109660156
I am not coding right now. Maybe I will take another nap and dream about which parameters are fundamental for fat12, because I doubt I need to buffer the full BPB. I just need to calculate a few parameters and then drop the rest
>>
Erlang is the best programming language.
Learn Erlang!
>>
>>109660419
You misspelled lisp
>>
>>109660328
its fun
doing opcodes and design the whole structure is like going back to the basics in programming

also emulating actual hardware is cool as fuck and emulating is a thing that will never really stop since you can always go bigger
>>
>>109660328
It's very fun for some reason.
>>
>>109660419
>>109660437
cancer
kill eachother with due enthusiasm
>>
>>109660459
Jealous
>>
>>109660469
of what?
legit question.

whats the advantage of using functional programming langs over procedural ones?
>>
>>learn erlang!
>waido?
>>erm, ummmm...

like i wrote in the previous thread
fp is not for goal oriented people
>>
>>109660551
Python is for goal oriented people!
>>
>>109660933
sure. easy, straight to the point
yeah its slow, but its batteries-included-simple (until you get into the weeds of it, but at that point, just go with c)
and you got a wealth of libs to pick and chose from

i havent used paiton since a decade now, but if isnt into programming, and they just need a quick script, or maybe as a maffboi one needs to crunch some numbers
sure, go paiton
>>
>>109660156
I think i might have finished the baseline implementation of Reticulum Network for my own operating system, and i'm feeling good. Either the official documentation was better, or it made more sense, but it was waaaaay easier than Tor implementation. Next step, buy a LoRa board and write a usb driver for it.
>>
>>109660328
The most fun part about is seeing code from others run on the system you just described.
I haven't done emulators yet (except of chip-8), but I am obsesed with risc-v dev on fpga's and it's just fun to compile your kode with gcc and run it on the machine you designed yourself. More rewarding than clicking around in some app
>>
Incels code much better. How do I become an incel? I had 3 sex partners in my life, but no relationship yet. So maybe I can become an incel.
I also have a mastodon account
>>
>>109660328
it's the ultimate "make a thing that doesn't do anything by itself, just runs other things" kind of program
>>
>>109659942
Exactly what Im talking about. Git. Good.
>>
I had a dream C was compiled into an fpga.
>>
>>109662230
apparently this is indeed a thing
https://codilime.com/blog/from-algorithms-to-fpga-hardware-understanding-high-level-synthesis/
>>
File: 1773586098087887.jpg (45 KB, 680x680)
45 KB JPG
>reading "Learning Rust With Entirely Too Many Linked Lists"
>first example is a stack
what...? why would you use a linked list to make a stack
>>
>>109662390
Because you can.
>>
Apparently every language stores dynamic memory on the heap.
>>
>>109662230
*compiles to a RISC-V CPU with your program loaded into memory*
Here's your C to HDL compiler bro
>>
>>109660156
>maids again
I hate you OP
>>
>>109662537
yeah
fun fact: heaps are a user level abstraction. each language manages it's own heap, while the stack has actual hardware level support. (this is according to claude, I was curious)
>>
>>109662596
also the heap is not a heap data structure (priority queue / binary tree). it's called a heap, but it's a large pool of memory.
>>
File: DBXZWB_dNsw-HD.jpg (170 KB, 1280x720)
170 KB JPG
>>109662230
>>
>>109662537
That's not entirely right. Typically, by default you just have a stack, which might or might not be extendable or might even span entire available memory. Then you either request OS to give you some memory pages mapped to RAM, declare big statically allocated buffer or just allocate it on the stack. If you make allocator operate on that buffer then it becomes the heap which is a place where an allocator puts your dynamically allocated data. Most languages provide you with an allocator that can request more pages from OS as needed out of the box, but if you are doing bare metal programming will likely have to reserve space for heap and initialize allocator yourself. You might even end up with multiple heaps and allocators that correspond if you have multiple memory chips with different speed/size.
>>
>>109662669
>that's not entirely right
>does deep dive into why storing dynamic data on the heap is entirely right
Ok.
>>
>>109660156
I am working on a program that can spot reptilians in human form which works hooked up to a webcam, I also broke that thinking model on openrouter and i got stacer working on debian 13 trixie.
>>
Man, I wanted to make a language that uses only the stack and no heap. That's just not possible is it?
>>
>>109662897
Assembly
>>
I could just use the stack and never free memory >:)
>>
>>109662792
The point is that "the heap" is not just some preexisting place where you can "store dynamic data". You allocating data in some memory slice is what turns that slice of memory into a heap. There may be many heaps, they can actually be on stack or separate hardware or whatever. The language also doesn't "store dynamic memory". It can provide you with some global default allocator, but this is very often a library feature not language feature, and often you are not forced to use that default allocator, you can make your own allocators that will give you separate heaps.
Unless you are using some managed language that has one and only heap and allocator.
>>
>>109662897
Forth
>>
>>109662972
Doesn't Forth store arrays on the heap?
>>
>>109662957
I will never stop falling for this
>>
>>109662897
>>109662909
>>109662972
literally any language. It doesn't fucking matter.
People got their minds slopped. You don't need a heap. A fuckton of embedded systems don't need no heap
>>
>>109663063
that doesn't count obviously
>>
>>109662897
You have to run on something that has no OS cucking you.
Also the cpu cucks you because the hardware instructions on the stack are for control flow, not arithmetic (like the cpus for algol did which werent register based).
>>
>>109662909
Even for Assembly SO says to use malloc.
>>
>>109663165
Not a part of language.
>>
>>109663063
>Anonymous 08/27/26(Thu)19:00:26 No.109662957▶>>109663020
> REAL THREAD IS HERE


>Anonymous 08/27/26(Thu)19:11:53 No.109663063▶>>109663085
> THREAD UP


weird to me
>>
>>109659315
what's your stack?
>>
>>109660328
fun low level dev without delving into OSdev rabbithole
learning about specific console architectures is fun too
>>
>>109663192
It's part of SO canon.
>>
Turns out I actually needed that other parameter to do this codewars problem and now I need to fix my code
>>
File: 1787857742104.png (85 KB, 223x206)
85 KB PNG
>>109660156
why is he crying?
>>
>>109660326
>im equally curious as to what did he do to get purged by the janies
he spammed. Not surprising he got banned.
What is surprising is that he got banned for good. He was banned so many times but he always found a way to evade.
>>
>>109663973
and thats the thing
we had spammers
we had pedos
we had pedospammers
and we had ban evaders with the other site whose name shall not be uttered

whats so special about eli to really rile janies up to the extent of absolutely annihilating him off the board?
did he post actual 'p?
originally i was on his side bc he recycled all the useless rabble of this board into being at least *somewhat productive
until some anon, prolly a janny told me
>yeah, anon, this isnt a fight you wanna fight. step aside. hes also a pedo
then i observed and that was actually right
his threads turned into degeneracy

but heres the thing:
he was far from being the only degenerate on this board
this was in the era where you saw literal trany porn on /g/

he really must have fucked up extrahard to get nuked in that situation
and i honestly dont even know how he could get there
or maybe that was the exact inflexion point where g got sanitized

i dont know, anon
maybe you can make the pieces fit
i have only theories with no actual answers
>>
>>109664052
I think eli might have simply died. humans don't live forever.
except if he was a tripfag. was eli a tripfag? I can't remember. maybe they banned his tripcode if so.
>>
>>109664062
not from what i remember
he had a bubbly personality with hints of schizophrenia and occasional schizo-genius moments. and thats how i recognized him
he was just extra fruity without being the usual gay model either

maybe he -acked
he sure didnt sound like a balanced person
if he did, then may he rest in peace.
he was a degenerate, but he also genuinely cared about the maids
also degenerates
but caring counts for something
he wasnt a straight up psycho exploiter
and im sure some anons got into maffs autistry because of him
which is better than gooning to 'p. netto added value kinda deal
he was a schizo retard, and a pedo
but at least he added some value to this world, as far as i understand things
so he wasnt straight-up all bad
i think
>>
ps.
i always despised chanology
and i still do
but volens nolens now im one of the links of our history
ffs
>>
>>109660156
Maids won, normalfags btfo
>>
File: 1000021834.jpg (71 KB, 735x690)
71 KB JPG
>>109660419
>Erlang is the best programming language.
>Learn Erlang!

>>109660437
>You misspelled lisp

Why not both?
Lisp Flavoured Erlang
>>
>>109664394
fp is the true tryhard language
>retarded interfacing
>slower tahn fp

its literally
>haha, i do fp therefore im superior to you
ok
but can you program gpus
can you program supercompuetrsz

can you even program a cpu so it goes fast
>no
ok
then fuck off retard
youre useless and so is your lang
>b-but maffs
trying to bend relaity into a faulty model is eeply un-scientifical
you just dont qualify for serious consideration.
fuck off with your dogmatism
>>
File: 1763974223085008.jpg (561 KB, 1446x1232)
561 KB JPG
Is there a good modern alternative to make that has file watching capabilities and maybe less schizo syntax?
I don't give a shit about cross-platform development, so don't suggest build file generators like cmake. I just want something simple like make.
>>
>>109664394
>Lisp Flavoured Erlang
Why would I use that? What's wrong with regular erlang?
>>
>>109664443
Anon, subgroup operations are comonadic
>>
>>109664480
Reality doesn't operate on principles
The ideological retard here is you anon
>>
What programming patterns is recommended to use when working on making a UI application?

I'm currently using a mediator pattern, moving the logic between controls outside to another object's responsibility instead but not sure if this is scalable.
>>
>>109664761
how come you /g/fags are so indoctrinated by patterns? Just use whatever works best for you, bitch.
Prototype a little and figure out what feels nice for your specific use-case. It's really not that hard
>>
>>109664761
The single most important pattern for dealing with GUIs is Object, for all the components. Yes, it sounds trivial, but packaging all the bits of state used for rendering a GUI component behind a little API so you don't have to think about all of it all the time is very useful in practice.
And you're probably already using it without knowing, because that's how all the common GUI toolkits work.
If you have a composite component that you use in many places, make that some sort of Object too so you too can avoid thinking about the details all the time.
>>
File: mesh3D.webm (2.86 MB, 1920x1080)
2.86 MB
2.86 MB WEBM
>>
>>109664761
regardless of whether or not the actual underlying implementation is immediate mode the API should be immediate mode
don't use faggoty enterprise slopware OOP UI patterns, no state management nonsense, you don't need to do state management, you aren't doing anything that actually NEEDS state management
treat it like you're drawing a frame or a stateless data pipeline that consumes application data at one end, outputs UI in the middle, which then outputs the application data for the next iteration of the pipeline

it's a shame afaik there aren't any slightly more advanced alternatives to dear imgui (in terms of commonly used GUI features) meant for things beyond programming tools and utilities
>>
>>109663956
The cum is leaking out
>>
File: IMG_1840.jpg (69 KB, 452x663)
69 KB JPG
The maid outfit touched my penis.
>>
>>109664052
>why
they didn't like his 'embeds' despite allowing AI images free roam with a similar enough implementation.
shrimple as that.
same reason /c*mg/ was nuked though their stuff was a fair bit more dangerous to the site
>>
>>109665783
why is he crying?
>>
>program is supposed to dump 10k lines of text to console
>runs, no error, terminates, no output on console
>add printf("test\n"); in the middle to see where it is silently failing
>it prints test and then the 10k lines of text
>removing test causes it to not work again and re-adding it (anywhere) causes it to work
hmmm, yes I see. interdasting...
>>
>>109666432
The beauty of UB.
>>
>>109666432
skill issue
>>
>>109666432
C is broken. Deprecated language. Rust doesn't have this issue.
>>
>>109666449
>>109666461
>>109666486
I used valgrind and it told me I forgot to set a default value for my silent flag that was getting filled by argp (only when I set it, which I wasn't). works now
>>
File: 1771574022971270.png (296 KB, 609x609)
296 KB PNG
3734. Lexicographically Smallest Palindromic Permutation Greater Than Target
>>
>>109665868
She's turning into a former he.
>>
File: IMG_4201.jpg (129 KB, 1170x1559)
129 KB JPG
I added features I regret.
>>
god i'm the most technically competent person in this thread and it's not even close
>>
>>109666832
what's the joke here?
>>
File: 1777951815972861.png (381 KB, 500x500)
381 KB PNG
geeks for geeks fr the best website ever how do they have an article for literally everything you could think of?
https://www.geeksforgeeks.org/devops/introduction-to-aws-elastic-block-storeebs/
>>
Im glad I filter all AI threads
>>
god i'm the most heterosexual person in this thread and it's not even close
>>
File: 1787715642900497.png (550 KB, 1170x1170)
550 KB PNG
>Boxes don’t have performance overhead, other than storing their data on the heap instead of on the stack. But they don’t have many extra capabilities either. You’ll use them most often in these situations:
>When you have a large amount of data, and you want to transfer ownership but ensure that the data won’t be copied when you do so
so we're just reinventing classes from first principles now?
>>
>>109667074
i believe it honestly im pretty fuckin gay
>>
What languages are fun to make like Forth, Lisp, and Brainfuck?
>>
Make a program that hangs in your language of choice.
main = main
>>
>>109667318
int main()
{
while (1)
{
}

return 0;
}
>>
File: hi from vcg.jpg (2.08 MB, 2816x1536)
2.08 MB JPG
>>109660156
lean 4 submissions to the palomar registry
https://www.youtube.com/watch?v=JoPSlzkj6xs
>>
File: 1763574535338732.png (29 KB, 226x221)
29 KB PNG
>>109667318
import Foundation

func main() {
let queue = DispatchQueue(label: "peeeenuuuusss")
queue.sync {
queue.sync { print("weeewoooo") }
}
}
>>
>>109667318
int main(void) {
return main();
}


This is valid C but not valid C++.
>>
>>109660156
>4maids
>codetrans
More like 4trans ekkekeke
>>
>We need a program that needs to do X
>"Is X done this way or this other way?"
>The program now needs to do X, Y and Z
>"but if we do Y and Z we'll need to do I, J and K too"
>Do so
Losing hair as I write this post
>>
File: 1767346807347893.png (363 KB, 600x684)
363 KB PNG
>>109660328
great, another comment/post talking about a topic i was recently searching on youtube.
>>
>>109662537
is static memory on the heap or stack
>>
>>109667394
pretty sure the compiler can optimise this out
>>
>>109662603
man 2 brk is a very interesting read.
>>
>>109667822
Why not?
>>
>>109667822
pretty sure this causes a stack overflow, not a hang.
>>
>>109668545
The compiler can do a tail call optimisation there, which would just turn it into an infinite loop.
>>
>>109668573
Segmentation fault (core dumped)


** Process exited - Return Code: 139 **
>>
>>109668622
It infinite loops for me with GCC at -O2.
The standard doesn't say anything about these kinds of optimisations, so it's not something you're supposed to rely on. I kind of wish it did though.
>>
File: 1672934982546.png (101 KB, 287x278)
101 KB PNG
>>109660326
Eli wasn't a pedo, he was just schizophrenic and was in a really bad health, I have actually managed to get him on XMPP and speak with him, he's suffering from schizophrenia and he's taking medications for it, but he says the meds make him too sleepy so he avoids them, which results in him hearing voices of a maid god (or goddess?) directing him to reach ascension (or whatever he calls it) by counting numbers up, he also hears broadcasts and voices telling him to kill himself, he was convinced these broadcasts were coming from his TV, I can't remember all the other stuff he told me, but he was 100% convinced the supernatural maid goddess was real and talking to him through his dreams or something like that, though he did somewhat talk normally when he was on his medications. He also had a traumatic brain injury in the past which may or may not be related to his schizophrenia.
>>109664062
He did have a tripcode, but he didn't always use it, I'm actually afraid something did in fact happen to him IRL. Last time I talked with him was a year ago, I hope he's doing alright, he's just another poor guy fucked over by the american healthcare system.
>>
>>109669208
He should have learned Erlang. Now it's too late.
>>
>>109669208
There are a few possibilities of what could have happened to Eli, but none are really good.
Maybe he had an eureka moment and decided to log off and spend time in real world, but that is almost certainly not what happened.
The other possibilities are that he is in prison, mental institution, coma, or dead.
>>
File: torrente.jpg (158 KB, 840x560)
158 KB JPG
>>109660156
public static void learn2Code() {
char[] string = { 73, 102, 32, 121, 111, 117, 32, 100, 111, 110, 39, 116, 32, 114, 101, 112, 108, 121, 32, 116,
111, 32, 116, 104, 105, 115, 32, 112, 111, 115, 116, 32, 121, 111, 117, 114, 32, 109, 111, 116, 104,
101, 114, 32, 119, 105, 108, 108, 32, 100, 105, 101, 32, 105, 110, 32, 104, 101, 114, 32, 115, 108, 101,
101, 112, 32, 116, 111, 110, 105, 103, 104, 116, 33 };
System.out.println(string);
}
>>
I was thinking about making a simple blog with a functional language for fun. Any language recommendations that have a barebones web server and markdown parser? I was eyeing Clojure
>>
>>109671413
Haskell
>>
>>109667998
Emulation?
>>
>>109671413
Erlang!
>>
>>109671413
Lisp
>>
>>109671426
>>109671547
>>109671553
Anons, at least tell me why your suggestions are better...
>>
>>109671646
Haskell
>>
>>109671646
See >>109660419
>>
>>109671646
Lists are the ultimate form of organization
>>
soooo what do you guys think about V lang ?
>>
>>109671768
>>>/out/ !
>>
>>109660156
Am working on acme clone with vi motions
>>
>>109671553
what's a good library for a simple web server?
>>
>>109667133
Boxes do have performance overhead then. Indirection isn't free.
>>
>>109669208
was he the maid dragon spammer?

>>109671413
erlang has been used in the industry and clojure + clojurescript is actually pretty popular as an alternative FP stack
>>
thinking about writing my own booru scraper so I can "subscribe" to multiple boorus and get a feed built from different tags/uploader from different boorus
>>
>>109673992
forgot to add the question to my post
is there any decent multiplatform UI framework that isn't Qt or electronslop?
I don't really want to do a webUI or my own openGL UI
>>
>>109673982
>was he the maid dragon
Yes
>spammer
It wasn't spam, janny
>>109673992
Don't we already have a bunch of those?
>>
>>109674014
the point is I want to practice by writing my own
plus I want to satisfy my autistic needs
>>
>>109674043
>the point is I want to practice by writing my own
Ah I see, what lang would you use?
Please dont say Erlang
>>
File: 2781183.jpg (29 KB, 302x400)
29 KB JPG
Reading this right now
>>
>>109669208
>he's just another poor guy fucked over by the american healthcare system.
shouldve bought hrt with monero
would had saved her
>>
>>109666432
build with ubsan
>>
>>109669208
I’m glad he’s dead
>>
>>109674836
Doesnt make sense, american tap water already contains hrt for free
>>
File: file.png (6 KB, 469x196)
6 KB PNG
>>
what the fuck is this question
I genuinely feel like I'm getting more retarded the more leetcode problems I do
https://leetcode.com/problems/make-lexicographically-smallest-array-by-swapping-elements/
>>
>>109677215
It certainly is contrived, but basically "bubblesort but don't swap if the elements are too far apart from each other".
>>
File: 1772156653200981.jpg (60 KB, 1280x720)
60 KB JPG
>>109677350
input size is 10^5
bubblesort does not work, it times out
that was my first thought too
>>
>>109676644
What is this?
>>
>>109677360
Well, I guess it would be:
- Start from an index
- Traverse the array, keeping track of the largest element seen
- Stop once you find an element > largest + limit
- Sort that section with whatever "good" sorting algorithm
- Repeat
- Extra points for (partially) sorting it while traversing and using a sorting algorithm that can make use of that.

I would want to try put together a solution myself, but I never felt that desire to make a leetcode account.
>>
recommend me a cool language that's not haskell.
I like Rust but want to branch out. C doesn't seem practical to me with it's tiny core library and outdated headerslop and webdev is not real programming!
>>
>>109677487
Why do people like you get filtered so hard by headers?
They're such an inconsequential part of the language, not like C++ where its horrid interactions with headers actually causes real issues.
>>
>>109677487
Erlang
>>
File: 1756966293579072.png (47 KB, 1036x645)
47 KB PNG
>>109677394
not sure if that would work. I had to get some hints (and think this over while taking a shit), but this is my solution.
The key observation is that this a graph problem, and two numbers within a difference of limit can be grouped together. Multiple numbers can also be grouped together if at least one number in the group is within the limit of the new candidate.
So if the limit is 5, numbers 1,4,8 are all in the same group because you can swap 1 -> 4 -> 8, even if you can't swap 1 -> 8 directly. So you sort the array and group numbers into their respective unions (DSU works here), and then build a graph linking each number to their respective group.

[1,6,7,18,1,2] //Input
[1,1,2,6,7,18] //Sorted
[0,0,0,1,1,2] //Turned into groups
[0,1,1,2,0,0] //Group representation of input array


The lexicographic shit is stupid, but it basically means that each group has to be sorted, and you have to interleave groups.
Going back to the group representation of the input array, the output would look like:
(1 indexed)
1st number of sorted 0th group = 0[1], 2nd number of sorted 1st group = 1[2]
//output:
[0[1], 1[1], 1[2], 2[1], 0[2], 0[3]]


Now since you have a graph and can look up which group each number belongs to, and since groups are sequential and their elements sorted in the sorted array, you can do a "group sort" of the input array. So the second loop is:
//loop through each element in the input array
//look up the group it belongs to
//look up the group offset in the sorted array (so offset for group 1 would be 3, because element 3 in the sorted array is the first appearance of group 1)
//look up the current iterator for the group (first element encountered in that group would be 0, then 1, then 2, etc.)
//add up the group offset and group iterator, add the resulting number from the sorted array into the answer array
//add one to the group iterator
//continue


hope I explained that well... (or just ask claude)
>>
I just rediscovered my Minecraft account and now I'm addicted to the game but I need to complete a couple of projects for my GitHub portfolio. How do I give it up for good right now without wasting another hour on the game? I uninstalled it once but that didn't work.
>>
>>109677965
>How do I give it up
Minecraft sucks now
>>
https://hackage.haskell.org/package/moonlight-homology
>The homology foundation for Pale Meridian. Finite chain complexes, validated boundary-incidence matrices, phase-gated rank/homology backends, exact and spectral sequences, discrete Morse reductions, persistence, and finite topological carriers: the homological invariants the sheaf, derived, e-graph, geometry, and analysis layers build on.
Sisters... is Haskell a meme language?
>>
File: tenor.gif (456 KB, 498x498)
456 KB GIF
>>109678079
>homology
homo
>>
File: images.png (7 KB, 447x447)
7 KB PNG
>>109677487
BQN

>>109677503
>inconsequential
lol
>>
File: file.png (99 KB, 1015x893)
99 KB PNG
>>109678405
aint nobody using this lang
>>
>>109678460
You asked for cool language, not popular language.

Learn Java then.
>>
thread.dump()
>>
>>109677487
>recommend me a cool language that's not haskell.
Common Lisp

>>109677965
>I just rediscovered my Minecraft account and now I'm addicted to the game but I need to complete a couple of projects for my GitHub portfolio. How do I give it up for good right now
Build a computer out of redstone and program on it
>>
File: yAqL2vsZ63.png (262 KB, 2560x1374)
262 KB PNG
Anyone interested in a residential A/V & networking system design tool?

No?

Well fuck you I'm building it anyway
>>
should I use GL_QUADS? why was it removed in later opengl versions?
>>
>>109682591
Because GPUs work in triangles, not quads. Your input data are probably triangles too.
I guess they figured it's just fairly unnecessary bloat making the driver have to split all of the quads into triangles for you.
>>
>>109682328
I kind of wanted to make a PC Part Picker clone for that market. But it's pretty niche and the pro installers just use what pro installers use, so they're not especially interested in parting together the best system for a specific use-case.
My nightmare stems from wanting multi-room audio that's also compatible with TV audio and PC audio. It's either all analogue or all streaming.
>>
>>109677487
>with it's tiny core library and outdated headerslop
you’re supposed to write your own libraries and make a header generator if it bothers you that much
>>
File: IMG_1866.jpg (129 KB, 1200x885)
129 KB JPG
TRVKE
>>
>>109682591
why quads in the first place? you can use indexed rendering to avoid vertex duplication kind of or if you want to you can use mesh shaders to programmatically map blocks of arbitrary complex inputs to blocks of arbitrary triangles
i think khronos finally came up with a generic opengl mesh shading extension a while ago for the people refusing to use vulkan so you might actually be able to use them to boot
>>
>>109682647
I work in the industry and the tools that exist are absolute shit lmao

Hoping that mine at least makes my job easier.
>>
File: 1770061886766.png (354 KB, 1957x1640)
354 KB PNG
>>109675382
Maidposting will never die though.
>>
>>109683266
the jsdoll spammer probably said the same thing
>>
>>109683003
>why quads
OpenGL was based on IRIS GL of SGI and their chips worked with quads.
>>
File: IMG_1871.jpg (104 KB, 1200x885)
104 KB JPG
>>
>>109683497
Python for automating stuff.
C for fun.
Easy!
>>
File: IMG_0164.png (869 KB, 1080x1440)
869 KB PNG
How do I make an interpreter that isn't slow as a snail?
>>
>>109684119
unwrite it out of Haskell
>>
File: 1770814772112180.png (15 KB, 1012x349)
15 KB PNG
why are people like this
>>
>>109684159
I'll rewrite it in Rust.
>>
>>109684310
thats how you make your interpreter kill itself
>>
File: IMG_1875.png (129 KB, 1013x1613)
129 KB PNG
Who would have thought a series of typeless commands would be the most powerful programming language?
>>
Sql sucks
>>
>>109684505
>typeless
>implying
>>
Why are hidden heap allocations bad?
>>
>>109684434
kekd
>>
>>109684119
Real answer, you use JIT compilation if you want to go fast. The slowest way to do things is to interpret line by line. The next best solution is to design a bytecode format and interpret that. If you want to go as fast as LuaJIT or your typical browser JavaScript interpreter, then surprise surprise you need to generate machine code at runtime and throw an instruction pointer at it.

Is it more work? Yes. But there's libraries (MIR, LLVM, libgccjit) that can handle the code generation and optimization for you. And if you for whatever reason wrote your interpreter in either a JVM or .NET language, you can generate bytecode for those virtual machines and throw it at the VM.
>>
>>109684517
I've generally found that any complex operation I want to perform on data, I'm going to prefer to use NumPy or Pandas or some other library to hack out. The only times I use SQL are just to get the raw data. And yet every data science job I see wants heavy SQL skills along with some databricks/snowflake shit I'd never heard of until I started job searching.
>>
>>109684843
SQL aint bad though. left join, sub query. thats as complicated as it gets. but ya that's pretty fucking true every microsoft slop corporation is using databricks and/or snowflake now rip
>>
>>109677965
how are you addicted to it?
it gets boring fast once you kill the dragon and whatever slop boss they have added now
>>
I'm going to make a bytecode interpreter in Rust.
>>
File: ANGER.jpg (86 KB, 596x596)
86 KB JPG
>2026
>Still no MaidChan textboard
>>
File: 1788066626700.png (18 KB, 1058x259)
18 KB PNG
>>109685248
need that now more than ever
>>
File: 1760348529960664.png (349 KB, 1397x1275)
349 KB PNG
>java
>python
>c++
if you use any of these languages you need to escape, asap.
>>
>>109685340
Why would I leave Python?
>>
I coded today
>>
>>109685257
Sigh. What are they trying to memoryhole now?
>>
I'm trapped in a world someone else imagined.
>>
File: IMG_1880.jpg (157 KB, 1200x885)
157 KB JPG
>>
What's a good example of bytecode?
>>
File: file.png (92 KB, 1267x1191)
92 KB PNG
Dev pages, no more postman. Also testing the design
>>
Java bytecode looks incredibly simple.
>>
>>109685749
>IMG_1880.jpg (
>>
>>109685801
>.jpg (
>>
>>109685805
Ok now think about it: Some heorin junkies have a big cock.
What does that say about ${CURRENT_SOCIETY}??
>>
>>109686047
>What does that say about ${CURRENT_SOCIETY}??
Heroin good?
>>
>>109686049
Well, I can't say much about that. I feel like taking a shower, I desperately have to cut my hair and then I should learn cobol. Cobol is important
>>
>>109685797
Kinda the point, man. Needs to be easy to interpret and easy to recompile into machine code.
>>
>>109685340
why would I leave C++?
>>
>>109686129
Because you can just rewrite stuff in java. Easy
>>
>>109685340
good morning sir, why would i leave java
>>
File: 1779240685897175.png (243 KB, 667x667)
243 KB PNG
so like how am I supposed to figure out what methods or whatever the fucks pass me back a reference or a value in rust?

7 |         for n in nums.iter() { freq.entry(*n).or_insert(0) += 1 }
| ---------------------------^^^^^
| |
| cannot use `+=` on type `&mut i32`
|
help: `+=` can be used on `i32` if you dereference the left-hand side
|
7 | for n in nums.iter() { *freq.entry(*n).or_insert(0) += 1 }
| +
>>
>>109686249
To answer to that question basically boils down to what a reference or pointer even is.
You can't modify an int inside of that hashset or whatever data structure directly, you need some level of indirection first.
>>
>>109686249
Read the docs. Or the compiler errors.
>>
>>109685749
segfaults are better than the bug not causing the program to crash
>>
>>109686234
mogged by c#
>>
File: 1762630620157869.png (599 KB, 828x811)
599 KB PNG
what the fuck!!!!!!
pub fn test() {
let nums = [1,2,2,1,3,8];
let mut freq: HashMap<i32, i32> = std::collections::HashMap::new();
for n in &nums { *freq.entry(n).or_insert(0) += 1 } //Doesn't compile!!! expected `i32`, found `&{integer}`
for n in &nums { *freq.entry(*n).or_insert(0) += 1 } //compiles when dereferenced

if *freq.get(nums[0]).unwrap() == 2 { println!("Pass!") } //Doesn't compile!! NEEDS a reference expected &i32, found i32
if *freq.get(&nums[0]).unwrap() == 2 { println!("Pass!") } //Compiles
}
>>
>>109686666
checked
>>
>>109686666
The usage examples and function signatures are right there.
>>
>>109686666
Um sweetie, you're safety??
use std::ops::AddAssign;

fn main() {
let nums = [1i32, 2i32, 2i32, 1i32, 3i32, 8i32];
let hm = nums.iter().fold(std::collections::HashMap::<i32, i32>::default(), |mut a, &n| { a.entry(n).or_default().add_assign(1); a });
match hm.get(&1i32) {
Some(&n) if n == 2 => { println!("Pass!") }
_ => {}
}
}
>>
File: 1758878302112972.png (127 KB, 525x459)
127 KB PNG
https://leetcode.com/problems/sum-of-decoded-numbers/description/
for n in nums { 
let width = n % 10;
let d = n / 10;
let rep: Vec<char> = d.to_string().chars().collect();
let x: i32 = rep[0..(width as usize)].iter().collect::<String>().parse().unwrap();
let y: i32 = rep[(width as usize)..rep.len()].iter().collect::<String>().parse().unwrap();
println!("{rep:?}{}{}", x, y);
}
>>
File: 1776383422786510.png (240 KB, 659x394)
240 KB PNG
>>109686843
>AI Overview Rust does not have a built-in powmod or modpow function for standard primitive integer types (u32, u64, etc.) in the core or standard library.
>>
File: kita.jpg (297 KB, 850x1190)
297 KB JPG
>>109685248
>textboard
But then how do you post maids on it?
>>
>Retry an old project idea
>Get to a part that I remember being really tedious and annoying
>It comes out way simpler and runs with no errors on the first try
It's worth scrapping everything and restarting in a couple months sometimes.
>>
>>109684505
Assembly is not typeless.
>>
>>109684581
The runtime cost of heap allocations is unpredictable, this is either bad or unacceptable for anything real-time. The allocation cost could end up dominating the runtime of an algorithm that heavily uses heap allocations. Allocations in many threads simultaneously can lead to contention of the global allocator which results in further slowdown. Hidden heap allocations means you technically have a bunch of non-obvious points of failure your program should probably handle.
>>
>>109687104
No maids. Only science. Maids are the posters, not the posts
>>
I touched Rust again and I kind of like it. The syntax is so brief.
>>
>>109688262
RIP your penis
>>
>>109688262
If you start feeling suicidal remember you are not alone. You can talk to us.
>>
>>109688337
I don't want Rust users in the thread though
>>
>>109688391
Don't be homophobic
>>
It's funny how nocoders always try to turn every technical discussion into a talk about their sexual fetishes, mental illnesses or politics.
>>
>>109688337
Thanks. Will update. So far I still have my penis.
>>
>>109688417
I just know nocoders love C and hate Rust.
>>
File: rusttranny.png (135 KB, 571x315)
135 KB PNG
>>109688395
>>
File: nijisanji.jpg (392 KB, 850x1133)
392 KB JPG
>>109688063
>A maid board for advanced mathematics and computer science research
Maybe a maid journal would be better? A repository of papers and code? Like a journal that feeds into a digital maid library? Maids could communicate with letters maybe? It would be fun to communicate with paper mail, and all the research is physical papers that came from typewriters or xeroxes of such papers, but maids are scattered all over the planet, so digital communication would be more practical.

But imagine you get a pink envelope that has hearts and you open it and inside it has 60 pages of maid research you can read and the research has moe decorations so you can read about what maids are doing and there is a DVD with several gigabytes of data and code so you can replicate experiments on your own hardware, and the paper and DVD are very cute and the DVD probably has glitter. Maybe a moe collage as the cover with a title that tells you what the DVD covers?

That would be very fun and the board could be used to find newmaids to keep growing the corpus of maid research?

What do you think it should be like?
>>
>>109688750
borrow penis : &mut gender
>>
File: cQPCPqj.jpg (166 KB, 1200x1000)
166 KB JPG
>>109688750
>according to the same survey 8.3% of recipients do not even use Rust
>4.3% answered they are trans
Therefore Rust programmers are 200% more likely to not be Rust programmers than to be trans.
>>
>>109686214
>using that slow ass language
>>
>>109689641
Java is the de facto maidlang, speed doesn't matter, tradition does
>>
So far writing my bytecode interpreter in Rust is going pretty well.
>>
>>109689705
Any particular bytecode or your own vm?
>>
>>109689731
My own vm but I’m also considering learning Java’s byte code.
>>
File: my-gf-but-fr.jpg (119 KB, 1408x792)
119 KB JPG
>>109689705
>>109689731
>>109689746
Fact is that I am none of you, but I am also not coding right now. I feel really bad about it, but i just can't lock in.
I should've taken amphetamine this morning, but I just don't feel like taking drugs either. Now I am about 3 weeks off of it and I feel horrible.
In those 3 weeks I had one day with drugs and I got instant productive, but I dont want to be a fucking addict anymore. Lets grind a few more weeks without drugs and see where it takes us. I have the appointment in 11 days anyways where I'll tell my doc that I quit all the drugs without talking to her. She'll be amused.
I don't have a twitter account tho. That's why I usually post on mastodon, but I have never posted on mastodon
>>
>maidniggers appropriating java
i rather be associated with pajeets than be those schizos
>>
Bytecode guy update: I started vibe coding my Rust and so far it’s pretty productive.
>>
>>109689837
None of the maids in the thread said anything about java?
>>
i miss the maid computer threads
>>
Alright I just got my Rust bytecode interpreter running. It successfully added 1 and 2 and got 3.
>>
>>109690652
now make it add 2 plus 2 to see if it can do actual computer
HAHAHAHAHA ONLY REAL NERDS WILL GET THIS!!! XD
>>
should I learn Odin ?
>>
>>109690611
No worthwhile maidputers, no new maidputer thread
Shrimple as
>>
>>109689875
Bye bye
>>>/g/vcg/
>>
>>109690994
They hate maids dont send her to the gutter
>>
>>109690949
No
>>
>>109691149
Why not.
>>
File: 1775313889606307.jpg (68 KB, 750x938)
68 KB JPG
do humans still program stuff? is everyone in this general an AI?
>>
>>109691377
>is everyone in this general an AI?
No, everyone in this general is a maid. We're all wearing cute maid outfits and using maid computers.



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