[ / / / / / / / / / / / / / ] [ dir / asmr / ausneets / bflo / htg / kc / leftpol / vrtx / zoo ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

New Nerve Center Combination

File (hide): 4d83c99eec7ee06⋯.png (109.48 KB, 553x502, 553:502, 4d83c99eec7ee068957afd38b0….png) (h) (u)

[–]

 No.883260>>883523 [Watch Thread][Show All Posts]

I think it's obvious. You have to decide between speed and code complexity. They took speed so they went with C, even though we know that the code would be much simpler if they used Brainfuck instead, because it's syntactically much easier to process for humans since there are only 8 tokens to remember. Not just that, the compatibility aspect is a huge one too. Being written in C makes it easily to integrate into other languages (relative to something like Java for example). SQlite would be nowhere near as ubiquitous without that trait. C also contributes to SQLite's ubiquity by nature of virtually every platform having at least 1 C compiler. Any native language with the ability to export C-style functions (e.g. C++) can do that just as easily. Eh, you'd have to wrap everything in 'extern "C"' to use C linkage, which iirc means that you can't use some key language features like virtual functions. For the external API/wrapper at least. You can't use C++ features in the public interface in that case. Internally, you can use whatever you want. Picking C++ means you have to use 'extern "C"'. Picking C means you don't have classes, don't have builtin data types like string and map, don't have any form of automatic memory management, and are missing about a thousand other features. Most C++ libraries that expose a c interface have a shim. Just another layer of code to maintain and test. It's not like there are hash table libraries for C. Everyone just writes their own from scratch!

 No.883277

>Picking C means you don't have classes, don't have builtin data types like string and map, don't have any form of automatic memory management, and are missing about a thousand other features.

and nothing of value was lost


 No.883523

>>883260 (OP)

>the code would be much simpler if they used Brainfuck instead, because it's syntactically much easier to process for humans since there are only 8 tokens to remember

01010100011010000110010101101110001000000110001001101001011011100110000101110010011110010010000000101000011101110110100001100001011101000110010101110110011001010111001000100000011010010111010000100000011100100110010101110000011100100110010101110011011001010110111001110100011100110010110000100000011000100110010100100000011010010111010000100000011101000110010101111000011101000010000001101111011100100010000001101101011000010110001101101000011010010110111001100101001000000110001101101111011001000110010100101001001000000111001101101000011011110111010101101100011001000010000001100010011001010010000001100101011101100110010101101110001000000111001101101001011011010111000001101100011001010111001000101100001000000110001001100101011000110110000101110101011100110110010100100000011010010111010000100111011100110010000001101010011101010111001101110100001000000011001000100000011101000110111101101011011001010110111001110011001011100010000001001111011010000010000001110111011000010110100101110100001011100010111000101110


 No.883657


 No.883662

File (hide): eac2c6bef09217a⋯.png (26.8 KB, 527x409, 527:409, 1432867806695.png) (h) (u)




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
4 replies | 1 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / asmr / ausneets / bflo / htg / kc / leftpol / vrtx / zoo ][ watchlist ]