What you working on, Sup Forums?
Old thread:
What you working on, Sup Forums?
Old thread:
fuck you for posting an anime image
thanks for using an animation
sml or ocaml?
...
Why not Haskell?
>pure
eww
Rust
Looking for actual language and implementation instead of HIPSTER SHIT OF THE WEEK
Then learn Haskell.
...
thank you for posting an anime image
Kind of a noob question, but maybe someone can help me. When I type in a URL on Firefox: someurl.com
I get the response that I was expecting: code 200 and the information I requested.
However when I type the exact same URL on curl in the terminal, as in:
curl someurl.com
It gives me code 500 and doesn't fetch the information that I needed. What gives, am I doing something wrong?
What is it that Firefox is doing to get a different response than curl?
>What is it that Firefox is doing to get a different response than curl?
sending a referer
i'm retarded, i meant user agent, not referer, and other headers.
Thanks! I'll find out which extra headers Firefox is sending and put them on curl and see if it solves the problem.
If this was the system I'm working on, it wouldn't work because we use a session header to authorize your requests.
Halp plz.
What component is that, the black block with red top sections, bottom-left of the breadboard?
C or java?
Looks like switches of some kind.
rust isn't hipster shit of the week, far from it
few other languages have dared to bring features from functional languages like tagged unions and pattern matching and also fill the C/C++ systems programming niche
Am I cute, /dpt/?
Not programming
Is perl dead?
It was never alive.
>rust isn't hipster shit of the week, far from it
Right, it has passed the "hipster" part and has now arrived at being just "shit".
>python
don't
literally NOWT wrong with python
Let me guess, you're a Python/JS babby?
C
Python
Javascript
Java
SQL
is this everything a programmer needs?
whats the deal here... if i omit "while(cin..." and set x and y values to 1.01 and 1.02 inside the function, i get "faggets", but if try to read in x and y, entering 1.01 and 1.02 using "cin", i get "balls".
Perl 6 is kinda being developed, but it broke compatibility with Perl 5, so I dunno what to except.
Take out Python
Poor performance
Crippled lambdas
Stupid scoping
GIL
Dynamic typing
>Go (golang)
Fuck off, shill
>no functional language
Have fun being obsolete within 20 years.
got my game of life working, now i need to add stuff to it
Java has lambdas, that means it's functional, which is great because it means millions of programmers won't have to put in the effort of learning a new language DO YOU THINK I SOUND BITTER THAT THESE LAZY FUCKS ARE ALLOWED TO PROGRAM WELL YES I AM
>poor performance
not as if you'd notice for most applications
>crippled lambdas
hobson's choice
besides they are closer to the head.body concept
>stupid scoping
alternative?
>GIL
ok
>dynamic typing
mypy, typing annotations and the typing module basically make python a statically typed language when needed
fuck off contrarian, go has it's niche
Add indentation as code blocks.
>not as if you'd notice for most applications
I do notice though
>hobson's choice
No, there's a better choice, which is to have good lambdas instead of shit ones
>alternative?
The way practically every other mainstream language does it?
>basically make python a statically typed language when needed
HAHAHAHAHA maybe if I glue a dildo on my car seat I can get away with not using a car with an airbag or seatbelt too
>I do notice though
Tell me your story.
>its
FTFY
Also, go has no niche, it's a language straight out of the 1970s. Jesus fuck I mean look at how you pull external dependencies into a project in it. Also no generics, interface{}, returning products when it should be returning sums, the list goes on. It seems to want to be a systems language but it has GC, for fuck's sake.
I should learn Perl in 2017?
i tried using a load store architecture in BasicTVs console to improve scripting and it is, by far, the most infuriating experience. Going to add interpreting command line parameters as temporary registers and hopefully I can play some music.
On the bright side compile times got a lot faster
Every time I've rewritten some Python code in Java at work I've seen a speedup. Ten minute jobs down to three minutes.
Because you probably don't know how to develop properly in Python.
Not enough seizures.
Make yourself knowledgeable, but now Python is top today.
Is it worth it putting a simple graphical calculator and such on Github when I'm searching for my first programming related job as a java monkey.
I guess any displays that I can do different things are meaningful?
Wasn't me who wrote the Python code.
But that's a real shit argument anyway, one of Python's selling points is that it's easy to use, you can't just say "hurr well you're just not good enough at it" whenever somebody has a complaint.
how are you going to get better lambdas without braces (you aren't). lambdas are crippled anyway, they don't have docstrings or type annotations, so why not just define a function inside the function instead?
>The way practically every other mainstream language does it?
you mean, the way python does it (globals and locals)?
>maybe if I glue a dildo on my car seat blah blah
Non-argument
go's niche is concise, lightweight concurrency.
>look at how you pull external dependencies into a project in it
it better suits the way developers work nowadays with distribution by vcs repo and it keeps only one copy of each library which is more space efficient than cargo, venv, etc
>no generics, interface{}
ok
>returning products when it should be returning sums
?
> It seems to want to be a systems language but it has GC
i agree that go shouldn't really be called a systems programming language but it is fine for servers, microservices or small command line utilities
try pypy
nah
You need more than lambdas to be functional.
>language allows mutable state
D R O P P E D
It's easy to use which is precisely why so many people never bother to learn how to write performance critical software in it.
>concise, lightweight concurrency
Erlang is better
>how are you going to get better lambdas without braces (you aren't).
Maybe ditch that non-feature (no braces), then?
>why not just define a function inside the function instead
Why not just pass around function pointers and argument pointers instead?
>bothering to learn how to write performance critical software in python
If you're writing performance critical software in a dynamically typed language with a garbage collector then you're doing it wrong.
>how are you going to get better lambdas without braces
And after that the same people will tell me how Python is cool without braces.
What am I don't wrong guys?
The code compiles without warnings/errors.
>performance critical
>interpreted
Pick one
But putting in braces is HAAAAAAAAAARRRRRDDD
A three times speedup is pathetic.
Python should be around thirty times slower than Java.
You'd get a vast improvement in performance if you just changed algorithm rather than language.
Erlang is not concise at all. It's javaesque in its verbosity. Which is why Elixir was invented.
Does anyone know what these kind of tag things are called and how I would make this work in a Windows form?
No, not at all. Python has many benefits that would tip the scales in its favour. One of them is precisely the fact it's an interpreted language.
That three minutes is mostly IO, not much I can do about it.
on retrospect why would you even bother with writing performance-critical programmes in python? different languages are useful for different things. i use python for 10-line scripts, that's what it's useful for.
>Erlang is better
erlang has a higher cost wrt the runtime, the compiler, but it has still a different niche where reliability is required.
>Why not just pass around function pointers
Non-argument
Non-argument
Fair doolies then.
>Python
>scales
Is this some kind of joke?
>can't think of a counter-argument
>n-not an argument!
>Non-argument
Non-argument.
>interpreted language
>performance critical
so here we are, non-arguments reduce to non-arguments reduce to nothing.
IT ALL RETURNS TO NOTHING
I JUST KEEP USING SHIT LANGS
USING SHIT LANGS
USING SHIT LAAAAAA-AAANGS
IN MY HEART OF HEARTS
I KNOW THAT I SHOULD STUDY C AGAIN
Is it just me, or has thread quality dipped significantly this weekend?
pls anons
nvm guys, solved it
Can someone help me out pls
tank u
Non-argument.
Heh, I see you know well your Sup Forums memes.
not an argument
I do enjoy this meme.
thought of learning lua but i bet /dpt/ hates lua as well
Please explain how using a non-deterministic (for running time), garbage-collected, interpreted language is beneficial for performance critical tasks.
>array indices start at 1
dropped
You must learn already - the only acceptable language are Haskell and Lisp.
Lua is great and beats most other languages if you need a really simple and tiny embedded language. It's not bad to know it and it's fairly widely used but it's not a "popular" language at all. Some of its features like metatables and coroutines seem a bit outdated and are improved on in pretty much every other scripting language though.
Fortran starts array indices at 1 as well.
>the only acceptable language are
I think Lua is cool
Oh.
I guess we should start shilling for Lua, then.
Python fits well in applications that involve dynamic creation of scripts/profiles/settings/etc. Lots of software uses some sort of mini language for the task, but that's not always a viable option.
Lua is fucking based if you are going to interop with C, or any other language for that matter.
Just don't expect wonders when it comes to low level-stuff e.g. lack of a rounding built-in. It has floor and ceil, sure, but that's not the same.
Also if you rely on print formatting to do the rounding for you, it uses bankers rounding.
You just have to be prepared to do a few more things yourself.
Explain yourself.
Literally bash or powershell.
Why add fucktons of dependencies for a job you should be doing with built-in tools?
...
Bash is shit, and also bloat. If it's not a kernel module it's not "built in"