[ / / / / / / / / / / / / / ] [ dir / agatha2 / choroy / coz / doomer / fast / shota / vril / x ][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.
Email
Comment *
Verification *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): b573ad869e0cca7⋯.png (126.88 KB, 441x426, 147:142, Capture10.PNG) (h) (u)

[–]

 No.1046932>>1046938 >>1046957 >>1046976 >>1047201 >>1060748 [Watch Thread][Show All Posts]

Would it be technically possible to make an imageboard software in C? I ask because I was thinking for making a 3ds imageboard just for the keks, and I'm pretty sure you have to write 3ds homebrew and custom applications with C.

 No.1046938>>1046961 >>1046966

>>1046932 (OP)

There's literally nothing you can't make with C. Everything that seems more advances is effectively just a layer on top of the same basic functionality that C provides.


 No.1046945

WHYDUBUMPLOCKTHETHREADINEDGOODCONSTRCTIVEANSWERSTOMAKE3DSCHAN!


 No.1046957>>1046966

>>1046932 (OP)

You'll have to do everything from the ground up, it would be a good exercise.


 No.1046958

>I'm pretty sure you have to write 3ds homebrew and custom applications with C.

If that's the stage you're at - just learn any programming language.

Not the obscure shit though (no lisp or haskell).


 No.1046961>>1046986

>>1046938

>There's literally nothing you can't make with C.

You can't make a safe program, because C isn't memory safe, and the compiler isn't bootstrappable https://bootstrappable.org/


 No.1046966>>1047201

>>1046938

>I can't tell the difference between C and machine language

>>1046957

>using millions of lines of code is doing everything from the ground up

cringe and bluepilled


 No.1046976>>1046995

>>1046932 (OP)

Yes. You could make an FTP site that will accept anonymous uploads. Write in an SFTP application to upload images and just include a Qt-webkit browser for viewing shit. That or you can do full autists and make the entire thing a terminal application. I think you could technically do all of this with SSH and BASH scripting when you get down to it. You have SCP to move the image files back and forth and you. I think there are some scripts for SSH bulletin boards and some other applications you can probably modify for images.

I think secure FTP might be an option. The are FTP based chat application that just send a text file back and the application will use cat or for line in file: do print line. Displaying pictures in terminal can be done with applications like FIM.

So yeah all of this stuff could be done in terminal applications that already exist, at least as far as the networking and whatnot is concerned. It's not hard to display an image in a GTK or Qt application.

Start a Github for this OP. Maybe anons will help with code.

I personally hate C so I would probably end up writing the whole thing in Python. But honestly if it's a terminal application I could be done in BASH or any other scripting language. You could probably mock up a TCL/TK GUI easily enough.

IDK. Why C? Every other language is easier to write this in than C?


 No.1046986

>>1046961

Topkek


 No.1046993>>1046997 >>1046999

there already is dietchan, available here:

https://gitgud.io/zuse/dietchan

I translated from german to english here:

https://github.com/el1372/dietchan


 No.1046995

>>1046976

It has to be in C for 3ds. I would right in something else if I could.


 No.1046997

>>1046993

Thanks a lot that looks like it might actually work. I'm gonna test how the software is without the 3ds.


 No.1046999>>1047005

>>1046993

Wait how do you install this thing. I tried translating where it said install instructions but it didn't say anything about it.


 No.1047005>>1047019

>>1046999

its a cmake project:

mkdir build && cd build && cmake .. && make && ../dietchan 

make sure to have all the deps


 No.1047019>>1047195

>>1047005

Got this and I do hve Visual Studio, I guess I'll try to change some things,

[code]Microsoft Windows [Version 10.0.17134.648]

(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\anon>cmake -DCMAKE_BUILD_TYPE=Release . && make

CMake Error: The source directory "C:/Users/anon" does not appear to contain CMakeLists.txt.

Specify --help for usage, or press the help button on the CMake GUI.

C:\Users\anon>cmake -DCMAKE_BUILD_TYPE=Release . C://Users make

CMake Error: The source directory "C:/Users/anon/make" does not exist.

Specify --help for usage, or press the help button on the CMake GUI.

C:\Users\anon>cmake -DCMAKE_BUILD_TYPE=Release . C://Users make

CMake Error: The source directory "C:/Users/anon/make" does not exist.

Specify --help for usage, or press the help button on the CMake GUI.

C:\Users\anon>cmake -DCMAKE_BUILD_TYPE=Release . && make

-- Building for: NMake Makefiles

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error in CMakeLists.txt:

The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell

that can use the compiler cl from the command line. This environment is

unable to invoke the cl compiler. To fix this problem, run cmake from the

Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment

variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to

the compiler, or to the compiler name if it is in the PATH.

CMake Error in CMakeLists.txt:

The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell

that can use the compiler cl from the command line. This environment is

unable to invoke the cl compiler. To fix this problem, run cmake from the

Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment

variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path

to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!

See also "C:/Users/anon/CMakeFiles/CMakeOutput.log".

See also "C:/Users/anon/CMakeFiles/CMakeError.log".[code]>>1047005


 No.1047195

>>1047019

>Visual Studio

lol

>C:\Users\anon

cd C:\Users\anon\project

mkdir build

cd build

cmake ..

if you cant even compile this then I dont think youd have the ability to make a c project


 No.1047201>>1047521

>>1046966

>>I can't tell the difference between C and machine language

Perhaps its you that can't . Absolutely nothing is done with machine language - you would have to be extremely autistic to write machine language yourself.

Second, what your probably thinking of is the set of mnemonics that constitute are isomorphic to machine language called "assembly language". Virtually nothing is done with assembly except small segments of kernel, critical path routines in performant code (usually in embedded machines), and highly specific driver code.

Virtually everything is done in C, and most libraries are available in C, then exposed as bindings to interpreted languages. Almost certainly, every major web app platform probably makes extensive use of C libraries.

>>1046932 (OP)

There is nothing that forbids cutting out the middle man and writing your web app in C. There are already people who write web apps in lisp, there are practical reasons why you may not want to do either, but you definitely can, and people have.

One reason you might not want to write a webapp in C, is that it will be exposed to untrusted and hostile input, and its easy to make mistakes in C.

Also, writing your web app in C will not overcome the limitations of the client, so you might mean making a client and server app, which is totally fine, if you want more open ended functionality - except, I will never download and run a proprietary executable client on muh linux, specially not from a random anon - so a server + webgl in browser might be your best bet.


 No.1047521

>>1047201

>no, it's you who can't tell the difference between C and machine language

>I know you also can't tell the difference between machine language and assembly language because I'm psychic

>the computer literally runs C without a compiler

>C is cutting out the middle man

this one's going in my cringe compilation


 No.1060748

>>1046932 (OP)

If you have to ask you probably can't do it




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
18 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / agatha2 / choroy / coz / doomer / fast / shota / vril / x ][ watchlist ]