/dpt/ - Daily Programming Thread

Last thread: What are you working on, Jow Forums?

Attached: dpt3.jpg (900x700, 110K)

Other urls found in this thread:

erlang-factory.com/upload/presentations/395/ErlangandFirst-PersonShooters.pdf
github.com/samrushing/irken-compiler/wiki/Datatypes
nightmare.com/rushing/irken/irken/lang.html
shenlanguage.org/shen.mp4
docs.microsoft.com/en-us/dotnet/api/system.collections.concurrent.concurrentdictionary-2
twitter.com/AnonBabble

First for fuck haskell
What an absolutely disgusting OP image

Emacs is the best editor for programmers

How long does it take to learn it?

sigh I head someone saying vim in a different thread

They've been fighting over this for decades. Don't expect a resolution. Ever.

This is a psyop by a Hasklet to make us think people who don't like Haskell don't like adorable kittens. Everyone sage and ignore.

First for C. Haskell seems nice too but muh bloat except unironically.

Yes
Fuck him

Go back there

First for nano

Attached: somethinghappened_background.png (732x533, 465K)

t. buttmad hasklet

Wow, I didn't expect a non shitpost reply

It doesn't take any longer than Vim to learn basic functionality like cursor movement shortcuts, opening and saving files, find and replace, and making/closing windows. If you seriously plan on learning Emacs might be helpful to write a little cheat sheet for yourself for these few basic functions so that way you don't have to try to navigate the manual constantly (same goes for Vim, probably). C-h k is also your friend for figuring out what a keybinding does.

chad nano
>fucks up your files unless you ask nicely
>why do you even have long lines user
virgin literally any other editor
>doesn't fuck up your files
>you'll just have to break anything yourself

Who spacemacs here

i use a combination of notepad++, sublime text, visual studio code, atom, and visual studio
i am the god of bloat

I used it until I saw that it wanted to update itself automatically
there'll be not BOTNET in my editors
I still use evil-mode though

Haskell and Rust suck because no mutable globals makes it a pain in the ass to get anything real done.

Rust has mutable globals

>>fucks up your files unless you ask nicely
source?????
never seen this behavior
if you're referring to hard wrapping then it's disabled by default
you can enable it if you want and there are actual use cases for it

>It doesn't take any longer than Vim to learn basic functionality
How long does it take to learn Vim?

is a flask server good enough for games? I usually don't trust this python stuff

15 minutes with vimtutor. Most of the other functionality you don't even want. Like *, who cares what * does. Fuck *

define "good enough" and "games"

give elixir a look since Erlang is pretty standard in game servers.

is that a meme about women being similar to computers in the sense that they don't really tell what's actually happening

Vi is designed to be a pain in the ass just for the sake of it.

Attached: 5BEDF078-926F-42E2-9512-F80F0BF52B98.jpg (600x400, 26K)

No

Attached: 1562491008234.jpg (806x720, 80K)

fast response times when there are more than 10000 people connected at the same time I guess

Are you trolling? If not, what games' servers use Erlang/Elixir?

longer than editors focused on GUI
FWIW Emacs does have a basic GUI and you can resize windows with your mouse and get to functions like file opening and find and replace through the menubar/toolbar

why are you angry?
>800-line error message
c'mon, just tell me why you're angry!
I'm not a mind reader!

what is it about then

Vendetta Online's the only I know of that uses Erlang (fuck Elixir. Erlang looks better. Prolog > Ruby)
Not sure what it uses Erlang *for* though. Could just be the chat.

something happened

erlang-factory.com/upload/presentations/395/ErlangandFirst-PersonShooters.pdf

I't s an [s4s] meme wherein whilst'd've bearies

Attached: the anine.gif (975x768, 563K)

I don't know Elixir but whoever uses it does so for more than its looks.

>use literal reskin of another language
>this isn't because of looks though

Trying to figure it if the bug is in my code or in the library I'm using atmtbh

Attached: Screenshot from 2019-09-08 15-24-07.png (3840x2160, 513K)

Interesting! Thanks.

>>use literal reskin of another language
elixir is in no way just a reskin of erlang.

F E A R L E S S

Elixir inherited syntax from Ruby but it inherited macros and polymorphism from Clojure.

what

Don't tell them but I made the other guy up so they would look for the other thread

he's spouting a rust meme

lol

Thank you for using a cat image!

this
finally something other than cumbrained animetard and lispmonster

Use Scheme

I like performance.

Vocal minority

Swap back to anime

scheme is pretty fast though.

Where would scheme fit into this diagram?

Attached: Screenshot from 2019-09-08 15-46-42.png (1330x774, 163K)

Gambit and Chez

not sure, good benchmarks for chez scheme are hard to find. And i haven't bothered to try to do any myself.
But Racket is switching to Chez Scheme for their backend, as well as Edwin Brady's main Idris2 backend is chez.
If you want fast, and want to try Lisp, try chez directly, or try the CS racket beta.

Which of this lisp of the weeks have any gtk binding?

>May I ask what you are building?
i am building a cli backup system. it consists of two separate programs:
1st is used to set up configurations that the 2nd app can use. it can also run, control and get various status' from already running instances of 2nd application.
2nd runs autonomously with the config that the first application provides on startup. stuff like which folders to copy from, which to copy to, when to move old backups, when to delete old backups, etcetc.
i am planning to make running the 2nd app on different machines possible. maybe add a super small "bridge" program that can receive commands from the 1st app over the network so that you can launch the 2nd application remotely.
this is why i had questions about paradigms since i would consider myself a beginner at programming. ive learned the basics like a year ago, been working on improving my understand in this field by building several small projects for only 2 months.

Hello guys, I was just wondering

I need to write a script(?) for my browser(Chrome) which will automate some actions

i have 0 experience in programming, except some HTML in school and BASIC shit in uni which was not about programming but about maths and algorithms

help me, please

search for a macro recorder like imacro

just use matlab and save the workspace variables

1. learn javascript and use greasemonkey/tampermonkey et al.. eloquentjavascript.net and javascript.info are sources for #1.
2. use selenium with whatever that requires.
3. hire a programmer
#3 is probably your best bet if but if you want to learn to program, #1 and #2 are where you'd go next.

You're welcome.
Variety is the spice of life.

Has anyone tried Irken?
>Irken is a simplified, statically-typed dialect of Scheme. It uses an ML-like type system supporting parametric polymorphism (i.e., "let polymorphism") and algebraic datatypes. With type inference and a pattern-matching syntax, it could be considered ML with a lisp/scheme syntax.

Attached: qq.jpg (400x323, 51K)

Does it have rank-n types?

I don't know what those are (you are welcome to explain it) but you could consult this Wiki if you're curious: github.com/samrushing/irken-compiler/wiki/Datatypes

Can you take polymorphic functions as arguments
>supports recursive types
based

nightmare.com/rushing/irken/irken/lang.html
>)
>)
>)
horrifying lack of style. This kills the lisper.
Shen meanwhile is written by a guy with
1. a British accent
2. knowledge of the Sequent Calculus
3. acceptable Lisp style

>a British accent
which one

>a programming language unironically based on invader zim

Attached: satanialaugh.gif (220x216, 39K)

>which one
this one: shenlanguage.org/shen.mp4

>When everyone in the threads always talk about vim/emacs/nano/etc but you have used notepad since 1990.

Attached: z.jpg (570x479, 82K)

nano is morally slightly worse than notepad.

Notepad is way better than vim, emacs, nano and most of all "notepad"**

Dunno what you two are on about, Nano is by far the most based editor.

ironic nano praise is still nano praise.
cut it out.

Praise nano!

Attached: 1566411753161.jpg (1280x720, 338K)

>modifying any List or Dictionary when youre looping through it in C# gives you a runtime error
C#? more like CSHART HAHAHAHHAHAHAhahahahahaah....hah.. :(

>RTEs
absolutely gross

mutable types could have prevented this

>*only when using pajeet C# syntax, and not the true C# syntax of the modern man

I'm praising it unironically. I use it for everything, fite me.
Nanorc for proof:

set afterends
set atblanks
set autoindent
set constantshow
set linenumbers
set matchbrackets "(]}"
set morespace
set multibuffer
set nohelp
set nowrap
set smarthome
set softwrap
set suspend
set tabsize 4
set tabstospaces
set wordbounds
set zap
set titlecolor brightwhite
set statuscolor brightwhite
set errorcolor brightred
set selectedcolor brightwhite,blue
set numbercolor brightblack
include "/usr/share/nano/*.nanorc"
unbind ^J all


I even created a .desktop file for it so I could associate text files to it.

Attached: nano.gif (400x225, 669K)

please teach me your non-pajeet ways user.

Attached: Screenshot_195.png (713x345, 326K)

What should it do?

well it would be nice if the program didnt give you an error while doing something as simple as this. lists in C# are immutable by design. there are some ways to get around this limitation though

works on my machine

class Program
{
static void Main(string[] args)
{
List mylist = new List();

for (int i = 0; i < 10; ++i) {
mylist.Add(i);
}

Console.WriteLine("Printing initial values:");
for (int i = 0; i < mylist.Count; ++i)
{
Console.WriteLine(mylist[i]);
}

for (int i = 0; i < mylist.Count; ++i)
{
mylist[i] = -mylist[i];
}

Console.WriteLine("Printing final values:");
for (int i = 0; i < mylist.Count; ++i)
{
Console.WriteLine(mylist[i]);
}

Console.ReadLine();
}
}

What a joke of a language.

Attached: 2019-09-08-120535_315x78_scrot.png (315x78, 7K)

I guess it tests reference equality? I guess it is a dynamic shitlang.

Is there any package manager for c++ on windows? I know there's nuget but I don't want to use ms compiler

you're comparing two pointers without overloaded operators. that's what supposed to happen.

It's a feature, not a bug(TM)

Would ConcurrentDictionary solve the problem?
docs.microsoft.com/en-us/dotnet/api/system.collections.concurrent.concurrentdictionary-2

it's your fault for using a c-like language

Types would have prevented this

>NOOOOO TO EXTORT MONEY FROM NORMIES YOU MUST USE OLD CRAP COMPILED LANG NOT SUPPORTED BY A SINGLE BROWSER

Attached: 1567526322755.jpg (1080x1020, 72K)

>didnt bother to test dictionaries
yeah my bad, lists work but dictionaries dont

Attached: Screenshot_196.png (676x106, 8K)

static unsafe void Main(string[] args) {
List data = new List(new int[] { 1, 2, 3 } );
for(int i = data.Count - 1; i >= 0; i--){
data[i] = i
}
}

see

This is one reason purity is important, if the only way you change data is across stack frames then you never need reference or pointer semantics for anything so there's no possibility of ambiguity and all operators can work by-value.

Retards

Dictionary data = new Dictionary({1, 100}, {2, 200});
var keys = data.Keys;

for(var key in keys){
data[key] = 0
}