[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Subject
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]

[Catalog] [Archive]

File: 1959_Grace-Hopper.jpg (1.18 MB, 1800x2400)
1.18 MB
1.18 MB JPG
What are you working on, /g/?
Previous: >>107817026
106 replies and 14 images omitted. Click here to view.
>>
About GUI toolkits, which data structurs/algorithms do they use to find out which button you clicked or overed based on the mouse's (x,y) screen coordinates?
There can be many buttons you can click in a given GUI and it's 2D, so...
>>
>>107849189
not worth optimizing, the only thing worth optimizing is text.
if you care, you could benchmark.
but I think you will be spending 0.00001% of your time on UI input / collision events.
Maybe 0.1-10% on UI rendering depending on how much text you render.
10000hz polling mouse inputs don't send 10000 events, it only does that if you enable raw input, which is usually when the mouse is hidden in 3d games (and even then, the number of events are reduced in something like SDL2 to reduce stutter).
>>
>>107845806
this is objectively the best syntax and semantics
>>
>>107849381
>not worth optimizing
>10000hz polling mouse inputs don't send 10000 events, it only does that if you enable raw input
>(and even then, the number of events are reduced in something like SDL2 to reduce stutter).
But if I make my own GUI toolkit I'm going to deal with raw input and I'm going to need an efficient way to resolve bounding box hits, no?
If the GUI toolking only support click events on widgets, then iterating over all widget target areas might be fine because click events are rare (at worst you'd have 10-20 per seconds if you're really clicking like a maniac), but if it supports hover events on widgets then it's going to have to iterate all the fucking time and at a much larger frequency.
>>
x : int : 42

would be valid in Odin to declare a constant int
x :: 42

would declare the same const, inferring it as an int
x := 42

would instead bind 42 to variable x, again inferring the type
Similarly
let x : int = 42;;

would be a valid binding in OCaml
etc.

File: perve.jpg (347 KB, 1280x960)
347 KB
347 KB JPG
BATTLE STATIONS

Show your setups
180 replies and 59 images omitted. Click here to view.
>>
>>107849611
This shit tasting good senpai proud of you for putting this together.
>>
>>107849566
felt that I love that treeline a lot

>>107849586
Yeah, I got used to screens everywhere. Tried downsizing and it felt way too empty. Just put them back up haha
>>
>>107849638
It feels like you can get away with a single ~40-inch 4K display. But it's gonna be at 1x resolution.
>>
>>107847016
nice corner bruv, better hide your research papers next time though
>>
>>107849554
Is that an Onkyo tray loading tape deck on the shelf? Love the weather channel emulator.

https://www.techspot.com/news/110879-jensen-huang-relentless-ai-negativity-hurting-society-has.html
126 replies and 13 images omitted. Click here to view.
>>
>>107844825
Before too long I'll hopefully have web search piped into open webui and then I can just use something like Llama 70B with web search instead of relying on the massive public slop models.
>>
>>107849811
>look, combustion engine will improve agriculture. You can put it on a vehicle—
>That's not an engine, that's a wagon! Checkmate!
I wish I had a veiny brained reddit basedjak for this occasion lel
>>
>>107849828
retard
>>
>>107848818
Really? 10K+ jobs?
May I see them?
>>
>>107849834
cry more, bitch nigger

File: 1763968550850276.jpg (82 KB, 750x1000)
82 KB
82 KB JPG
>Lisp is a family of programming languages with a long history and a distinctive parenthesized prefix notation. There are many dialects of Lisp, including Common Lisp, Scheme, Clojure and Elisp.

>Emacs is an extensible, customizable, self-documenting free/libre text editor and computing environment, with a Lisp interpreter at its core.

>Emacs Resources
https://gnu.org/s/emacs
https://github.com/emacs-tw/awesome-emacs
https://github.com/systemcrafters/crafted-emacs

>Learning Emacs
C-h t (Interactive Tutorial)
https://emacs-config-generator.fly.dev
https://systemcrafters.net/emacs-from-scratch
http://xahlee.info/emacs
https://emacs.tv

Comment too long. Click here to view the full text.
191 replies and 23 images omitted. Click here to view.
>>
File: 1754581916360467.jpg (271 KB, 1506x2048)
271 KB
271 KB JPG
>>107843727
>>107843933
both are bloat. just M-q like everyone else
>>
https://github.com/nohzafk/consult-snapfile
this thing feels insanely fast even compared to consult-fd. seems like this kind of external "server" setup is a pretty good cope for emacs' nature, pain in the ass when bootstrapping thoughever
>>
emac lip
>>
Why does Xah Lee have a pic of him literally jerking off on his website?
>>
>>107848977
he is an american no coder gooner.

File: 1073.png (87 KB, 400x312)
87 KB
87 KB PNG
I'M CLOUD GAMING THIS YEAR
28 replies and 3 images omitted. Click here to view.
>>
>>107841732
I can't understand why you guys just don't make more money. Have you ever actually tried to focus on this? I don't mean getting stressed and brainstorming hard one day, but I mean actively implementing plans over an extended period of time to earn more?
really shouldn't spend any time gaming if you're so broke that buying a performant computer is something that gives you gives you stress like this

idk dude, pretty depressing
>>
File: file.png (62 KB, 800x628)
62 KB
62 KB PNG
>>107841732
tfw 8 year old graphics card
>>
>>107843234
>Biggest issue right now is latency, streaming games have been tried before buy you cannot sell an additional 25-35ms of latency to die hard first person shooter gamers. Imagine clicking to shoot and being later than your contestant due to latency.
I used one of those services and my latency was a constant ~7 ms. Managed to finish Cyberpunk 2077 without ever feeling any input lag.
It really depends on how close you are to the servers.
>>
>>107841732
Skill issue.
Stop being poor.
>>
>>107841732
Are you a europoor? lol

Are LLMs demonic technology or are its users too dumb & gullible to become psychotic due to them?
19 replies and 2 images omitted. Click here to view.
>>
>>107840647
>>107843254
Does it have to be a girl?
>>
>>107847508
No. Loneliness is universal
>>
being psychotic is actually based
>>
>>107840586
Extremely darksided technology.
>>
I used LLM to psychoanalyze my own behaviors and I came to the conclusion I am a Narcissistic, psychopathic schizoid, and that's a good thing! It really explains a lot, basically with the kind of person I am in, even in actual therapy I was never being fully open. AI allows me to be fully open and reach the core in a way you cannot with humans, that is the power of LLM.

File: 162233678971.png (383 KB, 598x628)
383 KB
383 KB PNG
I'm literally stuck to windows 10 because I need two windows xp era tools for my work that don't have a modern alternative and crash under wine.
>>
>>107845779
virtualization anon
>>
>>107845779
Yeah I can help you make a local bin shortcut hat launches a Windows XP VM in seamless mode.

First use msconfig to get your app to start up on XP then I need to figure out how to get virtual box Windows xp to start in seamless mode. The end result should be a desktop Icon running the wrapper to boot you app. You also need a shared folder between the VM but that's easy.
>>
>>107845779
Have you reported the bug to the Wine team? If it's reproducible I mean.
>>
Have you considered upgrading and paying for a live survice you stupid cocksucker?
>>
>>107845779
windows vm retard

File: 1767586185442833m.jpg (96 KB, 1024x997)
96 KB
96 KB JPG
>be me
>working at local county government as software dev about a decade ago
>we have a jeet working on the team as well for unknown reasons
>the jeet leaves and I'm assigned with modernizing an application he wrote, and converting it from PHP to C#
>app is for tracking how the county commissioners vote on approving/rejecting contracts, should only need to track if they're approved, denied, or still pending a decision
>instead of just counting if two of the three county commissioners have voted to appprove, he created the most convoluted calculation system I have ever seen
>a vote to approve is 1, a vote to reject is 4, abstaining from a vote is 13, being absent for a vote is 40
>if you were paying attention, each number is the previous number times 3 plus 1
>jeet does this because he can uniquely identify what each vote is even after turning them into numbers
>almost brilliant in a retard savant way, he found a way to not have to learn what an enum is
>the PHP code then has the most complicated spider web of ifs and else ifs I've ever seen, calculating if the contract is approved or not
>I turn his 1000+ line of nonsense into 12 lines of C#
>mfw

Share your horror stories, bonus points if they involve jeets shitting out unmaintainable spaghetti code
243 replies and 33 images omitted. Click here to view.
>>
>>107795067
i want to post stories but im a pussy about being recognizeda so i fear it would be vagueposting

>>107800025
the only story of note of my time in school was when one of the teachers didn't know how to open an readme.md file i sent to him. seeing that level of incompetence from a teacher kinda wrecked my worldview, since i had known nothing but really smart teachers in other places of learning. but in a way it was helpful since i realized that my degree was going to be worthless, and that pushed me to study on my own and ignore the teachers for the most part
>>
>>107832461
cute
>>
>>107818329
>One of my professors publicly announced his retirement during the lecture talking about how students don't care anymore.

To be fair, most professors don't really care either. College education is mostly a scam anyway.
>>
lol
>>
>>107843529
The best teacher I ever had at uni (like 5 years ago) literally did not know what git was.
He would teach graphics by explaining a scene graph, (loosely) what and how matrix math works and how it applies to vertex and vector transformations in rendering, the works. He also taught soft computing, which is the reason I know about natural and artificial neural nets, and genetic algorithms instead of just thinking "AI is a python script".
The man was sharp as a tack and seriously experienced, one of those sage types with a long white beard where the length of it is proportional to programming wisdom, but somehow had no idea what git was. One must assume he was just keeping multiple copies of his data over his multi decade tenure.
He also loved the Dreamcast. Said it was the first console that had spare polygons in its per frame budget. I miss that guy.

File: github.png (57 KB, 512x512)
57 KB
57 KB PNG
Uncensored alternatives to this shit?
37 replies omitted. Click here to view.
>>
>>107837622
Depends what you need. If you just need source control, issues, and documentation publishing, run a Fossil instance. It'll let you keep all that under your direct control.
It's up to you what you put in it. If it's stuff which governments want to censor, you'll have to deal with the consequences eventually, ngl.
>>
File: updating-language-pack.png (94 KB, 1000x480)
94 KB
94 KB PNG
>>107837622
Host your own git server. That's what I do. Just set up a VPS on some cloud provider.
>>
>>107837622
sourceforge
>>
>>107838074
>>107825446
>>
>>107847283
>>107837930
I told you I was stealing your quote, what more did you want from me?

File: pic.png (241 KB, 889x988)
241 KB
241 KB PNG
How do you respond without getting mad?
117 replies and 10 images omitted. Click here to view.
>>
>>107844625
I use none of them.
I just turn off as much google garbage on my phone as I can, use Arch, and librewolf/ungoogle chromium.
Anything more would be too much effort for me.
>>
File: 1755390051407.jpg (17 KB, 278x278)
17 KB
17 KB JPG
>>107844625
>There's no compromat or actional information available to be collected about him.
>Therefore he's cypher/ghost in the system AKA nobody.
I agree with him, except for the implication that being a nobody is maybe bad.
>>
>>107844625
You're insane owning hardware and not encrypting the drives
Same goes for veracrypt, simple way to share encrypted volumes
gnupg is utter garbage but for IT work it's hard to avoid using eventually
The others are random or nice to have if you want a secure posture, matrix is far superior to the closed source alternatives, shame it never took off with normies
>>
File: 1759385929038724.jpg (75 KB, 726x741)
75 KB
75 KB JPG
>>107844660
>>
>>107844625
lets keep it that way

File: c++.png (70 KB, 1152x325)
70 KB
70 KB PNG
C++ eternally BTFO
https://www.youtube.com/watch?v=7fGB-hjc2Gc
86 replies and 5 images omitted. Click here to view.
>>
File: 1744556520869931.jpg (727 KB, 1012x1536)
727 KB
727 KB JPG
>>107846451
>create_vec(1000, sizeof(TheTypeYouWant));
1000 would be the initial capacity, which by default is 0 for my implementation. I didn't copy or follow any stupid text books, a vec is a vec it's pretty simple overall. I don't care if my implementation is slightly slower or whatever, haven't benchmarked it.
>>
>>107849251
>I prefer C99. I have my own small std lib which implements all the useful standard data structures. Contiguous vector..
i didn't mean the c++ implementation, i meant one in c which is only slightly possible with preprocessor abuse. you have to call the macro to create the function and you can use ## to "inject" like this.

>>107849573
this is not what i mean at all. i mean how do u go about making it generic like the stl, which is only possible because of templates.

#define MAKE_ADD_FUNC(type)          \
type add_##type(type a, type b) { \
return a + b; \
}

MAKE_ADD_FUNC(int)
MAKE_ADD_FUNC(double)
>>
File: 1759075023682813.png (37 KB, 731x288)
37 KB
37 KB PNG
>>107849671
>how do u go about making it generic like the stl
It's just memory, the implementation only needs to know the size of each element. Here is the insert method of my array. As you can see, it just copies bytes around, the array assumes it owns the memory you throw at it. You can initialize a struct on the stack and throw a pointer to it to the array_insert or array_push or whatever function and it just works because there is nothing special about memory.
>>
>>107849707
thats a fine solution, but it looks like it would be cumbersome to use. the data's type is not known by the "vector". things like accessing elements would be annoying because you will have to do pointer casts manually, as i would assume it returns a void*.
>>
File: 1758988388747235.png (8 KB, 383x64)
8 KB
8 KB PNG
>>107849876
>but it looks like it would be cumbersome to use
Yes, for that I have a simple macro or two, just to make it bearable.

File: G-CneXobcAMBGmr.jpg (169 KB, 731x1200)
169 KB
169 KB JPG
You guys are getting one right?
50 replies and 13 images omitted. Click here to view.
>>
File: G-d4jYMakAAy3zC.jpg (440 KB, 1668x2048)
440 KB
440 KB JPG
>>107837784
She so cute
>>
>>107849407
He married a plushie, not a hologram.
Gatebox was just a gadget he got years later and it never meant that much to him as the article implies.
>>
>>107837784
how long before someone attempts to fill one with cum?
>>
>>107849589
yeah, alright
would
>>
File: 1766402225787244.jpg (142 KB, 1280x1067)
142 KB
142 KB JPG
Soon...

File: SamAltman_2025-embed.jpg (682 KB, 2880x1620)
682 KB
682 KB JPG
Has AI produced anything good other than AlphaFold?
31 replies omitted. Click here to view.
>>
>>107847162
No, but I haven't bilked the US taxpayers out of almost 1 Trillion dollars now, have I? And what about yourself, xir?
>>
File: 1768142572128113.jpg (220 KB, 1118x1120)
220 KB
220 KB JPG
>>107846134
Check out this shit dude
>>
>>107846134
AI has niche uses where image recognition is valuable but even there second sight of specialist is needed. Things like medicine, reading maps, archeology, quality control in factories etc.
Sadly, that's kind of boring for your typical normie faggots and investors, so Altman and other scam artists are instead focusing on schizo babble about AGI and other bullshit.
>>
>>107848287
Dear Anon,

nature com/articles/s41587-023-01773-0
nature com/articles/s41586-024-07899-8
Deep phylogenetics is entirely revolutionized, and FoldSeek is our generation's BLAST. If you can't understand the importance of this, you can't be helped.
Sincerely, a computational biologist with a CNS paper heavily using AF2

>>107848437
Evo is a LLM version of AlphaFold. Slightly worse for fold-tasks but much richer for other tasks.
>>
in the spy, medical, and military sector, yes
in the consumer sector, no

Elon says his plan is to have humanity exploring space and meet alien civilizations

is this technologically achievable?
113 replies and 14 images omitted. Click here to view.
>>
>>107847329
>exploring space and meet alien civilizations
<with rockets
The richest man in the world being mentally retarded says it all about humanity really.
>>
File: 1508849303579.jpg (42 KB, 404x301)
42 KB
42 KB JPG
>>107847329
>NASA plans to use starship for Artemis III
>a manned mission to mars is actually within our grasp now
the future is in our hands
>>
>>107847384
It's either traveling on a beam of light or nothing
>>
>>107847329
over 80% of oceans depths isn't explored in 21st century. what makes you think as if we are technologically developed enough to explore space?

that guy is greatest con artist of our time.
>>
>>107849540
Orange rock bad. Do not go

File: tit2eli.png (530 KB, 2000x750)
530 KB
530 KB PNG
for what purpose?
56 replies and 10 images omitted. Click here to view.
>>
>>107843062
are you afraid and shitting ur pants, Tim Crapple? are you afraid that zoomies want dumb phones now? are you afraid of the upcoming phone culture shift, Craig FEDerniggi?
>>
>>107845482
I miss my titan pocket fuckin shit
>>
>>107843062
I feel like this one is clearly a scam meant to capitalize on the Clicks Communicator hype. This product does not actually exist and never will.
>>
File: 1751094880255453.jpg (306 KB, 1476x1078)
306 KB
306 KB JPG
>>
>>107843062
I use this brand! I am on their Jelly Star. Outdated android version (13) but I'm always behind because I don't live on my fucking phone. Well worth the $200 I spent on this pebble of a phone. I might check out this titan 2 just for a termux device


[Advertise on 4chan]

Delete Post: [File Only] Style:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[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.