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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File deleted.
What are you maids working on?

Last one: >>106482423
>>
Have any of you read books when you were learning? I really dont have the attention span for these 800 page ones, but i really want a good solid foundation instead of a basic concept only
>>
how would you solve the type noise problem in modern languages?
>>
>>106505508
I read the first two chapters of K&R and it literally shaped the rest of my life
>>
staking contract in Anchor (Solana)
also a frontend for it
it pays the bills so whatever
>>
>>106505513
Type inference shows that writing down every type isn't necessary for the language. Types are still useful documentation for humans, but not if they become too complicated. So you should require that humans write down a simple version of the type. Then let the language infer the exact specification of the type.
>>
sex with Eli
>>
>>106505513
a := b;
>>
I'd like to write a painting program for my XP Pen tablet
Seems like my options are OS APIs (WinTablet, Windows Ink) and the native XP Pen library (like 5 C functions in a DLL and header with comments in Chinese)
I will try my hand at the latter
>>
>>106505649
I'm not Eli. Eli got banned for posting about math.
>>
>>106505513
what do you mean
just use types
>>
C++ is such fucking useless garbage holy shit
The language has been around for 50 years and it doesn't have a half-decent build system, let alone package manager
You need 75 PhDs just to build a fucking project with a folder structure that isn't vile ass
Just fucking kill me holy shit
>>
void thing(const Data data) {

kill yourself, you're fired, DONE, delete yourself from the premises
void thing(const Data& data) {

ah, I see you're a fellow 40 year experience wizard, welcome
>>
>>106506394
every maidposter deserves my love.
>>
>>106506517
Janny deleted the maid.
>>
i see a certain someone has made preposterous claims about Eli in the other thread.

>>106506651
what a disaster.
>>
File: 1757197715375.jpg (968 KB, 4032x3024)
968 KB
968 KB JPG
>>106505464
1500 iterations/second NIGGER
>>
>>106506651
lmao eli btfo
based janny
>>
File: 1757195568416146.png (387 KB, 1072x1543)
387 KB
387 KB PNG
>>106506651
sipser was really solid
>>
>>106506446
I build C++ using a simple Makefile, yes, it's one directory with no subdirectories, but let me guess, you need to turn simple into overcomplicated mess, neurotic kike
>>
>>106506446
Use meson, especially if your deps can be found at https://mesonbuild.com/Wrapdb-projects.html
>>
>>106506446
>folder structure
lmao
>>
File: carbon.png (403 KB, 2600x2356)
403 KB
403 KB PNG
Nice
>>
Rust doesn't even have GADTs
>>
>>106505697
The drivers really don't like it when you use the official SDK god damn
Leaves the tablet in a strange state until reset even though I'm calling all the teardown functions presumably in the right way
>>
File deleted.
cd ./family

sudo apt sex -preggers 

ntfsfix dev/sda2

Ctrl+R,cmd,enter
cd C:\family

mkdir children

start baby_making_sex.exe
>>
>>106507282
A maid offering snacks gets deleted, but this garbage is left up. What is wrong with janny?
>>
>>106507853
It's only been an hour + "SEX = FUNNY" for most of the retards here.
>>
>>106507860
Maybe janny is just trying to repress her own desire to wear a maid outfit? Everybody reading this falls into one of three categories. Either she is currently wearing a maid outfit, wishes she was wearing one openly, or wishes she was and is trying to repress the desire. Literally nobody else even comes here.
>>
>>106507934
This stupid maid schizo shit is the most forced unfunny shit we've had in quite a while.
>>
File: 1726049221984219.jpg (24 KB, 622x745)
24 KB
24 KB JPG
>>106508073
Do you know what else has been " most forced unfunny shit we've had in quite a while"? You're not gonna like the answer.
>>
>>106508073
So, you're in the repression group then.
>>
File: 1756915871061167.mp4 (2.04 MB, 480x720)
2.04 MB
2.04 MB MP4
>>106508098
>Do you know what else has been " most forced unfunny shit we've had in quite a while"? You're not gonna like the answer.
what?
>>
File: 1737414455929984.jpg (11 KB, 340x296)
11 KB
11 KB JPG
>>106508116
>what?
nothing man, i'm just passing time.
>>
>>106508133
okay lil buddy
what did you do today?
I drank wine and worked on a project
currently listening to blackbird blackbird Hearts LP (what we've built)
shits inspiring
>>
>>106508098
The older example was that fucking programmer sock shit.
>>
>>106508165
>what did you do today?
reorganized my music collection and wrote a shitty c program to test something out. i'm currently waiting for pizza to finish baking.
>>
File: 35822e05280.jpg (58 KB, 778x413)
58 KB
58 KB JPG
>>106508199
gonna watch a sick kinolicious film with your za za? mhm?
>>
I implemented LZW-like dictionary compression and (non-adaptive) canonical Huffman entropy coding in my exploration of compression

I'm still not clear on how you decide things like alphabet size for entropy coding. I've read that things like LZ77, LZ78, BWT, BPE, RLE, MTF, etc. are really data transforms that (I think?) should make data more amenable to entropy coding, but it seems like your choice of alphabet size and specifically "what" you apply entropy coding to matters a lot, since the distribution of input symbols will determine if you get any compression from it.
Interestingly, Huffman(text) < Huffman(LZW(text)) < LZW(text) for the ~18kB of English text I'm testing with.

I have variable bit length codes in from LZW that get serialized into a byte sequence, but the LZW codes (that have structure relative to each other) will straddle byte boundaries, so I'm guessing this is why just applying Huffman coding to the serialized bytes doesn't work very well, since it's kind of seeing mangled fragments of the longer codes. I imagine if I only entropy coded the 8-bit symbols in the LZW code stream it would work better (since the symbols that appear in the text are a small subset of ASCII), but I think it would require more coupling between the LZW encoder/decoder and the Huffman encoder/decoder. For example, when the LZW decoder is about to read a symbol, where it currently reads a fixed 8-bits, it would need to call the Huffman decoder to read a single code out since the codes are variable length. Encoding also gets more complicated.
>>
>>106508227
Try feeding it a KJV Bible to benchmark it against Maid-LZW.
>>
>>106505508
>Have any of you read books when you were learning?
I learnt a long time ago, so that was the only option (other than being actually taught in class, which never suited me so much).
Keep a bookmark handy; you won't digest it all in one go, and you should attempt the exercises (if the book has them).
>>
In C++, is there something like an std::pair, but for 3 objects?
>>
>>106509614
std::tuple
>>
>>106509614
no std::triple. There is std::tuple but you need to use a structured binding to get the data out of it
>>
>>106509614
We call them structs, very useful.
>>106509727
Structured binding works with any struct, std::tuple and std::pair are obsolete and have no reason to exist.
>>
>>106509777
std::tuple is useful in generic code
>>
>>106510457
Generic code isn't useful anywhere.
>>
>>106507020
At a sufficient project size this would become hellish no?
>>
>>106510487
Why would it?
>>
File: maido.png (596 KB, 832x1216)
596 KB
596 KB PNG
>>106507853
>t.mac maid
>
cd mansion

>ls
>
rmdir filth

>
sudo chown maido:mansion toys.app

>
touch tea

This is what maidos are made for, servlet
>>
File: tomcat.png (84 KB, 1200x855)
84 KB
84 KB PNG
>>106510515
>This is what maidos are made for, servlet
mfw
>>
>>106510507
It just would ok?
>>
>>106510486
>Lying
>>
I have no creativity but I need to practice my craft. Someone give me a program idea.
>>
>>106510551
Every single problem is special and requires unique solution, you can't just throw a generic std::unordered_map at it and have it be fast, retardo.
>>
>>106510563
spoken like a true retard
>>
>>106510695
You sure did.
[[gnu::cold]]
[[nodiscard]]
static inline
s64
mmap(void* const addr, u64 const length, u64 const prot, u64 const flags, s64 const fd, u64 const offset)
{
s64 ret;

char (*fixed_map)[length] = (char (*)[length])addr;

register u64 r10 asm("r10") = flags;
register u64 r8 asm("r8") = fd;
register u64 r9 asm("r9") = offset;

asm volatile
(
"syscall"
: "=a" (ret),
"+m" (*fixed_map)
: "a" (__NR_mmap),
"D" (addr),
"S" (length),
"d" (prot),
"r" (r10),
"r" (r8),
"r" (r9)
: "rcx",
"r11"
);

return ret;
}
>>
File: Game developers.png (393 KB, 2200x1548)
393 KB
393 KB PNG
>>106510515
This maid is very cute! Thank you for posting her! What do you like about using a Mac? I have considered getting one for art because they seem to make good Art Computers.
>>
I'm just not going to use a build system and instead write self compiling C files.

https://github.com/aussie114/crypt/tree/master/src
>>
>>106511077
Where's -O3?
-flto=1?
-march=native?
-DNDEBUG?
Nocoder.
>>
>>106511096
won't fix:
no valid use case
>>
>>106511117
based
>>
File: untitled.png (173 KB, 2506x1296)
173 KB
173 KB PNG
>>106507151
Oh, it can be done even better, even faster.
>>
File: 1757248109232253.png (36 KB, 1576x1472)
36 KB
36 KB PNG
can someone please help?
so i installed and build sdl3 from source. i import it in a project and run a little test thing that pulls out an empty window. everything works fine. the only problem i have is that clangd (the LSP) does not recognise the include. how can i fix this? (just to make things clear, this compiles and runs fine) im on macOS btw.
>>
>>106511774
did you add the include directory
>>
>>106511791
add it where exatly? i added it to the compile_commands.json
[
{
"directory": "/Users/plvsvltra/c/learn/learnSDL/build",
"command": "/Library/Developer/CommandLineTools/usr/bin/cc -isystem /usr/local/include/SDL3 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -o CMakeFiles/mygame.dir/main.c.o -c /Users/plvsvltra/c/learn/learnSDL/main.c",
"file": "/Users/plvsvltra/c/learn/learnSDL/main.c",
"output": "CMakeFiles/mygame.dir/main.c.o"
}
]
>>
File: error.png (11 KB, 1576x348)
11 KB
11 KB PNG
>>106511791
if i try passing the entire directory to the include i get this.
>>
>>106511909
you might need another -i
>>
>>106511942
thats because the included file itself includes files and they dont include those as /usr/local/whatever
>>
>>106505513
turn the volume down
>>
>>106505513
the terms are the real noise
>>
>>106511774
>>106511909
Just use CMake
>>
>>106494206
My solution was to make an std::set<std::pair<>> and a custom Compare that sorts by the first part of the pair and then the second, since the sorted value is not guaranteed to be unique.
to insert or replace i use std::make_pair<> to match the key
>>
>>106512490
why are you retarded
>>
>>106512511
thanks for the (You)
>>
>>106511909
I learnt about the command line from looking at codeblocks commands and trying to recreate it.
but yes cmake is the way and codeblocks is not very good, codeblocks wont work with msvc on windows (mingw does not have address sanitizer), and compared to vscode, the only benefit was that it ran fast on my old XP machine.
The reason clangd doesn't work is because clangd is made only for cmake, and cmake needs to generate a compiler_commands.json and clangd needs to find it.
clangd just works on clion (clion is free with the non-commercial license), not sure if it works for a non-cmake project but I think it could do something like your code.
>>
>>106512631
*but ideally you would want to use vcpkg for libraries. building from source is masochistic.
>>
>>106509072
I fed it this one: https://www.gutenberg.org/cache/epub/10/pg10.txt
kjv.txt          | 4,455,996 bytes
kjv.txt.huff | 2,584,968 bytes
kjv.txt.huff.lzw | 2,027,709 bytes
kjv.txt.lzw | 1,816,036 bytes
kjv.txt.lzw.huff | 1,808,226 bytes

kjv.txt.huff     | 58.011% compression ratio
kjv.txt.huff.lzw | 45.505% compression ratio
kjv.txt.lzw | 40.755% compression ratio
kjv.txt.lzw.huff | 40.580% comrpession ratio

It also took about 3 hours to compress. I let the LZW dictionary grow unbounded, and the traversal code is just brute force search for the longest match by walking the dictionary backward.
>>
What kind of evil maid software are you writing /g/?
>>
is this a rust gen or cpp gen
>>
>>106512843
it's a people using c++ wanting to be left to their own devices and everyone else using everything else also wanting the annoying safety-ism faggots to go away general
that subset of rust programmers are obnoxious and spammed the whole board and most anything vaguely related to programming years ago for years
rust memory safety evangelists who interject every time c++ is mentioned should kill themselves but these days anyone actually doing normal productive stuff in rust, as opposed to pseudo-political/religious activism is fine
you don't get threads and project discussion derailing for hours if not days because rust was mentioned
>>
>>106512991
>it's a people using c++ wanting to be left to their own devices and everyone else using everything else also wanting the annoying safety-ism faggots to go away general
>you don't get threads and project discussion derailing for hours if not days because rust was mentioned
If C++ people do not want to discuss Rust then why is majority of Rust threads on /g/ made by people who do not like Rust?
Most of the time you see Rust mentioned it's always someone complaining about something in Rust or comparing it to C/C++/Zig, often in the most retarded way possible. And then when some Rust programmer joins in and points out problems in that argument people start to whine about /g/ being full of Rust shills.
If you do not want to talk about Rust just stop talking abour Rust lmao
>>
>>106511049
Can't into mac's on a maid salary anon
>>
File: Tohru11.jpg (1.48 MB, 1708x2600)
1.48 MB
1.48 MB JPG
>>106512729
Your compression is about as good as Maid-LZW, but much slower. If you have Java, I will upload a copy of Maid-LZW for you to play with.

>>106512823
I am unfamiliar with evil maid software.

>>106513087
I got a Science Grant for equipments.
>>
>>106513121
Maid software but mature and without the sugary stuff
>>
>>106513054
you are drastically minimizing how much you deserve that hatred
because there's a massive massive years old grudge that's 100% deserved? from when literally anyone from a student asking for advice to an expert working with C or C++ would be drowned in a deluge of rust posts?
and anyone with any level of exposure to the rust community will immediately understand what elements are responsible for causing that hatred and pretending otherwise is clearly disingenuous
oh and also rustfags trying to get the US government to soft ban (and then igniting discussions over whether the government should regulate programming tools) C++ and C by issuing security guidance declaring it unsafe was cute

no, memory safety is not that important, most CVEs are old C code or old C style C++ code, not every application should need to program with a nation state level threat model, and only networked applications or applications with components that cross authentication boundaries need to care about security at all, and gross and flagrant violating memory safety is desirable in a lot of cases
if you're posting about rust without actually working with anything in rust it's fairly obvious you're just another webdev who just discovered rust and thinks he's a "systems programmer" here to spam like 8 years late to the party
whatever arguments you think you've brought to the table have been heard before a thousand times over

i'm going to go see if i can get allocate a RWE buffer on my GPU using the drivers directly and create a self modifying compute kernel
>>
File: Untitled.jpg (26 KB, 298x169)
26 KB
26 KB JPG
>Try to use Rust in a low level project for a microcontroller that has no branch predictor.
>Ask a LLM how to turn rangecheck shit off
>LLM assures me that branch for in-bounds is practically free and it's not a big deal
Rust is a cult and I will use pic related because Rust manages to be even more retarded.
>>
>>106513242
Skill issue.
>>
>>106513221
>>oh and also rustfags trying to get the US government to soft ban (and then igniting discussions over whether the government should regulate programming tools) C++ and C by issuing security guidance declaring it unsafe was cute
i forgot this also then massively derailed the focus of the upcoming standards away from actually useful changes to the language and ecosystem
>>
>>106513276
Perfect way to describe Rust.
>b-b-but rust solves
There's nothing to solve, industry loves cheap pajeet work, the kind that Rust isn't even useful for anyway even hypothetically speaking, and white people don't have skill issue, paranoia and constant neuroticism about buffer overflows.
>>
File: Please put this on.jpg (154 KB, 1280x720)
154 KB
154 KB JPG
>>106513303
Please be nice on the Dra/g/on Maid Board. Remember that everyone posting here is a cute maid who likes computers, just like you! Racism is not needed to express your ideas about Rust and C++.
>>
>>106513389
shut up nigger
>>
>>106513389
Stop trying to moderate random discussions, that's like 50% of the reason people dislike you
>>
>>106513221
Sure thing, buddy.
Just remember, as long as you keep making these ill-informed posts, someone will correct you and once again you will see Rust discussion you hate so much. A discussion, you have spawned yourself.
>>
>>106513242
Humiliation ritual.
>>
>>106513441
I vaccinated the rat against tetanus, I will be fine.
>>
File: Tohru8.jpg (898 KB, 1311x1380)
898 KB
898 KB JPG
>>106513422
I just want polite discussion. I am not moderating anything. I am not a janny or a mod. I am just trying to encourage positive discussions and maker project posting. It is a request, not an order.

Racism is literally not needed. It is not shocking. It is not interesting. It is just noise probably used out of habit. Let us all work together towards a more positive environment. Let us all work together for a better signal to noise ratio.

>instead of doom I'll make flowers bloom for everyone around to see
>>
>>106513303
>There's nothing to solve, industry loves cheap pajeet work
What you are advocating is actually "pajeet" work. "Lemme just use the deranged shit the industry is trying to move away from because I'm too lazy to figure out a way to get it working".
>>
>>106513534
Rustranny so mentally ill he forgot that industry uses JavaScript and Golang (safe wrappers around C and C++) while Rust has no usecase.
>>
>>106513539
Your post has been processed by Rust code in order to end up here.
>>
>>106513303
>buffer overflows
I don't get it. Don't address sanitizers tell you this? Or there are some obscure cases where it doesn't pick those things up?
>>
>>106513554
No it wasn't.
>>
>>106513557
My brain tells me, I don't use sanitizers, because I'm already sane.
>>
>>106513504
Then encourage positive discussions instead of participating in negative discussions as a third side
Don't feed these people, they want to discuss anything, the Rust vs C++ and stuff about Indians is just an excuse
>>
>>106513568
Cloudflare uses Rust for proxy
Firefox uses Rust for styling
Chrome uses Rust for font rendering
That's just off the top of my head.
>>
>>106513616
Copying bytes isn't processing.
>This is the kind of retarded nigger that tells me that I need bounds checking.
>>
>>106513557
He is retarded. He thinks bound checking optimisations depend on branch prediction.

>106513622
>let me just keep talking about Rust to prove how much I hate when people talk about Rust
>>
Bounds checking optimizations depend on your ability to do preschool math lol.
>>
File: Kiss.png (3.29 MB, 2100x2800)
3.29 MB
3.29 MB PNG
>>106513592
This maid is very cute. Thank you for posting her.

>Then encourage positive discussions instead of participating in negative discussions as a third side
I am trying to encourage positivity. I want this to be the nicest, cleanest Maid Cafe on the internet. I want newmaids to see the posts here and become inspired to contribute positively. I want a culture shift. If this requires a "third side", then this is acceptable.

>Don't feed these people, they want to discuss anything, the Rust vs C++ and stuff about Indians is just an excuse
I'm not asking them to stop talking. I'm asking for a higher standard of talking. Instead of racism or transphobia, I'd rather see code examples explaining why she likes one language but not the other. I'd rather see technical analysis than noise. If I was to tell you that Java is for "white men" and Javascript is for "troons", I did not actually convey useful information. All you would know is that I like one language and dislike the other, without explanation. Even if that was all I wanted to convey, there are politer and more direct ways to do so.

>instead of doom I'll make flowers bloom for everyone around to see
>>
>>106513389
best /dpt/ poster
>>
there has to be a solution for permanently eradicating maidniggers from these threads
this kind of off-topic insult to everyone's intelligence must not continue
>>
>trying to install slycot on linux
impossible.
>>
do i really need linux to be a proper programmer

also name a single debian based distro
>>
>>106514209
good debian based distro :)
>>
>>106514209
Using anything but Linux is just making things harder for yourself.
>>
>>106514027
Maidposting is the best thing to happen to this board in a decade.
>>
>>106514209
I really don't consider people using windows "proper programmers".
Sometimes you have to deal with these people.
I use debian stable but have chroot for ubuntu 22 and 24.
Most software I have had to deal with has had build instructions for ubuntu so you need that environment.
>>
>>106514209
Ubuntu
>>
>>106514209
It's easier to use, if you ask me. One line in the terminal and you get the dependency you need
>>
>>106514209
depends on the language
if you're using something portable like Java then it makes literally no difference, just use the OS you're most familiar with
if you're using something "portable" like C, yes you should use that specific OS
>>
>>106514209
depends on the language and goal.
video games? it doesn't matter, unity / godot / game engines are all cross platform.
oh you want to make a game without an engine in C / C++? the OS is not the #1 issue, and you are going to boot if you did use linux if you want to make windows builds. Windows has WSL if you wanted to use GCC/etc, but the main appeal of linux is that it's not windows.
Not making games? JS / C# / python are the still the best languages for whatever you are doing, and the OS doesn't matter (you are more likely to get the code working on the OS you dev on, because you still need to deal with OS quirks like how the filesystem on windows locks files that are open and etc).
there is a debain version of mint but I think debian is a meme, ubuntu being popular makes linux mint easy to use, but linux mint doesn't need gnome and whatever else ubuntu uses.
>>
>>106515411
>and you are going to boot
*dual boot
>>
>>106514209
>do i really need linux to be a proper programmer
No, unless you have a weird restricted definition of "proper programmer".
>>
Whats the purpose of making classes that just contain like a single int or something
I've seen people do this
class data
{
int x = 0;
}

and they wrap their raw data up in a class like that.
>>
>>106515585
Type safety.
The int with value 100 inside class Kilo is kilos, not liters, seconds, or papayas.
So you can define the overload + with Kilo and Kilo, and never sum kilos with seconds.
>>
>>106515653
x is a private class member you can't even access it
>>
>>106515585
Type safety and methods.
For example I use types that represent moment in time, duration, frequency, color, gpio pin, etc, and even though they all are fundamentally just wrapped, singular integers, they all carry very different meaning and I wouldn't want to accidentally assign one to another. Each also offer very different methods and it wouldn't make sense to read input level from a color or get alpha from duration.
>>
>>106515585
Now that they're wrapped you can't do equals(my type, int) or other stupid shit. You also have to change far less things if you decide, for example, to change x's type to an enum, UUID or whatever. An unwrapped value means that every method that uses this value has to change its signature if you change the type, even if it's just passing the value without any further processing.
Might not sound like much to you right now but as things grow you might start to appreciate them.
>>
I fucking hate Pascal.

>>106513413
Suck my dick, faggot.
>>
>>106509310
Good point
>>
I'm going to be a tripcode maid, but I don't know yet which name to choose
>>
>>106515981
What kind of projects are you going to make?
>>
File: 1732614963726152.png (261 KB, 2417x937)
261 KB
261 KB PNG
rust-gpu works without too much fuss at all. I hope it keeps getting worked on.
>>
File: 1757283341932.jpg (148 KB, 966x924)
148 KB
148 KB JPG
>>106516404
Projects?
>>
I'm being asked if I'd like to look into some C# application on the side.
I program in C++, never touched C#.
Any resource or advice for me? Perhaps there's some relatively up-to-date book that does an introduction to C# and its ecosystem for an experienced programmer?
>>
>>106516404
I'm the one making the cryptography library, but I'm tired of repeatedly using Ellen Joe
>>
File: maidbooru.png (377 KB, 1919x649)
377 KB
377 KB PNG
I am making a maidbooru so maidposters will have an easier time finding maids to post. The API is basically done. Tagging works. Uploads work. Search works. The codebase is written in Java 23.
>>
>>106516704
durgamaid...
>>
>>106514209
if you’re a game dev you have a good excuse not to touch linux. ultimately it doesn’t matter that much, linux doesn’t have a good debugger anyway
>>
>>106513636
>He thinks bound checking optimisations depend on branch prediction
they do though? it’s just that an out of bounds case is so rare they’re essentially free
>>
File: Cat maid.jpg (410 KB, 992x992)
410 KB
410 KB JPG
>>106516704
The images are labeled "unknown" because I do not know the artist of any of them. I am thinking about changing the display so that the character name is there instead of the artist name, and the artist is just one of the tags. So far it only allows images, but I am considering allowing video uploads. The content is all SFW so it can be shared on blue boards. Sourcing maids is the hardest part of maidposting, and maidbooru will solve this.

>>106516735
I will now namefag as this. I also used Spring, Thymeleaf, PostgreSQL and Docker.
>>
>>106516704
Amazing
>>
>>106516779
Well, yeah in some(most) cases that might be true. But branch prediction is not something you should rely on when optimising bounds checks. If you can't afford bounds checking in certain places, you should either ensure that it is statically known your index is in bounds(by a check before loop, modulo or assume_unchecked) or just use _unchecked function variants.
>>
Now I can finally filter you degenerates out.
>>
>>106516486
Keywords are "OOP" and "convenient". Since you already know C++, you can breeze through:
>https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history
and google whatever concept you haven't heard of before.
I think you can get official takes about new features from C# 7 - 10 and then from the docs for version 11 - 14 (same as above link)
As for the .NET standard library, it flows naturally between your fingers. You can always ask LLMs and specify which version you're using.
You just have to understand the layout:
>System namespace instead of std
>namespaces only contain types or namespaces, so no flags/consts/functions everywhere, but they exists as enums or Option structs/classes
>namespaces are used to organize the code e.g. System.IO is for io, System.Net is for networking, System.Collections .. and so on
Generally, you are provided two ways (obviously could be more) to do things: the manual/C-like way and the one-shot or convience APIs. Sometimes the convenient way is improved upon with later changes to the lang and lib.
That's it for the BCL (base class library aka .NET aka standard library aka corefx) and the language (compiled by roslyn)
Package management is just "dotnet add package name version". Simply google "nuget LIB NAME" or "C# bindings for lib X"
You'll rarely need to modify the csproj (project file) manually. The most common use is copying or embedding files to output or using the built-in flags for instrumenting the runtime and build options e.g. selecting the GC, public single file or not, native aot, so on.
The runtime is called coreclr or CLR for short. It uses mono (used to be independent impl. of .net for *nix) for wasm and mobile devices.
.NET framework is the initial windows only framework
.NET core was the slimmed version for supporting ASP.NET on *nix
.NET is new the name and way forward (includes .NET framework projects migrated to run on core e.g. wpf/winforms, .NET core, and mono)
>>
File: Cat maid2.jpg (2.32 MB, 2332x3600)
2.32 MB
2.32 MB JPG
>>106516902
There is only cuteness for you, and positivity for your people. Maidbooru is only the beginning. We will have a have a maidchan full of a great number of maids. We will sail to a billion sites, spreading positivity, creativity and cuteness until every site on the internet is doing heart hands. You may be /g/grumpy, but maids are beyond /g/rumpiness. We are maids, and we have come for the internet.
>>
>>106516486
Oh and you already have built-in templates e.g.
>dotnet new console -o projName
for cli
>dotnet new webapi -o webProj
for an api backend and so on for mvc, classlib, etc.
You can install new templates, but I've only ever needed one for a large GUI frameworks that provided generators, huge build modifications, lsp for xaml, so on.
>dotnet run
>dotnet build
>dotnet build -c release
>dotnet publish
>dotnet tool install X
These are self-explanatory.
>>
>>106517022
I'm retarded btw
>>
File: file.png (11 KB, 280x280)
11 KB
11 KB PNG
I've broken free of the Microjew AI
>>
have you guys tried to use clanker agents? mine just deleted my whole project lmfao
why don't they know how to use the windows command line, like at all? even after trying to && a million times it still keeps on doing it. is it retarded?
>>
>>106514209
if you want to work as a professional programmer you will inevitably be asked to host something and you will want to host it on linux. but it's not something you need to learn right away.
>>
>>106517418
>have you guys tried to use clanker agents?
I have talked to them and asked them stupid questions before running locally on ollama, I don't think I would use it for code, the whole point of everyone saying a million times "you can to build projects not just read" is so you learn, if the robots write it for me I am not learning, i am just producing
>>
File: lol.png (125 KB, 649x455)
125 KB
125 KB PNG
>>106517418
No.
>>
>>106517547
lmao this is like hiring men straight from india
>>
>>106516486
Do you know what covariance and contravariance are?
>>
>>106517601
In Haskell this is just a profunctor
>>
File: admin panel.png (91 KB, 1919x633)
91 KB
91 KB PNG
I have made the admin panel for maidbooru. It does not allow external users. Uploads are admin only so that the collection is curated and I do not have to moderate anything. Maidchan will allow users to select images directly from the booru, so that only maidposts are possible on maidchan, and only from the curated collection. I will try to put ten thousand maids on the booru, so that maidposters have a variety of reaction images for their favorite maids. This also kills the glowie CSAM spammer, as he will only be able to post pre-approved, SFW maids.

>>106517097
Because of you, I will now also become a tripfag.
>>
>>106513121
I added the length to each entry in the dictionary (e.g. [a] = 1, [[[a],p], p] = 3, etc.) so that the dictionary entry comparison function could be much simpler and use TCO (before I had to walk to the first char, then compare on the way back up because I didn't know where to start comparing). Now it only takes about 10 seconds to compress. There's probably a clever way to store the dictionary entries (some kind of multi-level hash table maybe) to make the worst-case longest match lookup O(n)
>>
>>106518058
Even easier to filter now, which is exactly why I did that.
>>
>>106518058
By the way, message me on discord rawr :3
>>
>>106518318
Maids don't use Discord.



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