[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 / qa] [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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1719428487764.jpg (28 KB, 608x646)
28 KB
28 KB JPG
I purposefully encode CSV data with null byte as the delimiter to cuck cniles
>>
Kek, it's quisit!
>>
>>103377413
> i encode csv data as c strings
Yeah if your data is gonna contain commas, semi-colons, and spaces, that's probs not a bad solution.
>>
>>103377413
Ingest asbestos and die on the christmas dinner table in front of your family
>>
>>103377413
YWNBAW
>>
>>103377413
it isn't hard to run awk to replace them
>>
File: GOwKz39WwAACros.jpg (114 KB, 1200x1152)
114 KB
114 KB JPG
>>103377559
>>
kek
>>
>>103377413
nobody will ever use ur csv data, or worse, ur csvs don't even exist, also
>csv
>>
You know, this is not entirely a bad idea. The null byte is a good delimiter in general.
>>
>>103377670
Why not a specific character designed for delimiting instead?
Just add one.

>this is actually how we went vague breath characters to a periodos
>we also went from ˙ and · to .
>>
File: 1729577094726905.png (76 KB, 437x425)
76 KB
76 KB PNG
>>103377413
why would you do that to me
>>
File: crab-knife.png (12 KB, 749x750)
12 KB
12 KB PNG
>>103377413
>I purposefully encode CSV data with null byte as the delimiter to cuck cniles
you only fuck the retards who dont have their own string libraries tho
and they deserve it, tbqfamalam
>>
>>103377982
>Cniles have to write their own standard library because libc is so dogshit
>>
File: hampster.png (343 KB, 720x797)
343 KB
343 KB PNG
>>103378004
libc is so dogshit bc everyone writes their own library in cs 101
you got the order of operations wrong
>>
>>103378027
Average CS 101 students are smarter than Dennis Ritchie (you probably don't know who that is).
>>
File: macron-and-boris.jpg (99 KB, 876x1178)
99 KB
99 KB JPG
>>103378042
no. its up to him to know who i am

also you mean youre taught a high level-down approach?
thats fucking retarded and has been established time and again on this board
>>
File: crab-stew.jpg (8 KB, 275x183)
8 KB
8 KB JPG
>>103378042
>and has been established
*which has been established
>>
>>103377413
thats terrorism
>>
        std::vector<char> fileread = readFileIntoVector(std::filesystem::path{dir.path() / "file.csv"});

std::string process_cmdline;

// and then restored
for (const auto &entry : fileread) {
if (entry == '\0')
process_cmdline.push_back(' '); // space
else
process_cmdline.push_back(entry);
}

it's another retard thread
>>
>>103378205
In Rust, this is just:
fs::read_to_string("file.csv")?.replace('\0', " ")
>>
>>103378205
>std::vector<char>
>C
>>
>>103377413
Sorry, we just don't really have time to care about your shitty CSV files. We're too busy writing all the code that actually does something (lossless compression, perceptual compression, audio processing, databases, OSs, game engines, etc).
Are you the guy who writes wrappers for my libraries, or the guy who stitches together those wrappers to implement "business logic"?
>>
File: 1733065804077770.png (339 KB, 496x502)
339 KB
339 KB PNG
>>103377413
tr "\0" ";"

IT'S OVER.
>>
>>103378369
>can't parse data with ;
its so over
>>
File: OOOOOOOOOOOOOOO.gif (1.44 MB, 456x462)
1.44 MB
1.44 MB GIF
>>103378369
Ó̵̡͇̥̤̟̪̫̜͕̟̈́͆͊̈́̃̌̋͋͛͆̂̈́̽̏̇͂ͅȮ̶̪̠͉͌̓͌̄̑͂̎̌͆͗͗̉̾O̶̢̨̨͈͔̪͓̳̩͚͗͗̊̓̓̈́͑̑͋͝Ơ̷̧̢̨̫̯̫͎̭͔̌̓̽̂̍̾̈́̈́̿O̷̭͙̱̎͆̚͜ͅǪ̸̛̟̜̬̠̫̗̤̯͔̝͚̪̓͛̂̉̌́͑̍̕͝͝ͅͅȌ̷̧̟̪̭̭̖̱̓́̒̈͝O̴̖̭̟̠̩̬̞͕̳͊̑̋́̈́͐̊̀̔͂̿̀͐̓̌̃͒͜͜͠͝Õ̴̧̩̮̪̤̍́͒O̴̧̧̯̮̺̖̘͕̙̟̦̘̯̮̫̰̗̊̈́͗̑͆̚Ö̸̡͕͔̬̥͙̙͇͚̍̏̀Ő̵̧̟̗̮͚̫̟͙̺̻̱͖̭͖̱̝̞͖̔̈̑͆̏̌̏̒̑̽̇͜͠Ö̵̫̮̩͎̬̗̟̠̮̳́̊̇̇̈́̏̚͘Ǫ̶̻͈̤̱͖̦̤͆̑́́͗͋̈́̍̕O̷̢̰̹̞͇̻̫̊̐̽͗̿̀͌̄̍̂̃̾̃͜ͅƠ̵̞̯̖̦̞͊̐͝͠͠Ơ̵͈̖͙̝͖̆̓͑̾̒͋͋̀̆̉̾̕͠O̵̡̧̨͖̥͍̫͚͖̥͔͉̤̠̙̜̍̒̇̍͌̆̀̓̂͜Ǫ̴̙͉̫̣̺̣́̂̿̉̓̀̔̉̇̋͌̓͋̚̕͜͜ͅͅƠ̷̧̛͈̣̞͍̥̩̦̜͈̞̮̪̖͐̈́̈́͛̕͝O̸̬̺̞̦͚̣̬̺̮͎͊͊́͂̇̄́Ǫ̷̠͓̳̯̤͍̤̻̯͈̯͙͚͕͗̾̈́͊̍̎̈̇̽̔͘͠ͅǪ̵̢̨̮̦̰̥͕͕̳̖͓̻͚͖̥̫̈́̓̚̚͜
>>
File: 1732986180413948.png (21 KB, 1000x800)
21 KB
21 KB PNG
>>103378450
>can't parse data with ;
It hasn't even begun.
>>
>>103378516
Speaking of odd chars like diacritics, why not just make a specific char for delimiting other than old linguistic markers?

Like a penis char or something.
>>
File: 1716614606104235.jpg (135 KB, 832x690)
135 KB
135 KB JPG
>>103377413
goddamn based holy shit
itt: cniles b.t.f.o.
>>
>>103377413
>purposefully cut off your dick
>>
>>103380967
>>purposefully cut off your dick
That's what using C is like. It doesn't even have real strings.
>>
File: IMG_0353.jpg (3 KB, 110x101)
3 KB
3 KB JPG
>>103377413
>>
obsessed
>>
File: IMG_0024.png (420 KB, 1024x643)
420 KB
420 KB PNG
>>103377413
Oh no no no no
>>
>>103377951
Already tried, every shitty 80s hardware vendor wanted to implement their own versión of that character and escape sequence required to type it. It didn't last.
>>
File: 1733184304008.png (376 KB, 496x502)
376 KB
376 KB PNG
>>103378369
where did u get it from this one is different



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