Old thread: >>71383032What are you working on, /g/?
Trying to learn C#
>single handendly btfos fp fags in one fell swoophttps://www.youtube.com/watch?v=Q20MiBKdtf0
starting to learn pythonApparently the company I work in wants to shift away from excel VBA
>>71389438>starts off by confusing functions with proceduresman, suckless fags really are retarded
>>71389470i see you
imagine being a mentally ill cnile /pol/tard https://godbolt.org/z/WCegRfhttps://godbolt.org/z/UiSs7Chttps://godbolt.org/z/GDqWtv
Did you know that you can be naughty-naughty and download the MISRA standards off of libgen?
>>71389487I don't understand the mentality of people like you who come into these threads and post literally the same shit over and over again.Do you have severe autism? Are you just a bot?
>>71389478>imagine being this retardedhttps://godbolt.org/z/TW6JqQ
>>71389516>anything past 11
What's the best programming books considering general topics, not some specific language or framework?inb4 SICP, I've skimmed it and I found pretty basic, obvious stuff, not much of value for someone with a few years of experience.
>>71389529so what's the answer?
>>71389550It's pretty long iirc.https://youtu.be/OkgvqjJzH_Y?t=1637
>>71389516>std::sizeinvalid argument as only c++11 was being covered and size() was not mentioned yet
summing times in c is incredibly tiresome
>>71389487shit if only the language weren't so complicated the compiler was unable to reason intelligently about your code
>>71389568Here is a handy header: https://gitlab.freedesktop.org/wayland/weston/blob/master/shared/timespec-util.hKnock yourself out.
>>71389549it's an intro book, the less obvious stuff is in the last 2chapters, but only if you've never written an interpreter/compiler.just get a book on a specific subject if you aren't a beginner anymore.
C++>Just use whatever functions you want on T, if doesn't have it, it just won't compileModern meme languages>Noooooo, you must define an interface then make every class you want to put in the generic inherit from that interface, it's much more elegant!
>>71389604sepples does much more than that
>>71389604One of these is dynamic polymorphism and one is not.That said, I'd be interested to know if any language is able to infer constraints on type variables.
>>71389465He even race mixed.
>>71389604What are the "modern meme languages" you're talking about? Because the only one that does that is Java, and I wouldn't call it one.
anyone know here know a bit about RNNs? I need to know whether this paragraph is referring to word embedding. I'm quite convinced it is I just don't want to make write assignment based on a mistake>Most of the proposed neural machine translation models belong to a family of encoder–decoders (Sutskever et al., 2014; Cho et al., 2014a), with an encoder and a decoder for each language, or involve a language-specific encoder applied to each sentence whose outputs are then compared (Hermann and Blunsom, 2014). An encoder neural network reads and encodes a source sentence into a fixed-length vector. A decoder then outputs a translation from the encoded vector. The whole encoder–decoder system, which consists of the encoder and the decoder for a language pair, is jointly trained to maximize the probability of a correct translation given a source sentence.
>>71389604That's the main reasons why C++ has 300+ line template expansion traces.
>>71389465he said nothing wrong. put some bengay on that butthurt, faggot.
>>71389671make my assignment*
>>71389675The first line will tell you exactly where the expansion failed though. It's everything you need to know.
>>71389683What a great language.
>>71389681you retarded bro?
>>71389696no I just can't English properly
>>71389683>whereBut to find out why you need to dig lower.
>>71389706ni hao maaaa~ hokwai~
>>71389721at least answer my question meanie
>>71389676He said very little at all, and much of what he did say was inaccurate. For example>Functional programming language advocates implement everything in a functional styleScheme and other Lisps are perfectly capable of programming in functional style but also excel at procedural and object oriented styles. >You can use functional language style in GoGo doesn't even have the trivial higher order functions. Functional programming even as a local style in Go is absurd.The closest he comes to actual arguments are>functional programs are unreadableThis is 50% fair and 50% baby duck. Haskell programs often turn into overly terse and baroque one liners, this is an apt criticism. But he clarifies with an annotation that he means "functional programs are difficult to reason about" which is such a phenomenal falsehood I don't know anyone who could believe it. >functional programs do not map obviously to machine codewhich is not relevant to nearly anything which isn't embedded or systems programming
>>71389671do my assignment*this should be fine
>>71389434It's easy af desu.
>>71389760>Go doesn't even have the trivial higher order functions.you haven't done your homework>"functional programs are difficult to reason about" which is such a phenomenal falsehood I don't know anyone who could believe it. they (haskell and other ml family languages) can be difficult for a human who isn't an expert in esoteric maths concepts to reason about. meanwhile you can look at some well structured procedural code and ask"DOES THIS CODE OBVIOUSLY HAVE NO DEFICIENCIES?" and answer "YEAH">Functional programming language advocates implement everything in a functional stylein practice they do. if you don't write functionally, the community excommunicates you.sad that modern faggots have taken a good thing and turned it into an standoffish cult. why don't suckless use functional languages? because they're comfortable with procedural languages and happy with their resource usage. they are not obligated to use whatever language you'd prefer.
>>71389871>you haven't done your homeworkCool where do I find map/filter/reduce in the standard library? Can you even write const?>they (haskell and other ml family languages) can be difficult for a human who isn't an expert in esoteric maths concepts to reason about.Haskell maybe but other ML derivatives are usually straightforward. Procedural and object oriented languages by their nature make it much harder to see what changes made to parts of a system will affect others, while functional languages contain it much more obvious where this is the case.>in practice they do. if you don't write functionally, the community excommunicates you.It's basically just haskellers. Everyone else uses procedural whenever it's useful.
gotards be like "this is fine"
>>71389434I'm thinking of starting programming. But I don't know if I should learn C++, C#, Python or Java. My goal is to make a lot of money without working that much.
>>71389968>crying about higher order functions
>>71390018>My goal is to make a lot of money without working that much.good luck with that
>>71390036Imagine making a language so bad you can't even sort things correctly.
>>71389871>delusional gopher>hasklel too hard because muh math>hasklel is muh math>muh mutation clusterfuck is easier to find bugs>muh communityand cherry on top>sucklesswho's the faggot here. I really wonder
>>71390069Haskell IS too hard.
>>71390071It's only as difficult as you make it.
>>71390071stop being a brainlet
>>71389415I'm making an MVC framework for PHP.It uses config files for setting directories, defining the default controller to be executed and the default action name when calling a controller.It's for small to medium projects, not with high traffic.I have never coded in this language, it's a good way to learn.
Stallman:>I skimmed documentation of Python after people told me it was fundamentally similar to Lisp. My conclusion is that that is not so. `read', `eval', and `print' are all missing in Python. Can someone explain to me why functional programming languages like Python are inferior to Lisp?Is it the lambda bracket prefix thing syntax that makes Lisp different?
that's it goodbye forever apple shit I won't miss you
>>71390176Stallman is quite clear. Python lacks read, eval and print.Python is not a functional programming language.Homoiconicity is a good thing about Lisp but not the only thing.
>>71390204>Python lacks read, eval and print.It doesn't from what I can see these are in the docs.>Python is not a functional programming language.Literally every source I can find it calls it a mulit-paradigm language that supports functional style.>Homoiconicity is a good thing about Lisp but not the only thing.Care to tell me what's in Lisp, that is missing from other functional languages?
>>71389487I wish variables in C++ were const by default.Unfortunately, it's such a big change that I doubt it will ever be implemented.
>>71389549Most of it is basic, obvious stuff, but it's also stuff most programmers think they know, but actually don't.
>>71389487Is there a reason the compiler can't figure this out on its own?
>What are you working on, /g/Having some fun with some data entry type work. Converting Windows virtual key enums to linux keycode enums. Luckily there are only 104 I care about and <255 max.
>>71390253In Lisp, read is a function that takes a string and returns a symbolic expression. It's essentially a parser. Eval is a function that evaluates a symbolic expression with recursive eval/apply. Print takes a symbolic expression and turns it back into text.Python has forms of read/eval merged into one in the form of eval and exec. Unfortunately this negates much of the advantage of the approach used in Lisp. By separating read from eval you can manipulate Lisp programs as ordinary Lisp data structures before evaluating them. Homoiconicity makes this kind of manipulation even easier as it means the basic data structure of a program is also the basic data structure for everything else. Python is predominantly a procedural language with object-oriented extensions. Python does have first class functions but that's not usually considered enough to be a functional language and functional idioms are difficult to achieve in Python.Lisp is not a language, but a group of languages. This must be said because some Lisps are more functional than others - or proecdural, or object oriented. Most Lisps are multiparadigm and do all paradigms reasonably well.
>>71390018>My goal is to make a lot of money without working that much.C# then.
>>71389871suckless hereI use Haskell, xmonad, NixOS, etc. The UNIX philosophy is FP btw, chaining functions together that do one thing and do it well.
>>71390415Thanks for the explanation. If I wanted to experience the supposed power and elegance of Lisp (as per Stallman's description) how would I know whether the language is adequate (other than REPL)? Does Clojure fit the criteria?
>>71389415Working on a plugin for Jira.
>>71390462I love how Eunuchs weenies stretch the meaning of "Unix philosophy" to include literally everything.In 20 years, Kant will be considered a proponent of the Unix philosophy.
>>71390471The things that make Lisps different to other languages are common to Lisps, and you'll learn them regardless of which Lisp you use. Clojure, Scheme, Racket, Common Lisp, Emacs Lisp - if one clicks with you then you'll know what the deal with the rest is too.
Ẃhy not make lifetimes part of the type system in C++?
>>71390625What is your proposed syntax?
>>71390625>why not make C++ even worse
>>71389434How'd you learn it?
>>71390529Kant is a proponent of the Unix philosophy. "do one thing and do it well" satisfies the categorical imperative.
>>71390253Lisp isn't functional.Scheme and racket are, for example. CL ? absolutely not
>>71390718Scheme and Racket are so functional, they have a set! function to change global variables!
Fucking everything is partly functional today. If it has lambdas and recursion it's functional to most of programmers.Also haskell and other ml languages are partly OOP because they have object system.
>>71391000haskell doesn't have an object system
Scala seems to be the only choice if you want to use functional language and also not be unemployed.
Realistic speaking, how many programming languages is it >possible< to know at a fluent level?
>>71391116hundredsmost of them are basically the sameyou can become fluent in a few weeks
>>71391116since you say realistically, I'll take fluent to mean senior software engineering level. i'd say 3. it's actually not that unusual. the most senior guys where i've worked were experienced in a mix high level, low level, and scripting (e.g. java, C + perl).
>>71391140Fuck off Simon, you are faggot.
>>71391140so did he invent Haskell just to trick brainlets and piss smart people off
>>71391178yes, it's the same as how Bjarne invented C++ to trick smart people and piss brainlets off
>>71391172being a senior software engineer isn't about your proficency with a language
>>71391190i said senior software engineer LEVEL. get a job if you need me to explain this to you.
i need help, i being a dumb as i am bought a python2 course and now its dieing in 2020, i just wanna know if a learn to code in python2 how hard will it be to code in python3,(I use python for mainly security pentesting purpose)
>>71391288python3 is basically an entirely different language, you're fucked
>>71391288What do you get for when you pay for a python course?
>>71391288it's literally the same language except they changed thisprint "hello world"to thisprint("hello world")i don't know what was going on through their heads when they decided to first not use brackets, and then when everyone had gotten used to their silly convention, they changed it,.
print "hello world"
>>71391172Neat, good to know there are so many people good at different sorts of languages out there. I guess it makes sense not to invest your time in languages that do similar things things to the ones you already know, so at least managing to know some of different levels of abstraction is a fine enough of a goal
>>71391484all languages do similar things, when you're good at programming you just use whatever language you need to do the job because you can pick them up in a few days unless it's some super gay shit like Haskell
>>71391462They changed it because the Python 2 way of printing without a newline was fucking stupid, and the new way is just a named parameter
>>71391577>I'm learning Dart because I want to code apps using Flutterthis makes me feel old, i have no idea what the fuck those things are
I've been modifying my code so that adding attacks to my shitty little RPG only requires the effects to be defined. Which is a lot more extensible.Last night I added a move like hyper beam, except instead of having a rest turn, it reduces all your stats by 15%.
I'm thinking of starting a big data analytics company focused on hate crime detection and prevention. This is a profitable business idea right? Surely lots of people will want this data?
>>71391577starting with anything will get you started
>>71391633>1. popular (so that you can find good resources)The problem with that is always that when something is popular you will also find a fuckton of shitty resources instead of the good ones when googling your problems. It doesn't matter if something is popular, what matters is that there's really fucking good literature that will help you solve the problems that you'll face.
>>71391724>you will also find a fuckton of shitty resources instead of the good ones when googling your problemshow often has this ever happened
>>71391288you should be fine. python3 is just a little different. switching may be annoying though.
>>71391724i mean popular you will never not find an answer to something on SO
>>71391747a lot because if you're a beginner you don't know which of the resources are actually the good ones. I get some tutorialspoint website for many searches and that site is sometimes really fucking shitty. also SO with accepted answers that are downright awful.
>affinity for professional women>job starts hiring top tier office ladies in record numbersJesus help me.
>>71391879I wouldn't hire a woman who is deliberately crippling her feet. She must be really fucking dumb.
>What are you working on, /g/Finished my data entry. I hope I got enough of the key codes matched up from Windows to GNU/Linuxhttps://pastebin.com/PmqRJpue
>>71391900This is a bully free zone. The women at my office don't dress as nice, but they manage well and can program effectively. To the point where github comments are now putting me into pervert mode.
>>71390301There is a reason.Good luck finding out what that reason is with C++'s insane complexity.
>>71389478I'm not sure how you managed to work /pol/ into this.I'm not sure you do either.
>>71389564>arguing for the sake of arguing instead of discussing optimal solutionsThis is why C++ developers don't know any better.
>>71391964I don't care how nice they dress. I care about them not wearing clothes that are harmful to them.
>>71392093The implication is that more casual but still fancy clothing (regular shoes) are less likely to be harmful. But I can see how that would be non obvious.>>71391964>pervert modeI want to protect that smile mode*
>>71392117Forgot my image. I think overall things are better.>>71392123Probably >>>/g/wdg
>>71392123Use for loops.
>>71392159>hiring cute girls to improve quality of life for workers rather than pushing them into miserable programming jobsthose bastards!
>>71392159>>71392165Thanks.I tried for loop still does not work.
>>71392191>when your feature lands and the ol smilesI hope you all get to know this joy.
>>71392035the rules were clear right from the start
>>71390253>Homoiconicity>symbolic expressionfuck you.
>>71392212Post the damn code.
>>71392159maybe I should move to china
>>71390192This would be really bad for Apple if their users actually cared about anything but the brand
>>71392467My office is in the US they just don't call it the same thing. I'm sure there is some modern business around you too. If not, make a market.>>71392452Cute.
>>71392467Are you Han Chinese? The answer to this question is the same as the answer to if you should move to China
>>71392502nope, red-blooded American male.
>>71392159>their job is to bring breakfast, chit-chat and and create a fun work environmentSo just like in the West?
>>71392608Yes but you're not allowed to say that anymore.
Does anyone have any resources on cross-platform C/C++?
>>71392693I am retarded so I will say SDL
>>71392693International standard specification, latest version.
>>71392693for what purpose? gui? game? command line? network? embedded?
>>71391462So print can't be used as a function pointer for functions that take lambdas
>>71392693Just make sure you reduce your program down to only needing printf, malloc and free and you will be set. You can implement the rest, assuming more than 100% of your users will use that feature.
>>71392502i mean you can move to china without being chinese, you'll be a second class citizen but it's not that bad a country
>>71392782Game engine using Vulkan. It's time I bit the bullet and learned graphics the hard way.
>>71392857I'm happy to see my crop being reposted.
>>71392909*tips chocolate syrup*, much obliged, it is captivating piece.
>>71392857Don't I have to worry about stupid things like WinMain() or some stupid if guards?
>>71392943Not if you reduce complexity to a sufficient level. Why don't you instead return an integer value 0 when running your game, then the player can imagine they are having a captivating experience.
which is more /fa/?
>>71392782Not the same guy but for me it would be for library development and bindings for other languages
Pls help?????I'm trying to invent and document an 8-bit virtual system architecture from scratch. It's for fun. I'm going to write an emulator for it when I finish documenting it. I'm designing the architecture to have ports for a cart flashing peripheral and enough internal sram to store an entire cart rom; my hope is to eventually write a rom for the emulator that will provide a wysiwyg game dev environment that can operate directly on an executable rom format.MY QUESTION IS THIS:Do i have to worry about the bus architecture?Do i really have to concern myself with things like bus contention and three-state logic? Is it sufficient to just transparently abstract away the buses using the assignment and reference semantics of the host language?PLS ADVISE??????i really don't understand very well how buses work and if i have to learn it i'll learn it but i'd rather not because it seems like it's going to open a whole new can of worms where i'll start having to worry about specific electrical details when it seems like i should be mainly concerning myself with the slightly higher level where one thinks of electrical signals purely as data and abstracts entire subcircuits into binary or hexadecimal tables
>>71393015Tryna cop top shelf
>>71393015>posting a screenshot of textvk::ApplicationInfo appInfo("Dicks, VK_MAKE_VERSION(1, 0, 0), "Cocks", VK_MAKE_VERSION(1, 0, 0), VK_API_VERSION_1_1);
vk::ApplicationInfo appInfo("Dicks, VK_MAKE_VERSION(1, 0, 0), "Cocks", VK_MAKE_VERSION(1, 0, 0), VK_API_VERSION_1_1);
>>71393015the top one has a green text which resembles being a hacker. so the top one
>>71393051>having this much gay
>>71392930>chocolate syrupLooks like an additional feature. You _did_ remove two other features for that, right?
>>71393015both are gayalso use this formatting( "dicks", VK_MAKE_VERSION( ..., ..., ...);
>>71393015neitherhere's how you do it# in rubyappInfo = Vk::ApplicationInfo.new( application_name: 'Dicks', application_version: '1.0.0', engine_name: 'Cocks', engine_version: '1.0.0', api_version: '1.1')
# in rubyappInfo = Vk::ApplicationInfo.new( application_name: 'Dicks', application_version: '1.0.0', engine_name: 'Cocks', engine_version: '1.0.0', api_version: '1.1')
>>71393043I can offer game console documentation if you want to see how they did thingshttps://pastebin.com/raw/mWMBqVpzthere's also all the external software based home computer systems people would use. (software on floppy, cassette, etc.)
>>71393100i do use that formattingyou're still gay
>>71393051This is kino though, whatever that meansvk::ApplicationInfo appInfo("Dicks", VK_MAKE_VERSION(1, 0, 0), "Cocks", VK_MAKE_VERSION(1, 0, 0), VK_API_VERSION_1_1);
vk::ApplicationInfo appInfo("Dicks", VK_MAKE_VERSION(1, 0, 0), "Cocks", VK_MAKE_VERSION(1, 0, 0), VK_API_VERSION_1_1);
>>71393148>whatever that meansGo retake your Russian classes. You're required to be fluent before posting here.
>>71393140very cool, thanks. i'm gonna check out the snes one as it seems closest to what i'm trying to do. if i do turn out to need to understand how buses work on an intimate level i'm sure this will prove useful.that being said, although i am trying to design both a virtual game console and a virtual machine for it, my question is more about virtual machine design than virtual game console design. i just want to know if i actually need to implement buses or if i can just read and write directly to host-allocated addresses and with a wave of the hand be like "the bus did it."
>>71393238"Kino." "Cinema." Figure it out.
>>71393262esti cretin prietene
>>71393252That sounds almost like a question of preference. Since you're designing both ends, I think it's your decision to implement it however you feel is most practical to do so given your own goal.
>boss tells me I can't use magic strings>"But doesn't WPF use magic strings to update bindings?">"That doesn't count">mfw
>>71393252>that being said, although i am trying to design both a virtual game console and a virtual machine for it, my question is more about virtual machine design than virtual game console design. i just want to know if i actually need to implement buses or if i can just read and write directly to host-allocated addresses and with a wave of the hand be like "the bus did it."(Not that guy) Depends on how accurately you want your emulator to work. A more detailed emulator will be more computationally intensive and more complex, but it will reflect changes in architecture much better than a coarser one.You can at first implement it in a shallow, but functionally equivalent way, then progressively add detail until you're satisfied, even extremes such as emulating individual circuits.Example: at the beginning, you could represent your bus as a simple native data structure provided by whatever language you choose, then you can model the individual, internal components. Or for example, for something like the ALU, you can initially simply perform arithmetic natively, then model individual parts, such as logic gates and circuits.If the program is well designed, adding detail won't affect the rest of the program.Considering you're doing it for purely personal reasons, to learn, I'd go for as much detail as you can reasonably manage.
>>71393330why do you need magic strings?
>>71389434i hope you burn in hell
Is there an easy way to use this shit https://github.com/mozilla/TTS by just downloading pretrained model ? I know nothing about python and ML and want to just feed it with text and get wav file back.
>>71389434The white man's choice
>>71393422I hope you learn some manners.
What legal drugs will make me perform better? In personal programming at home/exams/interviews.My sister is a pharmacist she can get me shit.Is adderall good?
is flutter a meme or not? i like the idea of writing once and compiling for all platforms. is it at least better than electron?
>>71392159imagine being hired to work as a nanny for an autistic adult daycare lmao.>"good job on that refactoring billy, here's your tendies"
>>71393773>getting paid to sit aroundYes please.
>>71390253>Literally every source I can find it calls it a mulit-paradigm language that supports functional style.It is still an imperative language in essence, and some support hardly makes it functional.
>>71393148vk::ApplicationInfo appInfo( "Dicks", VK_MAKE_VERSION(1, 0, 0), "Cocks", VK_MAKE_VERSION(1, 0, 0), VK_API_VERSION_1_1);
vk::ApplicationInfo appInfo( "Dicks", VK_MAKE_VERSION(1, 0, 0), "Cocks", VK_MAKE_VERSION(1, 0, 0), VK_API_VERSION_1_1);
>>71393302>>71393385much appreciated, these thoughts are very helpful. in particular i only ever looked at the problem from the angle of "document entire architecture first, begin working on vm later" so i never even considered the approach >>71393385 suggested.
>>71393409He was just telling me the general coding guidelines
>>71393812You literally searched and replaced "ff" with "tt" huh buddy
I just woke up from a dream. I was watching God program the weather and His programming language used a sepples type system.
>>71394395>actually believing that having namespaces that are accessible from the global namespace pollutes the global namespace any less in practice than just having global namesliterally the only difference is the question of whether you'd rather pollute the global namespace with _ or with ::
I read somewhere that they made Go very easy so even retarded programmers could use it somewhat correctly and so companies could replace programmers easily.Do you guys think this is true
>>71394558The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt. – Rob Pike
>>71394589>The key point here is our programmers are GooglersI thought it was impolite to use terms like Googler and gook to refer to asians
>>71394550or you can just import your names into module scope you tremendous retard
If it is not global and it is not public then I am not wasting my time. You cucks can keep your precious delicate abstractions.
>>71393015neither(vk:application-info :name "Dicks" :version (vk:make-version 1 0 0) :engine "Cocks" :engine-version (vk:make-verseion 1 0 0) :api-version vk:api-version-1-1)
(vk:application-info :name "Dicks" :version (vk:make-version 1 0 0) :engine "Cocks" :engine-version (vk:make-verseion 1 0 0) :api-version vk:api-version-1-1)
>>71394632OR you can just do that WITHOUT having to have namespaces, you even more tremendous retard. You don't even need to formally have """""modules,""""" because C (yes, C, not C++) has already had them since its inception.int exported_function();static int function_in_module_scope();Problem?
int exported_function();static int function_in_module_scope();
>>71394531If by "God" you mean YHWH, I'm not surprised.
>>71394818>cnile misunderstanding the purpose of modules and namespacesColor me surprised.Besides, in languages with proper scoping, namespaces are often unnecessary.
>>71394589Not Rob Pike but he has a point. Any language you give anyone, no matter their intelligence or experience, should be easy to understand and easy to adopt.When you're developing a specification for something new, you have two roles on your hands: designer, and tutor. If your specification design is sophisticated, advanced, and efficient, you're a good designer, but no matter how good your design is and how good a designer you are, if you can't give the same level of consideration to the interface and make it easy to understand and use, you need more practice in the tutoring aspect.Making interfaces easy to understand and adopt benefits everyone, regardless of their intellect. Those without much experience have the benefit of being able to use it in the first place, where they might not be able to use more challenging interfaces. And, as long as the underlying design is more advanced and featureful than the simplistic interface betrays, those who *do* have experience can *also* take advantage of the easy interface to streamline their own more involved work and get more done faster.Not that Go satisfies that second constraint of course. It's as restrictive as it is simplistic, which is precisely the problem. An example of a language that's well-designed and also well-taught would be Lua: predictable, easy to understand, easy to adopt, but not restrictive by any means.
>>71394901But C DOES have proper scoping.If you have:static int function_in_module_scope();Then function_in_module_scope is not exposed to anything outside the module (i.e. the file). Not even at the binary level. There is no possibility for name conflicts unless the same name is used later in the same file.
static int function_in_module_scope();
>>71395062>C does have proper scoping>headers existlmao
>>71395113>using headersImagine being this bad at C.
>>71395062I guess it works if you have lightning fingers
>>71395133>if you have lightning fingerspls expln
which lisp dialect is most fun to use and has best tooling?
Anyone here used Flutter before? What's it like?Want to make a cross-platform app and don't really like the look of react native.
>>71395173If you have OCD and can't exist without cleanliness: probably Racket.Otherwise Common Lisp, also best tooling using either Slime or any of the commercial IDEs from Franz and LispWorks.
>>71395357yes ok but why is this necessary
>>71395361CL being SBCL
>>71395350Why was the professor trying to make little girls?
>>71395367I suppose it isn't necessary if you are very patient.
>>71395417yes ok but why is it necessary to either be a fast typist or be patientyou seem to be implying you would have to type more than.... somethingwhy / how is this the case
I'm getting that raise, bois
>>71395497Good goy award
>>71395506you keep saying you'd have to either type fast or be patientthe implication is that you would have to type a lotwhat do you mean by that implication?why would you have to type a lot? i see no reason you couldn't just use the approach i've suggested and also NOT type a lot.
>>71395497now let's see how many jealous faggots will give you your (You)
>>71395497I don’t have a job, bois
>>71390018JS then C#
i had an interview last week and haven't heard back, even though they said they'd be in touch early this week.when should i email them?
>>71394589He himself contributed to the proliferation of shitlangs over actual brilliant languages.What a disgusting sodomite.
>>71395596Never, they won't call you
>>71390018>My goal is to make a lot of money without working that much.lol
>>71389415>>71389434Yellow fags, go back to >>>/b/
>>71395534I interpreted your suggestion to mean that you would include a module name in every function name but upon rereading it I see that may not have been your intent.
>>71395649thisor back into cont/a/inment
>>71390018I’m a beginner learning Java, I heard it’s convenient since the JVM makes it easier to compile on different operating systems. It’s really exciting to see my little calculators work.>without working hardno
I'm writing a seminar paper in regards to compiling vs interpreting, while also discussing the evolution of computer languages. Is there any link between compiling/interpreting and how new certain programming languages are?
isn't racket a toy language?I feel so after using DrRacket
>you make a simple observation that none of the articles online take into accountwtf am I a genius?
>>71395813John Carmack disagrees with you.
>>71395856Isn't he the guy who made a space rocket company and couldn't put a single rocket into space?
>>71395869Your search engine skills are astounding. Did you tell your caretaker?
isn't C a toy language?I feel so after using Notepad
>>71396087yes it is!
>>71396087C is the de facto lingua franca of software development
>>71396158>de facto lingua francasorry, i don't speak tortilla
>>71396174Imagine being this retarded.Tortilla is a food you brainlet.>inb4 "hurrrrr durrrrr that's the joke duuuurrrrrrrrrr"
a language where you can define arbitrary operators
>>71396205you must be fun at parties
>>71396241>t. retard who's never heard of a "de facto lingua franca" and literally just admitted he doesn't even know what a tortilla is
anyone have the js lemons pic?
a language that doesn't suck where you can define arbitrary operators
>>71396205There is something wrong with you.
>>71396290I already told you, Haskell
>>71396293Hey, I'm not the one who thought the Spanish language is called Tortilla. Nor am I the one who thought "de facto" and "lingua franca" were Spanish. Or "tortilla" as he put it.
>>71396315The sad thing is you’re probably serious.
>>71396353Yeah, I'm completely serious. And I stand by my assertion that C is the de facto lingua franca of software development. You got a problem with that?
>>71396223>having more than one operatortop kek, the only operator you will ever need is λ
>>71396368The lambda calculus is a bad language.
>>71396299This was very helpful, thank you!
>>71396368>>71396382>lambda calculus>a language
F# brainlet here trying to understand monads, but every explanation is written with Haskell syntax.What's the easiest monad to learn?
>>71396398Cheers, tiny human
>>71396422It is one. And it's shit. That's why superior langauges have to be made to emulate it without being exactly the same.
>>71396483>it's shitI don't think it was designed to run general purpose programs on modern hardware. It was an investigation in logic and computation theory, and in that area it was quite enlightening, so not shit.
>>71389508says the anime poster, you are the mentally ill here
>>71396436you just have to start off going example by example and see where you can replace manual pattern matching with things like map, fold, bind, etc. Option is a good starter.I think there is some good F# material in "fsharp for fun and profit" (or something like that).
>>71396714>things like map, fold, bind, etc. Option is a good starter.I'm comfortable with using these (I assume they are all implemented as monads?), but my brainlet kicks in when it comes to creating my own monads.
is js the only choice if I want scripting programming language with nice gui?
why does learning hurt so much. it actually gives me physical pain
>>71396801you mean syntax? yes, the one thing js is good at is at making your code nice to look at
>>71396772bind is a monad function. The definition of bind is the fundamental determinant the behavior of the monad.
>>71396801>wanting a nice guiand no, smalltalk comes to mind
>>71396852How to learn programmingFirst, read a textbook about programming in some language, then manuals for several programming languages including Lisp. If this makes natural intuitive sense to you, that indicates your mind is well-adapted towards programming.If they don't make intuitive sense to you, I suggest you do something other than programming. You might be able to do programming to some degree with a struggle, but if you find it a struggle you won't be very good at it. What's the point of programming if it is a struggle instead of a fascination?After that, you need to read the source code of real programs (or parts of them) and figure out what they do. Then start writing changes in them, to add features, or fix bugs if you can find out about specific bugs to fix. Ask some good programmers who are familiar with the code of those programs to read and critique your changes.If you fix a bug in a free program that people are developing, the developers are likely to be glad to get fixes from you and will tell you the way to write them to make them good to install. Look at their TODO list for features you would like to implement. You will find it is a great satisfaction when the developers incorporate your changes. Do this over and over and you will become good at developing software.Please use your programming capability only for good, not for evil. Don't develop nonfree software, or service as a software substitute. Design systems not to collect personal information, and to allow anonymous use.-- Dr. Richard M. Stallman
>>71396852see a doctor
What kind of problems do smart programmers solve?
>>71396772first you need a use case
What's the cheapest way to get wall clock time on windows?
>>71396899i plan on reading that desu since i do am learning to program, but i was referring to machine language translation in my post. i'm in the third article on the subject only to understand a few concepts well enough to sum up this shit https://arxiv.org/pdf/1409.0473.pdfwhy the fuck was my professor thinking when he passed this assignment down to us
>>71396925real world problems
>>71395208It's better than React Native, that's for sure.
>>71396925if you just want to practice you can use codeforces
>>71396772Bind (and the identity for bind, Some) are the monad part. "creating your own" monad is really kind of difficult, most of the time you just combining monad transformers or specialise existing things like Result. If you're comfortable seeing stuff and replacing it with bind or map when appropriate then that's pretty much the first big step. You could try writing a free monad. F# doesn't have HKTs but the basic idea is like thistype Free_F<'a> = Pure of 'a | Wrap of F<Free_F<'a>>For some F (HKTs would be abstracting over the choice of F) which defines a bunch of commands, e.g.type F<'a> = GetLine of (string -> 'a)
type Free_F<'a> = Pure of 'a | Wrap of F<Free_F<'a>>
type F<'a> = GetLine of (string -> 'a)
>>71396938what was he thinking*
>>71396925http://www.dgp.toronto.edu/projects/fast-winding-numbers/Stuff like this.I wish I was smart.
>>71397044latex gives me the goosebumps
I think we're getting somewhere, but in this case "test" is of type Monad<Monad<Monad<Monad<Monad<int>>>>> which I doubt is correct. It gives the expected output of (3 * 2) ^ 5 though...type Monad<'a> = 'alet Return (x : 'a) : Monad<'a> = xlet Double (x : 'a) : Monad<'a> = x * 2let Power y (x : 'a) : Monad<'a> = pown x ylet Bind (idx : Monad<'a>) (f : 'a -> Monad<'b>) : Monad<'b> = f idxlet (>>=) = Bind[<EntryPoint>]let main argv = let test = 3 >>= Double >>= Power 5 >>= Return printfn "%A" test 0
type Monad<'a> = 'alet Return (x : 'a) : Monad<'a> = xlet Double (x : 'a) : Monad<'a> = x * 2let Power y (x : 'a) : Monad<'a> = pown x ylet Bind (idx : Monad<'a>) (f : 'a -> Monad<'b>) : Monad<'b> = f idxlet (>>=) = Bind[<EntryPoint>]let main argv = let test = 3 >>= Double >>= Power 5 >>= Return printfn "%A" test 0
>>71389415Why is Haskell so easy?Its like mathematical python.
>>71397145/g/ related thread on /w/ when
>>71391998It's most likely C's fault
>>71389675Concepts fixes this.
>>71397223Don't blame sepples on C.
>>71397252Yes, it does.
>>71397134OK slow down. The fundamental thing you MUST know about monads is that Monad is a trait/interface, not a type. Haskell's terminology ("class") might be confusing on this point but it's really important.After some googling, it seems that F# does not support the kind of type parameters on static methods you would need to implement a proper Monad trait, but its stewards are considering adding that: https://github.com/fsharp/fslang-suggestions/issues/243
>>71397258>could not do foo(bar)vs>bar does not satisfy Fooablebig fucking difference
Why is python do easy?It's like non retarded hasklel
>>71397264he's calling it monad because it's an example. the monad part is return + bind
>>71397268>>could not do foo(bar)You forgot all the thousands of lines of context and nested templates.Concepts always just gives you a short right-to-the-point error message without spamming stdout.
>>71397305Literally just don't look at them. The first line gives you the exact expression which failed. Who fucking cares about the rest?
>>71397268Btw, error messages aren't even the main strength of concepts.The real strength of concepts in my opinion is it makes it easier write efficient types (concepts allows you to conditionally delete constructors and have them trivial, can't do that with sfinae), and it gives you more powerful type traits.
>>71397331>constructorsActually it was destructors I think. I'm not sure if constructors disabled with sfinae make them trivial or not.
>>71397345I think it's just the copy and move constructors.What you're describing here can be accomplished with inheritance but it's so fucking ugly that you don't want to. Fortunately it's a corner case.
>>71397371>What you're describing here can be accomplished with inheritanceYes I know, that's why I said easier.
>>71397371https://www.youtube.com/watch?v=J4A2B9eexiwSomewhere past the middle this video goes into it.It's a good video in general though so you should watch it all.
>>71397410>>71397384We've had this same discussion before.
should I learn design patterns?
>>71397472yes, if only so that it make it easier for you to understand the intent of code authors.for example having a class called "singleton" will immediately tells you something about the class rather than having to skim through the entire code to understand.