What are you maids working on?Last one: >>106865000
For me it's GNU Make, C with GNU extensions and tcl/tk.
>>106908794First for dependency injection is crap and a bloated abstraction of what most languages are already capable of doing if you know how to organize things correctly.Only use case is massive code bases and even then it becomes convoluted.
>>106908949damn I missed it, ok second
>>106908949>>106908963Skill issue.
>>106908949Dependency injection doesn't mean that you have to use an ioc container, which ARE retarded."Dependency Injection" is just oop cargo cult speak for taking things as arguments instead of hard coding access / initilization, which is generally a very good thing to do.You don't want modules to concern themselves with the initilization of their dependencies, just let the caller give you the thing you dependend on and then use it. It's conceptually no different from regular function arguments.With constructor arguments it's just shitty verbose currying.
#define let const auto
Bangmaids should clean and not speak unless spoken to.
>>106909136>"Dependency Injection" is just oop cargo cult speak for taking things as argumentsI've found that getting programmers to understand that functions take arguments is somehow a point of contention for a lot of them.
>>106909302college IT help desk taught me 99% of people want everything to come from nothing.>>106908794nothing right now, but I really want to make something.
>>106908949>dependency injectionisn't it essentially higher order functions?
>>106909328It's literally just an argument to a function. That's LITERALLY all it is.
>>106909233gay
Functions don't exist at the hardware level. It's all CALL PUSH POP RET.
>>106909485it's called an abstraction
>>106909328You have (usually) an interface, and some implementations of that interface. You pass your particular implementation into whatever method and use it, instead of adding the implementation to the code directly as a dependency and using it that way. It's a level of abstraction intended to make swapping out implementations easy. The reason it gets a bad reputation is because it is in the WAGIE SLOP category of programming, so 90% of examples you see of it are someone who didn't know what they were doing blindly applying a pattern in a case where it doesn't apply, such as instances where there is only one implementation of the interface and there will never be more.
Virtual memory is CIA, the OS can perfectly give you a couple 2M pages for your program and stack and instead of malloc you just ask for more pages.
Explain the maid thing to a boomer. Is it some tranny business or is it just enjoying huge anime tiddies?
>>106909930avatarfag schizo mental illnesshttps://desuarchive.org/g/post/106756520
>>106909930IDK but it's probably both Like, maybe some are trannies but others are gooners who hate trannies
>>106910361the fuck
I think there must be another approach to AI different from chat bots/LLM.
>>106910361>average /g/anon
>>106909302>>106909391it's not just passing any argument to a functionfirst, it's (usually) an interface so you can easily pass different implementationssecond, the argument is not just some record with values; it's an object to which some piece of logic is delegated tothird, it's (usually) an argument of the constructor or builder, which is then assigned to a field of the instance, that is then used by methods of that instance
>be me, clueless>zero experience coding>decide to try and teach myself C++>read a bit and watch some tutorials>decide to use vcpkg to get libraries>successfully get a few libraries to load>want to design a program with openCV and CUDA to process images>learn that openCV has CUDA support>great.jpg>openCV with cuda support won't compile with vcpkg>notgreat.jpg>youtube vids later attempt to install opencv[cuda] manually using CMake GUI>compile on VS 2022>no opencv_world*.dll>"error C3861: 'nppGetStreamContext': identifier not found">grok tells me I'm lacking a few CUDA-related header files >spend a few days trying to get the opencv_world.dll file to compile by trying different combinations of older versions of openCV and CUDA>nothing gets the .dll to compile>I'm now causing LLMs to talk in circles>i don't know what to google because I don't have any experience Anyone have advice?
>>106910727https://search.brave.com/search?q=nppGetStreamContext
>>106910727Welcome to C++
>>106908794why does she always have that big shit-eating grin
>>106911298You would too if you were a maid.
What language should I learn?
>>106911298it's a big-cock--eating grin
>>106911374Depends on the languages you already know.In general, I would not recommend learning languages just for the sake of it. Instead, focus on actual technology/area you want to learn (e.g., distributed compute, backend code, robotics/hardware, ML, etc.) and simply learn the most supported language (if you don't already know it) for use with that tech as you go along.There are exceptions to this rule, with some of the languages being somewhat worth learning just for the sake of it out of pure intellectual curiosity and to learn some paradigms and stuff that you might find useful even in your regularly used languages. Just don't have any delusions that those are some practical languages you will actually be likely to get hired to write code in. Off the top of my head: C, any flavor of assembly, OCaml, a flavor of Scheme, and Lisp.
tried writing an fps limiter, got some weird resultspicrel is basically the same code but rewritten to have less time calls, the "lastframeend" is just the time since the start of the frame to right before that code, so all the logic and renderingsomehow, the top code is massively out of sync, doing 220FPS when I specify 240, while the code below has less than 1% error
>>106911374Japanese
Fuck you EbussiI will not be told how to decorate my windows,I will not wait 26ms for my window to openI will not call 4 separate functions to change a margin around a widgetI will not write cssI will not write 10 lines of code to change a widgets fontI will not eat the bugs, I will not get in the pod and I will not be happy.
>>106911573>global stateDANGEROUSLY BASED
>>106911374Rust, .NET, Maybe Go if you're in spaces that Go is popular.
>>106911623use case?
>>106911716Gooning to obscure eroge.
>>106909930>>106910361>>106910464Threadly reminder that Eli was demoing a novel way to find neural networks in this very thread, but anti-maids and bad jannies bullied him off the site.https://desuarchive.org/g/thread/106672454/#106681260
>>106911779threadly reminder that you are faggot eli
>>106911374Hebrew and Aramaic. Then convert to Judaism.
fucking hell i'm tired of go
>>106911966>everyone i dont like is eli
>>106912349I don't get why they chose such unintuitive and awkward syntax. That and having to duplicate types for no reason.
Should I just use a monorepo instead of bouncing between different Gits?
>>106910727Use linux and do sudo apt install.>>106912349What's the best compiled web backend language these days? Go? Rust?
ok hear me out
>>106913278Delete this.
>>106910536This is just OO cope to make adding an extra parameter to your functions sound more amazing than it is.Also holy shit what did they do to the captchas
>>106911573you only call glfwGetTime() once per loopframeStart is set at the start of the frameyou’re doing glfwGetTime() - frameStart >= target_timebut glfwWaitEventsTimeout adds a bit of extra time that you don’t account forsmall errors add up each loop
>>106913278I can't believe you evaporated an ocean for this.
>>106913278
>>106913278You should at least do something like openai.api_key = os.environ.get("OPENAI_KEY") or whatever so you won't leak nor have to remember censoring your key.
openai.api_key = os.environ.get("OPENAI_KEY")
>>106913370thanks to you, I solved itit wasn't the wait itself, it was the framebuffer swap time that wasn't getting accounted for, it took only 0.1ms but it fucked my FPS over a lotnew code is picrel and it's super accurate, doesn't move more than 0.05FPS from the targetmy new problem is that mouse movement is fucked, it's supposed to be fps independent but it's slow at high fps and fast at slow fps, I assume it's because of the tons of mouse events it processes while waiting for the slow fps but I dunno
stupid question but i heard to get better at a programming is to make projects, but what if you don't know how to start?like lets say i want to make a program to rip youtube videos and download them as an mp3? or i want to auto download all images on a 4chan thread?how would i learnt to do that?i can make regular isolated programs, and use apis but that's about it
>>106910727>zero experience coding>decide to try and teach myself C++>read a bit and watch some tutorialsI really admire your spirit here anon. You have 2 options if you're fixated on C++. Move to Linux do you can sudo apt get your libraries, or embrace the insanity of C++ libraries. My advice is to start with a different language that has better syntax and library support. There's no shame in it.
>>106913766that's a pretty hard project, because it's all about parsing websitesfirst of all, you need to understand what you need to do, downloading 4chan images is a lot easierstep-by-step, what is required?1) connect to the internet, download 4chan html2) parse the html, find the image links (knowing the site's structure, you can look for specific strings instead of really parsing the html) 3) connect to the links and save the data onto filesnow do each of those steps separately, if you can't do it then subdivide the steps, like so:1a) open a socket, connect to the url1b) send the request1c) read the response
Guy called me, and I told him about my ongoing projects and he saw my Github (github.com/Chubek), I was hired on the spot.He's told me to come meet him in the shithole that is called Tehran (congested capital, hell on earth, I'm just gonna dash in and out) and give him a presentation for the ly* project. That includes everything, from lyIR (the intermediate representation), lyCC (C compiler I'll build with the IR), to all the other ly* stuff, from POSIX utils like lyGrep and lyAwk, to the POSIX OS, lyOIX, all made with lyCC.I'll add some QoL features to C. Like fat pointers, templates, partial evaluation, etc.Of course, I won't be making much, but I'd be doing what I love.Knock on wood. Don't give me the 'evil eye' pls. I lost my onyx pendent. And what do you know, two weeks after losing my pendent, I've gotten the 'sleeping disease'. I cannot sleep. Like that dude in Nick Crowley video.I managed to sleep using some sleeping draft. I don't feel tired, but if the draft loses its power, I will never be able to sleep, and die :(Anyways, I'm currently working on TPrez, a TUI-based presentation system, to impress them ever more so. It uses an S-Expression based DSL. Has macros and stuff.
>>106914148Imma die a virgin :( This sleeping disease is serious. I'm going to calla neurologist on the doctor app, but they can't help :(
I'm trying to program a videogame using DeFold (Lua engine). The game is going to be a cross-platform false-3D (think oldschool pokemon) sprite-based game. I don't know how to use Lua, which is one important reason I want to make a game in it: I want to learn Lua in the process. Anyway, I have some questions about implementing character customization with sprites. >what's my questionLet's say my game has a playable character -- Hermione Granger for instance. Normally if I was going the simple route in a game like this, all I'd have to do is create a set of sprites (atlas) representing Hermione's movements. I'd have sprite animations for her walking in every direction, casting spells, running, climbing, standing/idling, falling down, dying, etc. And maybe, I could make an alternate set of sprites for an alternate skin-- let's say in the event where she gets some of her clothes shredded by dark wizards. Again, I'd have to make the same set of animations (walking, running, casting, etc) for the alternate skin. My question is, what if I wanted to actually implement a real customization system? In other words, I want the character's appearance to undergo a wide variety of changes throughout the game, but I don't want to create 10 trillion variations of sprite animations. Like, let's say the user wants Hermione to have a different colored cloak, or maybe a different hairstyle, or a different hat. Or maybe wield a different weapon besides her normal wand or something. Do you guys have any advice for how to deal with this? is DeFold going to limit me from enacting this type of character appearance customization?>my ideal scenarioI'd ideally want to have Hermione's body be its own sprite, and then maybe have her clothes and equipment somehow rendered independently on top of her main body sprite. Since I'm a novice, does anyone have any advice for how to do this in DeFold?
>I have now realized I can embed js into documentationHas Science Gone Too Far?
>>106914512I'm gamedev anon from above-- thanks for giving me some homework. Pico-8 is written in Lua. This will come in... handy with my hackerman projects. I'm gonna read this wiki. Embedding JS is a great way to do web pwn shit. Real hackerman energy right here mang>pico-8 wiki link from your video for anons' conveniencehttps://pico-8.fandom.com/wiki/P8SCII
>>106914496https://forum.defold.com/t/superimpose-one-sprite-on-another/74933
slowly working through 42 piscine, I think I'll do csapp later then ostep if I have time but I'd like to go deep into DSA before that, I need to learn some employable stack thoughbeit
>>106914632Thanks anon.
are singletons fine when I'm using them to express physical hardware? can't exactly duplicate that, and saves me from passing around some sort of 'context' object to everything
>>106914673That entirely depends on the semantics of these singletons and what do you want to use them for.For example embedded Rust uses singletons extensively. Mostly to leverage borrow checker to make sure that only one part of the code uses one peripheral at the same time and to write code generic over multiple units of same kind of peripheral.However your description sounds more like a global than singleton.
Identity mapping + malloc: every program gets static pages for code, static data and stack, and one initial page for heap. When you call malloc a virtual page is appended to the end of the heap and that's how it grows.Thoughts?
>>106913339extra parameter with part of the logic*if you want to maximally trivialize what it is, don't leave out the important bitagain, it's not just any extra parameter - it's not DI if you add parameters that are just data
>>106914496>8-bit pokemon-like game in style but it's Harry Potter and the huge map is the castle and its surroundingskino
>>106908794time to learn C to counter having learned Haskell...
>>106916406>C: 3%absolute king>Go: 3%>the mainstream medias are going to backdown.jpgyeah I don't think so, nice try Gewgle
what books/tutorials do you recommend for learning C? I am already a programmer and I just want to learn C to have fun, but I pretty much forgot everything I learned in uni I heard K&R is outdated but I still see people recommending it, so what's the deal?
>>106916772read the souce code of softwares you likestart programming something in it. when you want something you're used to in other programming language, say a dictionary, implement it and continue
>>106916772>I heard K&R is outdated but I still see people recommending it, so what's the deal?learn K&R, and just read online afterwards about the errors in the book
> cpu supports avx2> does _mm256* just fine> cpuid leaf 7 ebx 5th bit (avx2 bit) isnt setwat do
>>106908949When I first started learning C# I heard so much about DI and I had a hard time understanding how it was different to what I was already doing. I guess I still don't really get why it even has a name
>>106917036>I guess I still don't really get why it even has a nameit's human nature to name thingswhy wouldn't it have a name?
>>106917061I don't think it's a technique that needs to be referred to by name or something that needs to be discussed even, it's just passing arguments
>>106917090>it's just passing argumentssee >>106910536 >>106916162
programming AI escalation ladder>you must pay us to use our AI>ok, we'll make it free, but you must open an account with us to use our AI>fine, just use it, but you must install our product to use our AI>ok, you don't need to do anything, just please use our AI>c'mon, anon, it's right there, right in the editor, just use it please>that's it, you can't disable our AI tab anymore, you VILL use it!>YOU BENCHOD MOTHERFUCKER SON OF A PROSTITUTE JUST REDEEM THE AI!!!
>>106917061>why wouldn't it have a name?Except it already has a name. "parameter" doesn't cover it but things like interface, abstract classes, virtual tables do and have a clear meaning. On the other hand, "dependency injection" doesn't have a technical meaning, it's corporate techno-babble.
>>106917305>>ok, we'll make it free, but you must open an account with us to use our AI>>fine, just use it, but you must install our product to use our AI>>ok, you don't need to do anything, just please use our AIPonzi scheme
>>106916406Haskell xisters... static typing was supposed to prevent this...
>>106917666cursed get
>>106916406lispsissies, they forgot about us again...
>>106917311obtuseness doesn't make things not have meaning
>>106916406>>106916742It is funny how desperate cniles are to maintain face that they have to resort to making up fake graphs that show their language and usebase as good.https://desuarchive.org/g/search/image/lpefOq3EscbItb7-JhCzyw/https://desuarchive.org/g/thread/106780681/And the best part is that given how low IQ many of cniles are, many are bound to fall for this. Just like with the pseudo political manifest that someone wrote few months ago. On start when people read into it seriously and started picking it apart, the guy who brought it was all like "it's just satire, don't think too hard about it" and then inevitably many cniles just took it at face value and assumed it's a real deal lmao.
>>106917803>cniles are one person
>>106917863This is not just one person who falls for these things.
>>106917702technically, "dependency injection" just means that indirection occurs. It could be a function pointer, a lambda, a virtual table without data field, a virtual table with data fields, a thunk, an anonymous coroutine, even an simple address to jump to or an array of jump addesses. You don't know.With "interface", "abstract class" or "virtual table", you know the shape of it. You know that there can be several function pointers, not just the one, and that they likely do complementary function on the data structure/state.
>>106917879this is still an idiotic generality, for propping up "good" languages
>>106917939The fact that these midwits fall for these things does not mean other languages are better, unless you fall into that tribal mindset as well and judge technologies based on perceived differences in their userbases instead of technical merit.
is spring boot still used
>>106917964>The fact that these midwits fall for these things does not mean other languages are better,>unless you fall into that tribal mindsetthat is exactly what you're doing
>>106918159Nope. I never said that C is a bad language nor I ever brought up any other language to compare it against.All I do is point out how often does cniles fall for this shit, which is a matter of fact as shown by links I have posted and situations I brought up.This has nothing to do with technical merit or programming, this is just group X being being absolutely retarded.
>>106918208"cniles" are many people, stop making generalitiesand who cares about who cares about some irrelevant clickbait graph, let alone how a category of people presumable react to it?
>>106918284>and who cares about who cares about some irrelevant clickbait graph, let alone how a category of people presumable react to it?I do. It's always fun to poke fun at overconfident underachieving people.
>>106911779release ityou won't
AnonsI am trying to make a small self hosted music player for myself. I want to use mysql for database. I have a basic ui but don't have a backend. Will ffmpeg work for the playing? and this also my first programming project. Any resources or repositories I can follow would be appreciated
>>106917305>send a copy of your passport to Tel Aviv
>>106918319what's you problem with "cniles"? I mean facts, no self serving assertions.
>>106917913wrong - dependency injection is not a synonym for indirection
>>106918381I don't have any problem with them, I find them amusing.
>>106918344I am not Eli and I don't know how to contact Eli. I was just pointing out that the only people here who tend to go beyond programming 101 or shitposting about tiny language differences are maids and the head maid was bullied off the site by a mixture of malevolent retards and obsessive anti-maid jannies. That's why this thread is stuck in a constant slop cycle instead of producing anything interesting.
>>106918430Eli never produced anything of value. He also derailed countless of threads and broke multiple 4chan rules, with avatarfagging being the prime example. He was nothing but an extremely obnoxious shitposter.This thread has multiple of people working on more advanced projects than he could ever do.If you do not like this, feel free to move to different place where you can avatarfag and circlejerk to your heart content. I recommend making a discord server for likeminded people and stop coming back here.No one wants any of you here.
>>106918413>>unless you fall into that tribal mindset>>106918408based on wikipedia, https://en.wikipedia.org/wiki/Dependency_injectionindirection is half of what it stands for. the other half is ridicuously irrelevent and hardly deserves a name
>>106918430maidniggers can't follow the most basic of conventions and rules, and insist on shitting out their culture subversion with every posti will not read even a word of their posts and the only valid action to be taken is to immediately report any and all maidnigger posts
I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS
>>106918482>>>unless you fall into that tribal mindsetunless you fall into that tribal mindset as well and judge technologies based on perceived differences in their userbases instead of technical merit
>>106918486Git gud
>>106918518I will gas your bloodline, webnigger
>>106918482have you even read the article you linked?
>>106918408nevermind you're right and I was right the first time when mentioning interfaces and abstract classes which can both be resolved statically
injection sounds like "put in afterwards", as opposed to "baked in from the start"it would apply better to aspect oriented programming
>>106908794asuna's hairy pussy
>>106918461>>106918485
>>106909241>Bangmaidsis that a real word?I want moer
>>106910727AI is good at code but not good at dealing with C++ libs.im betting that you are not deleting the cmake cache every time you make a change, so your changes to variables are not actually being done.also OpenCV does support cuda on vcpkg, it's a feature.https://vcpkg.io/en/package/opencv4.htmlIf you are using classic mode vcpkg, I think you just add opencv[cuda], and if you are using the manifest json just add cuda to the features list.I wouldn't be surprised if it's a weird library such as QT but it also might just work.
Is there any point in fine tuning llm models with code bases?Like if I want to write quake mod should I fine tune some model with quake source and maybe source from some mods or will it just mess up the model?
I'm writing Rust and having fun
>>106919719fuck off tranny
>>106918486why? it's easier than ever since most of the meme problems like "center a div" are just use css-grid. if you're too lazy to define grids and screen size breakpoints, you can use flexbox like a nigger faggot too. it's really painless. the only thing shit about it can be said about any design problem, it isn't wysiwyg tier.
>>106919719I, too, am writing rust and having fun.