What are you working on, Sup Forums?
Old thread:
What are you working on, Sup Forums?
Old thread:
Thank you for using an anime image.
Every programming language is a Lisp in disguise.
Fuck you for using an anime image again
/dpt/-chan, daisuki~
Ask your much beloved programming literate anything (IAMA)
Explain.
Thank you for using an anime image.
Take your pills.
Macros.
Any sufficiently well-documented Lisp program contains an ML program in its comments.
Take your pills.
Fuck off, Rajesh. You sperged out for literal months wrapping your poo-in-loo "buu huuu animoooooooooo" statements in code blocks for every thread.
Is kivy worth learning?
For the sake of not starting a thread just to ask a, probably tired-out, old question:
What books would you all recommend for someone like me who wants to start learning networking, and on the side, building websites? And what programming languages are involved in such processes?
I don't even use this shit. I like Python and C/C++.
It is an undisputed fact that Structure and Interpretation of Computer Programs is the greatest introductory text to Computer Science that has ever been written. It is also a fact that The Art of Computer Programming is the greatest expert-level Computer Science text.
I was wondering - what text(s) join the two? What is the greatest intermediary Computer Science text? Is there one? I don't feel like someone could jump straight from SICP to TAOCP - but that doesn't necessarily mean there's a text that can bridge that gap. Do you just need real world experience to get to the level required for Knuth's works?
Any sufficiently well-documented ML program contains a Coq program in its comments.
I don't even know what this shit is. What's it for?
I'm going through the C# Player's Guide book.
Doing the last pieces of exercises in the book, right now doing a simple program that reads a text file, encrypts it with the Caesar cipher and then writes the encrypted text to a new file.
+18 please.
and? then lisp is any language having macros in disguise.
Nothing is worth learning.
How do you upgrade from Visual Studio 2016 to Visual Studio 2017?
its for guis in python
>Visual Studio
"encrypts"
>JavaScript """coder"""
Do you mean a license upgrade or the software upgrade? In case of the latter you probably have to install it separately anew.
Yeah, I know. Part of the excercise is to write a function that later bruteforces the "encryption".
B-but Lisp's macros are special because homoiconicity.
What are you talking about? You're less then 18, I guess. No one uses this shit, may be ML some use for compilers, I'm in doubt here're people who write compilers. These languages here are just fancy hipster words here.
...
Why isn't there C derivative that has as stable ABI as C but bit smarter compiler + actually good standard library with implementation of most used allocators and data structures? None of that over complex sepples shit.
Why isn't there standard ml compiler with good c ffi and actual threads, none of that green threads shit? Fuck ocaml is cluster fuck.
Why isn't there cross platform C GUI library that would be de facto for GUI applications? Instead people are making fucking web apps.
who are you quoting, retard?
>Uninstalling Visual Studio
This is something that can not be done. Dependencies that have to be separately installed all over the place.
I use gtk for my gui tools in python.
Perhaps people realized that C is no good for anything so there's no reason to build on top of something that's inherently broken.
>What are you talking about?
About this being an 18+ website.
>No one uses this shit
Please learn your words before you use them.
>I'm in doubt here're people who write compilers
It's not surprising that someone underage would think this.
You mean C++
D
More seriously, the Lisp reader can be reprogrammed to read any kind of syntax. Here's an example for JSON: gist.github.com
because those have been obsolete for years now.
D is not a good systems programming language
>tfw you install Visual Studio and for some fucking reason it just starts throwing random files onto your external harddrive despite you not having it installed there
Gotta love how it infects your system so thoroughly.
People are busy making shit than making your perfect C clone.
Why don't you go work on a compiler? LLVM exists as a target, the theory exists to make a decent type system, there are tons of lexers and parser generators
Don't want to? Then use C++; it works for most people.
How do I write a pop function for a linked list? It needs to return a pointer to an anonymous node (copy of the head) and also delete the head.
If the list looks like this:
ll = A(1)->B(2)->C(3)->nullptr
I need ll.pop() to return a copy of A(1), deallocate the actual A(1), and leave the list like this:
B(2)->C(3)->nullptr
help pls
It's been a long time since I was on Windows but I'm pretty sure Visual Studio actually offers an extra uninstaller (not your typical uninstall from Programs & Features) that takes care of most dependencies as well. I didn't mean to uninstall the old version either, I just meant that I don't think you can simply upgrade an existing VS installation and just have to install the new version separately so the two coexist (unless, of course, you later get rid of the previous one).
It doesn't have to be build on top of C, it just needs to as stable ABI as C or even better defined.
The language could be new standard.
rust
You're underage or student, I guess. Only juniors like these fancy words. No one uses this shit in production except of some specific cases which aren't the cases for this place.
Perhaps, let's see how it evolves.
Remember it still doesn't have HKTs.
...
>the theory exists to make a decent type system
What should I read?
Literally just make a copy of A(1) without the tail, and then modify the link list to point to B (which is the tail of the old A).
This is simple and you practically spelled it out in your post. Also you didn't even tell what language you're using or how your linked list structure actually works
neither does C
what's your point?
...
shut the fuck up and take this bullshit back to you both are shitting up this thread
i want to flash a smartphone to load a android 5.0 that i can also change settings with by making a certain app launch upon power on.
ok good for you
C is not a modern language. Rust is.
Rust has no excuse for ignoring decades of PLT research.
>You're underage or student, I guess.
If I said no, would you believe me?
>fancy words
Are you retarded or something? What are you even talking about? In what way is "ML" a fancy word?
>No one uses this shit in production
Prove it. I need a recording of every single person "in production" stating that they don't use it.
>except of some specific cases which aren't the cases for this place
These words don't make a whole lot of sense.
Yes, but how does this rule it out as an alternative to C?
There's a billion things out there for Hindley Milner. There's also Local Type Inference (Pierce/Turner) which has advantages of supporting higher rank polymorphism & subtyping, at the cost of worse type inference
Rust is fucking garbage, just like C.
>restricting yourself to decidable theories
>decent
t. paid Go shill
Go is worse than C.
Unfortunately it's also the only language besides Cyclone that has not ignored PLT research about linear types and regions.
>dependent types
>in a systems programming language
Good luck implementing this buddy
I wasn't joking.
>There's a billion things out there for Hindley Milner
What do you consider to be the best?
You have to start learning somewhere.
>actually writing code
>not just imagining logic, algorithms and abstract data structures in your head, becoming one with the cosmos, transcending beyond mere mortality
wow you're all such plebs
I know C. It's not a great language, but it does its job.
I don't know Rust. I would have to spend time learning it before being productive in it. If it turns out not to be a useful language, then that time would be wasted.
The rare specific use cases of these languages make these words fancy because one who uses them tries to show that he isn't a mainstream programmer or so.
>""""useful language""""
Is that machine code?
I've learned pretty of ultimately useless things in my life, but not only do you not know this until you actually familiarise yourself with them, but you also learn new concepts along the way that actually can have their uses in other situations.
Learning is never the wrong answer if you want to grow as a person.
here's my linked list class.
pastebin.com
No, that's Windows API.
no, it looks like WinAPI headers due to the hungarian naming.
>make these words fancy
Perhaps for underage retards like yourself.
>because one who uses them tries to show that he isn't a mainstream programmer
You used them yourself. According to your retarded logic you're not a "mainstream programmer" now, whatever that's supposed to mean.
>If it turns out not to be a useful language, then that time would be wasted.
It is a useful language for many things you might want to use C for. Even so, learning it helps you treat ownership more formally which helps any time you're programming in any language.
>What do you consider to be the best?
Dunno, maybe Types and Programming Languages?
I don't think you know what types even are.
>struct Node *next = nullptr;
>using node = struct Node;
You don't have to do that in C++, structs work exactly the same as classes except for the default visibility level.
I'm old enough that I don't have much free time now. I have to be selective in what I focus on. There are languages out there like Idris that have a higher chance of giving me something worthwhile for my efforts.
I'm working on adding my features to screenfetch.
Already added gentoo release version, and Intel Video Card detection.
>pastebin.com
node *copy = mHead;
copy->next = nullptr;
This code does not copy any nodes. If you want to create a copy of mHead you need to allocate new memory
Also the constructor leaks memory.
but apparently you still have time to post on Sup Forums.
I get what you're saying and I'm not blaming you, but just admit that you're too lazy to put effort into something you're not all that convinced of.
Moreover, instead of doing some real things like metaheuristic, simulated annealing, evolutionary computation, bayesian networks and so on. You just fucking around this shitty fancy words which after lexical analysis and parsing will be translated into binary so no one gives a shit.
>it's a machine learning faggot
node *copy = mHead;
copy->next = nullptr;
This does not copy mHead. You should just do
node* copy = new node();
copy->data = mHead->data;
copy->next = nullptr;
Posting on Sup Forums passes the time when I travel.
>machine learning
ah yes, I've spotted the HN node.js plumber.
thanks guys, how does this look?
pastebin.com
The algorithms are from optimisation and statistical reasoning. I guess it's a probablistic word 'Bayesian' triggered ML into your head.
>You just fucking around this shitty fancy words
Which fancy words? How much of a retard does one have to be believe that ML is either a "fancy" language or a "fancy word"?
>after lexical analysis and parsing will be translated into binary
That's not how any compiler I know of actually works.
Also, why are you calling machine code "binary"?
Yes, that was pretty obvious in hindsight. I'm pretty retarded for thinking I've been talking to a human.
You can study things while you travel.
In fact, reading course material during their commute is how many university students here start their day.
There is. It's called SDL and OpenGL.
Because everyone should write their UI library from scratch!