/dpt/ - Daily Programming Thread

Old thread: What are you working on, Sup Forums?

Other urls found in this thread:

pastebin.com/8DBiEdUn
github.com/BurntSushi/ripgrep
github.com/jwilm/alacritty
github.com/Aaronepower/tokei
en.wikipedia.org/wiki/Curry's_paradox
is2.Sup
twitter.com/SFWRedditVideos

C#

>tfw to intelligent to think in paradigms
I just use what works without considering how I'm fitting into some school of thought.

Xamarin is shit and you shouldn't be wasting your time with it

Reading the GNU C reference manual
Better than K&R desu

this

not so much this

Xamarin is bretty easy to get up and running with. That being said, I'm a total whore for Azure which made the process 10x easier for what I was doing.

Trying to make a modular synthesizer, currently working on a GUI (basically like picrelated, but not skeuomorphic or anything -- I'm not above programmer art).

"The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages." -Richard Stallman

...

"I enjoy toenail sandwiches after having sex with my pet bird" - Richard Stallman

This is coming from the same man that thinks no other language has a REPL.

Damn, Stallman is not only a political ignoramus, but a computer science one as well. Why do we like that dude again?

We don't. He's a meme.

No other REPL like a Lisp REPL :^)

Working on a small art toy in LOVE. Though as soon as I run it with the particle update function all particles seem to have a position of (0,0). What do?

pastebin.com/8DBiEdUn
Line 60 seems to hate me.

>the colour of that hand

This is a VM for my custom architecture, and programming it is getting very complex very fast.

Should have modeled it after the Lisp Machine architecture.

In my interpreter, should I run my devices asynchronously?

What does g think about it??

>HTML and CSS have been regarded as unpleasant to use and flawed since they were first created
>UI libraries nowadays love to make the programmer use HTML and CSS
really sets my almonds on fire

That's because everybody knows them, not because they're good.

>video game renderers
>inherently hardware accelerated
>can reposition elements with 0 cost
>can scale, transform, anything
>designed to fit content well on nearly every screen size and aspect ratio
>can bake vector fonts into bitmaps, do subpixel rendering, dynamically load and cache images and videos
>instead we use cpu-driven garbage 99% of the time for everything that isn't games and it's broken as shit on all but one configuration
I don't get it

Probably because the libraries use Chromium and leak that big implementation detail.

This nifty little phenomenon is called a meme btw

Look into the Bishop book or Murphy.

Apparently removing all external hardware brings down time to run the dword write loop to 9ms.

L'p pdnlqj d jdph!

I know this isn't, like, /dspqt/, but I have a question for you guys.
React Native, Xamarin, NativeScript or Flutter?

I really, really like this image.

>expecting anything other than a sandnigger

What are some small Rust projects I can study if I'm still relatively new to the language?

How is your progress in project euler?

Maybe github.com/BurntSushi/ripgrep ?

meme / 10

github.com/jwilm/alacritty might also be interesting.

A porn browser and an operating system.

that's because web standards are faster moving than most shitty toolkits.

also CSS has advanced quite a bit, especially with flex and grid design which basically makes making quality responsive content easy. I don't think any toolkit can even compete in terms of mobile responsiveness.

Noob question but how the hell do I create an empty class? When I right click on the project and go to Add it just says Existing item and New item but the tutorial says there should be Add>New File.
When I try to add a new item there is no Empty Class in the general tab.

github.com/Aaronepower/tokei is relatively small

Call it OSxxx

Why would I want "fast moving"? Nothing has fundamentally changed about graphical UIs since the 1980s except accommodating the introduction of (a) widespread multitouch screens and (b) head-mounted displays. I don't value shit that changes all the time, I value consistency and good design.

All I want to do is write a straightforward UI, but that's a pain on this game engine. It's a pain to even compile the libraries required to parse and render the fucking HTML.

What do you guys legitimately think of Xamarin Forms? Starting it going from C# in class and so far only made a hello world app.

What the fuck is it, and, more importantly, why the fuck is it?

Seriously, anybody? I looked up on different sources and they all point to this Add>New File from solutions pad but I can't find neither that or the Empty class template.

What is it?: A meme
Why is it?: See above.

Had to use it for my internship, was good when I first started, became the biggest fucking pain in the ass once i had to start downloading from rest urls asynchronously, catching stuff, or anything more complicated then single threaded, hit button make happen

I still code in C. Am I outdated and irrelevant?

no

No. C is fast and runs well. It is also somewhat close to metal, so it is applicable to lots of stuff.

How many levels of indirection are you on?

I'm a three-star programmer.

Best C IDE?

i dont know man ,, like 5 or 6

Outdated? Yes. Completely irrelevant? No, but quite a bit.

Dude. No. I never seen but i presume there is a lot of low-level works at Chipset companies?

>outdated
It's half a century old, so yes.
>irrelevant
No.

>Unironically quoting memes with very little context or reason

This is pretty damn autistic even by Sup Forums standards.

>complaining about memes
Welcome to Sup Forums.

You are like a child. Watch this.

template
struct any_of_impl {
template
struct any_of_helper {
template
static constexpr auto apply(bool prev_cond, Xs&& xs, Pred&& pred) {
auto cond = hana::if_(pred(hana::at_c(xs)), hana::true_c,
hana::false_c);
return prev_cond ? hana::true_c
: any_of_impl::any_of_helper::apply(cond,
static_cast(xs),
static_cast(pred));
}

template
static constexpr auto apply(hana::true_, Xs&&, Pred&&)
{ return hana::true_c; }

template
static constexpr auto apply(hana::false_, Xs&& xs, Pred&& pred) {
auto cond = hana::if_(pred(hana::at_c(xs)), hana::true_c,
hana::false_c);
return any_of_impl::any_of_helper::apply(cond,
static_cast(xs),
static_cast(pred));
}
};

template
struct any_of_helper {
template
static constexpr auto apply(Cond cond, Xs&&, Pred&&)
{ return cond; }
};
};

Oh god

I threw up a little.

Borland

Visual Studio :^)

Are you talking about this:
en.wikipedia.org/wiki/Curry's_paradox

I approve of this Haskell (C++)

*ponders sign extension and floating point representation methodologies*

Thank you for not using an anime image

So I have a header file called Buffer.hpp which contains a single templated class. It has no corresponding source file and it is included in other files, yet I noticed that gcc outputted an object file for that header/template.
How did it do that?

Probably because the templated code needs to be generated & substituted? I don't know though, just a guess.

I have minimal python knowledge. What libraries/tools should I use to build a nice looking music player? I only have 3 days to finish.

PyQt using QML

What about the actual audio player? Does python have it built in?

/dpt/ please send help
I'm a couple years in my informatics degree and I feel like a fool
I always just wanted to program and work on projects, learn languages
even more so after those first years but at the moments it's all theory on every subject - and math
not the least bit of what I came for
how did you make it through uni without dropping out?

Could anyone recommend a good reference python book? I don't need introduction to programming or introduction to python. I'm more interested in advanced stuff you can do in python in the pythonic way.

Read the section on floating point maths from Intel's IA-32 reference manual and get back to work.

Yes, QMultimedia module has audio stuff.

>I feel like a fool
yeah, because you are one.
>I always just wanted to program and work on projects, learn languages
all of which you can do by yourself. too bad you're too much of a retard to either realize this or do it on your own.

Python 201 by Mike Driscoll might fit the bill?

Basic ass Java. I feel like a baby

but what can I do alone besides stupid project euler shit? No one needs another tea timer app or work flow organizer app, where else can a student contribute?

Finally some use for my c# knowledge

enter any club, for sure u have many of them around. find more people that think like you, do brainstorm, come up with idea and work it out

yep, just confirmed my suspicions about you being a retard who is simply incapable of doing or even deciding things on his own. i hope you're still relatively young, otherwise things might already be too dire for you

ok, I guess
good idea

is2.Sup Forums.org/wsg/1485151911010.webm

But rust isn't OOP. It should be scala in the bottom.

those are not turtles

machine learning and neural net is cool. i retwatched terminator 2 yesterday and it reminded me that machines will eventually kill us all

every tortoise is a turtle
not every turtle is a tortoise

those are turtle

>machines will eventually kill us all
That's the only thing that gives me hope, user!

Effective Python: 59 Specific Ways to Write Better Python
-Brett Slatkin

me too strangely haha, after the movie I felt like programming in the hopes I could do something to accelerate that future

I briefly flicked through it and it seems this is the book I was looking for. Thanks user.

What does /dpt/ think of Go and what does /dpt/ think of Go compared to python?

vv < <
2
^ v<
v13v4
^ ^
> >?> ?>5^
v v
v97v6
v v<
8
> > ^
vv < <
2
^ v<
v13v4
^ ^
> >?> ?>5^
v v v ,*25

go is my go-to

nah we're going to become machine hybrids

we just got to figure out how segmented mind uploading so we can ditch our meat suit without dying first

THE FUCK IS THIS

In java is there a method that gets a hexadecimal string and returns an integer?
So like the reverse of toHexString

some sissylord has been trying to be clever and get (you)s by posting inverted or flipped text