/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: 1534191187319.jpg (1355x882, 193K)

Other urls found in this thread:

lowes.com/pl/Trash-cans-Trash-recycling-Cleaning-supplies/4294599024
haiku-os.org/docs/userguide/en/applications/webpositive.html
lazyfoo.net/tutorials/SDL/16_true_type_fonts/index.php
docs.microsoft.com/en-us/dotnet/csharp/
pastebin.com/raw/UwVp6WDF
github.com/CosmosOS/Cosmos/wiki/Develop-Your-Own-Operating-System-in-C#-or-VB.NET
twitter.com/NSFWRedditGif

FUCK cmake

install shen

Attached: lain.png (934x1000, 265K)

malloc btfo
static char crap[1000000];
static int crapi = 0;
void * alloc(int len) {
void * result = crap + crapi;
crapi += len;
return result;
}

gprbuild is where its at

>Come home
>Another anime threadstart
>Realize I just missed LISP threadstart

Kill

Which one is more divine?
Shen or Go + D ?

Come on, Anone! You can do it! You can learn JavaScript!

Attached: 939296fc3d0a8729ddbc09a8506002bd.jpg (684x1024, 86K)

Make your own thread image where programming language gijinkas are rubbing each other's tits, so random idiots will repost it endlessly

you're all disgusting and should die

fpbp

Shen or idris will transcend you.
D will purify you.
Go will fill you with negative energy.

Attached: 1407559987375.jpg (685x830, 83K)

Working on my operating system a bit before going to bed. I’m really happy I added JSON read/write, it is turning out very useful.

Attached: 1E445B13-C8C3-406B-93DD-1E467EFE16DA.jpg (750x468, 51K)

Go + D = GoD

What's the next major feature you're working on?

is it templeos?

First for Erlang

Attached: hohoho.jpg (847x833, 109K)

post your last program written in erlang

Take too long to restart the posting process?

Unsure what I’ll move forward on first, but I’ve been tinkering with a simple HTML engine for use as a rich text control.
I keep meaning to look into how sound hardware works. I don’t know. What would you do next?

Can anybody point me towards some good resources for C#?

Holy kek

Nah it’s my own Serenity operating system :)

Attached: E531180C-99E2-4035-9ACA-74BCFACD8325.png (960x960, 1001K)

why

you still in Cork?

lowes.com/pl/Trash-cans-Trash-recycling-Cleaning-supplies/4294599024

C# in Depth, 4th Edition
by Jon Skeet
the Chuck Norris of StackOverflow

Nah that was a long long time ago

My code is proprietary, i'm not going to post it here for you neets to steal

Don't worry bro it's fine, I don't know how to compile things anyway.

get neo/vim ported if it's not already.
but a simple browser might be better, something like Haiku's haiku-os.org/docs/userguide/en/applications/webpositive.html

Can I get a quick crash course on rendering text with SDL in C? I'm basically done with this I just need to render the scores to the screen. The foo tutorials are in C++ by that point so I'm struggling a bit.

Attached: 2019-06-30_14-18-18.webm (1280x646, 2.58M)

>ports
I don’t mind ports too much but focusing on ports kinda defeats the purpose of building your own thing :)

maybe your own version of vi/m then.
But yeah I agree.

Attached: 1561901526324.png (132x132, 2K)

What is a ploxel?

Might do a vi clone at some point. I already have a gui editor that needs work though, so ehh, it’s always hard to choose if you think too much. Better to just follow the heart and hack away

have fun with unaligned memory access

C# in a nutshell
The docs
Stackoverflow
Video resources are all trash.

do this if you are lazy
lazyfoo.net/tutorials/SDL/16_true_type_fonts/index.php
else if you want to render aesthetics pixel font use BMFont generator

Attached: IBM8X8_0.png (128x128, 3K)

any way to set up your build system so that you can build on both linux and windows without using visual studio or mingw?
I was thinking I could pull down my dependencies from git and build them at configure time using CMake's external project feature. That would eliminate having to locate its library path on windows. But now I have the problem of dealing with the actual build files generated by the external project... I can get a makefile or a vs solution... both are unusable to me as I want to build this from the command line without using mingw... maybe I can invoke MSBuild from the command line? What do?

Attached: mpv-shot0003.jpg (1920x1080, 195K)

Daily reminder that OCaml is the future.

Do not forget that today that 99% of Fourier Transformations are made by OCaml. And in the future it won't be just Fourier transformation it will be everything.

Chose the winner side and learn OCaml.

Attached: ocaml-logo.png (500x500, 20K)

Thanks for ideas btw user, I appreciate it!

Attached: 1B620537-573C-480F-81DE-82ED643010F9.png (635x872, 1.31M)

>99% of useless things
Wow!

post your last program written in OCaml

based

It's too big to post here and I don't want people to know my github name

The docs?

pastebin

Fourier transformations useless? You're funny and know nothing.

Proprietary code, I'm paid to code in OCaml.

You're not me.

I know.

>I'm paid to code in OCaml.
sure you are lmfao

One can not just pastebin dozens of files

paste the one you like the most

we used to call it msdn online
docs.microsoft.com/en-us/dotnet/csharp/

pastebin.com/raw/UwVp6WDF

>docs.microsoft.com/en-us/dotnet/csharp/
Yeah if you already know some curly braces or C style langs then the intro and examples are basically for you. I wouldn't be worried about the .net standard lib as there are plenty of resources and S.O answers for many many problems that lazy people before you came and asked about instead of reading the API docs.

I've been using it for a lot of stuff but the c++ stuff leaves me completely lost. Is there a minimum viable implementation I can work from?

Attached: 1557363555497.jpg (208x243, 5K)

how much are you paid for this?

Yes I am.

What do you guys think of darklang?

Attached: reading and traveling hitler.jpg (1080x1071, 130K)

No

saved

I don't know why people here don't trust me when I told them that I'm a professional OCaml developer. Or maybe they're just trolling.

I don't flex my salary here like insecure java programmers.

sdl2_ttf is pretty easy to use, just search gitpleb for examples.

Attached: 1561844306983.png (700x700, 202K)

so you do it for free? you must love the company

part1
-module(reee).
-compile(export_all).
main() ->
run(true).
run(true) ->
Getlist = [44,77,0,64,2,100,7,5,12,4,88,100,0,2,1,5,0,9,7],
List = Getlist,
List2= [],
Mainr = main1(List, List2),
io:format("\nMain Return, Finished ~w~n", [Mainr]).
main1(List, List2) ->
io:format("\n\nSTART -> Running main1(List) ~w~n", [List]),
io:format("\n\nSTART -> Running main1(List2) ~w~n", [List2]),
case checkzero(List, List2) of
no_zero -> io:format("main1->checkzero(List) No zeroes ~w~n", [List]),
io:format("+++++++F List2 ~w~n", [List2]),
io:format("+++++++F List1 ~w~n", [List]),
List11=list_to_tuple(lists:flatten(List)), io:format("+++++++F List11 ~w~n", [List11]),
List333=[List2,List11], io:format("+++++++F List333 ~w~n", [List333]),
FinalList=lists:flatten(List333),
% -> %FinalList=lists:append(lists:flatten(List2),list_to_tuple([List])),


%FinalList1=lists:flatten([[FinalList]]),
% FinalList1=lists:flatten(List2),
io:format("+++++++Final List ~w~n", [FinalList]);

{zero,List2} -> io:format("main1->checkzero(List) THERE ARE zeroes ~w~n", [List]),

[H|T] = splitzero(List, List2),
%T_nozero = removezero(T),
%[[AccList_H]]=[[H]];
io:format("splitzero List H ~w~n", [H]),
List3= T,
io:format("splitzero List flattened T ~w~n", [List3]),
%io:format("REMOVE ZERO List T_nozero ~w~n", [T_nozero]),
io:format("About to run main1(List1) ~w~n", [H]),
%ListOfLists1 = [ListsOfLists]++[H],

List1= [H],
io:format("==FINAL List to be build List2 ~w~n", [List3]),
io:format("END __________ListOfLists ~w~n", [List1]),

main1(List1, List3)
%checkzero(T_nozero)
%ListOfLists = [[]]++[H]

end.


%Multiplelists = splitzero(List),
%Lists_no_zero = removezero(Multiplelists),


%io:format("\nSplit lists : ~w~n", [Multiplelists]),
%io:format("\nList with no zero: ~w~n", [Lists_no_zero]).


idiot

it's pretty bad when i have to put in effort to hunt for actual code.
Whole thing looks another vlang

this world is a hell and i want to die

Attached: 9.jpg (600x600, 42K)

>almost an hour later
Posting process having a tough time?

can i do anything outside of game development with c#? i want to learn it so i can make games as a hobby but if c# is more of a gamedev only thing then I might go for c++

>fix bug
>program is slower

Attached: f2fda300f0d18615a7730bfaaff420061528044128_full.png (640x360, 250K)

you can make gui apps for windows far more easily than in c++ (unless you use qt)
i woudlfnt recommend that language though, too much m$ control

don't steal my joke you dweeb

>can i do anything outside of game development with c#?
c# can and is used for pretty much everything.

C# is a general purpose lang lol.
>too much m$ control
.NET is literally open source

Install 9front

Attached: 999999999.jpg (512x384, 41K)

to think this post actually helped me today.
I won't give up.

your mother is an open source project that can be relicensed any time

except making OS
well I heard some tried to do it, but mostly discontinued projects

github.com/CosmosOS/Cosmos/wiki/Develop-Your-Own-Operating-System-in-C#-or-VB.NET

>Dark uses a concept from Scott Wlaschin called “Railway Oriented Programming” to reduce this complexity. ROP is a metaphor where the error values of Results and Options form an alternate execution path through the program, called an Error Rail. When an error happens, the execution in the main body stops and instead passes over to the Error Rail.
>It’s conceptually similar to Rust’s try! and ? macros, except that the Error Rail is automatic, and both the Error Rail as well as expressions that use it, are explicitly indicated in the editor.
>A core thesis of Dark is “Don’t use the word ‘monads’”.

Attached: 1487881739407.jpg (473x356, 13K)

hmm noice
it seems pretty alive

nice, I'll pick it up then. and I don't have any problems with it being tied to MS by any means, i intend to learn at least another "low level" language. I already know the python syntax and am trying to understand how to use it in real programs

if it's a semi-popular lang, someone is doing their best to write a kernel with it.

>or VB.net

Attached: 1528599950280.png (250x250, 92K)

f x = (if x < 0 then negate else id) x

part2
not sure why but every time I try to post code in code (in code tags) I get Connection error
r8

Attached: Untitrhhygtfrghjytled.jpg (753x963, 190K)

I felt that way too when I read those things, but as much as I love functional programming and category theory most people don't. I'd rather take a dumbed down fp lang than java.

C# is very high level and managed. If you want to learn a low level lang, learn C++

I don't see how "railway" is less confusing than "monad". At least one of those terms isn't overloaded.

>railway orientated programming
>error rail
choo choo

Attached: 1559671739466.png (393x390, 109K)

Install Plan9

why is getting involved with game development whilst still managing to improve on my actual main specialization so hard? all I want is make some fun games but that seems impossible if you're taking it as a hobby because it requires so much of the time I could be investing on getting better at universal coding

Attached: 1547436947934.jpg (500x281, 20K)

lmao what `low-level` features does C++ offer?

basically everything that's in C

Are you implying C is low level?

>C
>low level

Average indie game is 90,000 lines, mostly gameplay code. You need to be able to churn out 30,000 lines a year to get anything done in time. Most programmers reach nowhere near that level of productivity.