11 ms·
Functorio
- scubbo 6y agoI look forward to the inevitable two camps of comments on anything related to Factorio: "This is just software engineering, why would I do that in my free time?" and "This is just software engineering, but without all the distractions, frustrations, meetings, and dependencies - how can I do this all the time?" (FWIW, I'm in the latter camp)
- andrewzah 6y ago"This is just software engineering, why would I do that in my free time?" I was of this opinion until I realized I was basically doing digital logic in minecraft. You're right in that engineering without crud is very fun.
- entropie 6y agoSoftware engineering with angry aliens.
- scubbo 6y agoLiteral bugs!
- KineticLensman 6y agoThat would be me in approx 2006 in Second Life, in-game coding using the Linden Scripting Language [0]. I have vague recollections of trying to script some sort of scanner object and explaining what I was doing to a curious gothic vampire demon who was passing by. I think she lost interest (and flew away) when I got to quarternions [1] [0] http://wiki.secondlife.com/wiki/LSL_Portal http://wiki.secondlife.com/wiki/LSL_Portal [1] http://wiki.secondlife.com/wiki/Quaternion http://wiki.secondlife.com/wiki/Quaternion
- Erwin 6y agoAngry aliens, or angry end-users?
- martindbp 6y agoThere's a third camp: "This is just software engineering, I might as well code something useful and equally fun".
- recursive 6y agoThe problem with doing something useful is that you might end up with users.
- martindbp 6y agoGood point, but you could make something that's useful for yourself, or to learn something new, or even something like an art piece. Recently when I had some time I implemented a Minesweeper solver. Not useful to anybody, except perhaps rural Cambodian farmers, but it was great fun, and probably more satisfying than playing a game.
- tick_tock_tick 6y ago^^^ That's my camp by and large unless I'm playing multiplayer with friends it just makes me feel like I should be working on my side project.
- hinkley 6y agoWhen SVG was young someone made a graph game where a bunch of points are placed on a field. Each point has two edges leading to other points. You 'win' the game when no edges cross. It was pretty fun for the first half hour. Then for the next fifteen minutes something didn't feel right. To quote Robert Zemeckis, it felt like kissing your brother. The other thing that was hot around that time was UML, and it feels like half of UML is just trying to get lines not to cross each other. Ding! I was doing some of my least favorite work 'for fun'. Closed that window, pushed away from my desk dramatically, and went for a cup of coffee and a bit of perspective.
- willis936 6y ago>how can I do this all the time? Make a factorio-themed reskin of labview. If it took me 100 hours to complete a coding project of the magnitude of a factorio playthrough I would say I'm pretty bad at coding. I'm of the former of your two listed camps, but I don't try to look at how the game is like coding and look at it how it is like modded minecraft. Learning rules and discovering tricks and being creative is a fun way to spend free time. Maybe coding can have a similar track, but it often feels heavy on the grind.
- falcolas 6y agoI call it circuit design. "How can I fit this efficiently into the space I have allotted and protect it from outside influences (biters)?"
- tasogare 6y agoI never felt space (with normal game settings) was an issue in the game. The infinite map even means it’s literally impossible to run out of space.
- falcolas 6y agoSpace becomes an issue when trying to minimize your buffers. During a casual playthrough, it won't really matter, but if you're dealing with megabases, the distances and buffers can really impact how the smoothly a factory works, how quickly it can respond to changes. For example, not all of the "infinite research" technologies have the same science pack requirements, which changes what your base has to produce.
- thomastjeffery 6y ago"Just" software engineering is a rare thing. If you want to make real software, you have to do your software engineering in the middle of a sandwich with tooling and dependencies on one side and your platform on the other. Dealing with either of these can sometimes be satisfying, but they both tend to require a lot more effort than is desired.
- test6554 6y agoThe biters of clan cholg-un tphol have requested a meeting about the planned nuclear plant expansion into their sacred ancestral territory.
- bmgxyz 6y agoI wonder how difficult it would be to implement a language for specifying Factorio factories without worrying about physical layouts. This post provides a lot of good insights into how that could be done. Once a factory is specified, a compiler could turn the high-level specification into a blueprint or a valid save file to be loaded up in the game. Of course, the compiler would have no way to lay out the factory with respect to available resource deposits. Maybe that would have to be part of the specification as well? Or maybe the programmer (player?) could pass an empty map file as a compiler argument. Also, this doesn't give any consideration to the tech tree or enemies within the game. I guess those could be compiler flags, as long as we're dreaming. Look, all I'm saying is that it would be really cool to be able to check factories into version control.
- momothereal 6y agoIt could take inspiration from some speedruns formats where the "seed" is pre-selected. That way you could have multiple people compete to write the most efficient factory in terms of resources and space to generate as many rockets as possible, and everyone with the same resource limitations and map layout!
- klyrs 6y agoSuch a language could be an extension of VHDL or verilog (or more likely, just a library in such a language). The map could plausibly be the equivalent of an FPGA architecture, and build upon existing tooling. Caveat: I'm a bit of an FPGA noob and have zero clue how one specifies a detailed FPGA fabric to such tooling.
- MayeulC 6y agoNo, you are right. One would likely need to define more logic types to be fully accurate, but those could be abstracted away. Just connect blocks A and B in some hardware description language. Further describe B as an assembly of blocks A and C. Ask a compiler such as yosys to flatten your hierarchy down to a set of primitive blocks (say, A and C). Once you have the diagram, use a custom placer and router to position it. There might be additional constraints while placing blocks. In silicon, this relates to impedance, design rules, and making sure the clocks are properly synchronized (adding buffers, etc). In factorio, this could be making sure conveyors are the same length, placing extractors on resources, etc. But the general topology doesn't change, since you are the one specifying it. Note: I've done some, but very little logic synthesis, this is really a bird view.
- dexwiz 6y agoFactorio is a genre-defining game, and I think the number of clones is a testament to that. Factorio is often compared to programming, but it's closer to Excel where the logic and the output live in the same space. The game does a great job letting the user build with programming-like constructs without them ever having to understand any theory.
- wting 6y agoExcel has been dryly noted as the most popular functional programming language before: https://www.infoworld.com/article/3033912/functional-languages-what-they-are-where-theyre-going.html https://www.infoworld.com/article/3033912/functional-languag... In Excel you can't modify existing state in a cell, but only transform and output the results in a new cell.
- dexwiz 6y agoYou can change the evaluation semantics to allow cyclical references and either a max number of cycles or a stability parameter. This allows you to solve differential equations in excel. While this isn’t quite what you described, it’s closer than the default behavior.
- devenvdev 6y agoI tend to disagree, there are some obvious aspects of programming in the game: refactoring spaghetti, converting monolith into microservices, multiprocessing, etc.
- psychoslave 6y agoExcel might spur users more to not separate code from data, but you can do so. Nothing prevent users from having one sheet for raw data input, one for output layouts, and the businesses implemented in dedicated formula sheets or VBA modules. On the other side, within any programming environment, you can entangle your data, output layout and businesses code and thus create an unmaintainable mess.
- an_ko 6y ago> Merging an empty belt with any other belt, makes no difference. I know the intended meaning was that it makes no difference to the result belt's type, but in-game it does have the important difference of putting all material from the input belt onto just 1 side of the output belt, halving throughput. If in this image https://bartoszmilewski.files.wordpress.com/2020/11/unit.png https://bartoszmilewski.files.wordpress.com/2020/11/unit.png the incoming belt had both sides filled, both would go onto only one side of the outgoing belt, possibly causing some stalling. Do type systems exist that include a notion of "throughput" or "capacity" like this?
- mgradowski 6y agoDependent types could presumably capture this idea. They are very expressive – see [1] for a perfectly type-safe printf implementation in Idris. [1]: https://gist.github.com/chrisdone/672efcd784528b7d0b7e17ad9c115292 https://gist.github.com/chrisdone/672efcd784528b7d0b7e17ad9c...
- rrobukef 6y agoThe inserter type is wrong when considering fluids, maybe it should be `inserter: Item a => a -> a'? Oh well, leaky abstractions are endemic.
- mhh__ 6y agoFrom a practical perspective, I think considering throughput is a task that should be done by something utilizing the typesystem rather than the typesystem itself - i.e. give all Operations a throughput but don't try and do the checks on every single application of said operation.
- jeremyis 6y agoI know this kind of misses the point, but Factorio is one of the most addictive and rewarding gaming experience I've had. Beware: within months it ate up collectively hundreds of hours from myself and members of my friend group.
- AnIdiotOnTheNet 6y agoI would agree that Factorio is addictive, but "rewarding" is not a word I would use to describe it personally. I finished it but did not enjoy the process.
- NickBusey 6y agoI see this kind of comment often and it confuses me. If you didn't enjoy the process, why did you even bother finishing it? Further, how was launching your first rocket anything other than rewarding?
- falcolas 6y agoA guess, compulsive completionism based around the sunk cost fallacy. Pretty common with videogame completionists (including myself).
- AnIdiotOnTheNet 6y agoI am not a completionist. I can't really put my finger on why I kept playing, possibly it was because the end goal was inevitable and the only thing separating me from it was time and tedium as opposed to any real difficulty. Possibly I just had nothing better to do at the time.
- ssully 6y agoAs someone who loves Factorio, there is a lot about the process of the game that I don't love. Especially after having 'completed' about 4-5 factories with a friend, you get to a point where you know how to accomplish a task, but there is a lot of drudgery to get there. Also the combat is the game is tedious. When playing with a friend, we literally do a coin flip for who has to clear hives that are inside our pollution area. I personally push to turn off aliens when we play, but he thinks its lame to take out a function of the game. With all of that said though, getting to a result is always a great feeling and basically why I still play it after all of these years.
- munchbunny 6y agoI can definitely see the point the author is trying to make, and I agree that it naturally lends itself to a functional model of how the game works. On the other hand, and this is speaking as someone who has played the game for an embarrassing number of hours all the way into endgame "megabase" territory: my mental abstraction of the game isn't really functional. It's directed graphs. Sure, the two views can be equivalent representations, but I find thinking about the game as a directed graph (and reasoning about throughputs in a graph representing a network) to be the perspective that gives actionable insights most readily.
- willis936 6y agoBecause factorio is much closer to a gui-based HDL layout tool than a programming language. It might be fun to program a simulated annealer to play factorio.
- buildbot 6y agoThat sounds like an awesome project for a graduate EE design class!
- mhh__ 6y agoOne of the HDL-to-Minecraft(Redstone) projects was done by undergraduates - from scratch even! These kinds of projects are one of the only things I get FOMO over studying physics - I really like the idea of getting a few months to (say) write a compiler as a group rather than piles of utterly inane lab work teaching me how to use equipment I already know how to use
- dexwiz 6y agoThe author is one of the main sources of Category Theory for Programmers material. Take that as you will.
- munchbunny 6y ago> The author is one of the main sources of Category Theory for Programmers material. Take that as you will. I'm having some trouble coming up with plausible inferences from that fact. Do you mean to imply that "when you have a hammer everything looks like a nail"?
- pul 6y agoI wrote a similar article explaining Kafka with Factorio analogies a while back: https://medium.com/@ruurtjan/understanding-kafka-with-factorio-74e8fc9bf181 https://medium.com/@ruurtjan/understanding-kafka-with-factor... Visually explaining abstract concepts works a lot better in building an intuition than explaining them in abstract terms in my experience.
- roguas 6y agoI saw that. Honestly I think it maps better.
- Groxx 6y ago>In Factorio, the nesting of functors is drastically limited. It’s possible to produce belts, and you can put them on belts, so you can have a beltful of belts, Belt Belt. Similarly you can store chests inside chests. But you can’t have belts of loaded belts. You can, however, have vehicles on belts, and they have storage: https://youtu.be/JgqT6DEnBGM?t=2082 https://youtu.be/JgqT6DEnBGM?t=2082 AFAIK that's where the nesting ends though.
- falcolas 6y agoAn interesting writeup, but <troll>like most oversimplified functional programming writeups</troll> they are ignoring a lot of external state around Factorio "functions" and "composed functions" - things that absolutely need to be considered when creating a factory. For example: energy requirements, inserter speed (and the impact of that and inserter stack size on throughput), input/output bottlenecks, pollution, efficiency modules (which really mucks with the "an assembler is a function" analogy), beacons, and probably more.
- Ericson2314 6y agoNone of those resemble imperative programming though. Imperative programming would be like instead of having your factorio factory, having 1-32 employees running around at ludicrously fast speeds doing all the work trying not to crash into each other.
- Ericson2314 6y agoAnd microservices is more like normal Factorio, but spending a bunch of time designing all the building blocks a few redundant ways, and then getting really drunk and blindfolded before placing them on the map. And then having your equally drunk and blindfolded factory reliability engineers fight off the swarming bugs.
- falcolas 6y agoWhich is, funnily enough, roughly how it's programmed. Each entity has a state, time is advanced, and the threads run through their queue of entities and update their state, along with the state of connected entities. Since some entities interact directly with other entities (such as two fluid pipe segments), these queues are ordered (so the fluid movement and pressure calculations make sense). For example, a belt would advance the items on it 1/60th of its speed. Inserters would look to see if there's room in the destination, if there are items within their reach on the belt, and start moving to pick them up. Assemblers would check to see if they're currently building something, if they're full (the quantity that determines "full" is based on whether there's an outgoing inserter attached), if they have the necessary ingredients in their incoming buffer, and start incrementing the creation timer. The outgoing inserter would check for items in the assembler's output, grab them, and so forth.
- romaniv 6y agoIn 1986 people wanted to make real programming more like a computer game: https://www.youtube.com/watch?v=I9LZ6TnSP40 https://www.youtube.com/watch?v=I9LZ6TnSP40 Today, when we have much more computational resources, I'm reading this article about representing Factorio as static text with compiler checks. Something somewhere is off.
- bluefirebrand 6y agoProbably only off by one, though.
- munk-a 6y agoI think this is a neat attempt to make functional programming more acceptable but I really dislike the first section on assembler production > If Factorio were a strongly typed language all the way, there would be separate recipes for producing different assemblers (that is assemblers with different recipes). For instance, we could have: Technically yes - in a strongly typed language assemblers would be specifically specialized at compile time. For the Haskell side of things they go on to specify a higher order function to produce an assembler that can then be given a purpose by a second call. However they dropped the ball a bit on the C++ side and, while generics cause grief, they are quite good to learn about and this is a perfect place to use a templated function that could infer the correct type at compile time.
- jzer0cool 6y agoThis is a fun read. Learn Haskell, functional programming, and game design all in one.
- munk-a 6y agoJust on the topic of Haskell - if you ever do want to give it a go there is an infinitely entertaining book out there called Learn You a Haskell for Great Good![1] that I'd highly recommend. 1. http://learnyouahaskell.com/ http://learnyouahaskell.com/
- LukeEF 6y agoI started to dream in assemblers. And belts. Endless belts.
- SuchAnonMuchWow 6y agoTo me, Factorio looks more like dataflow programming (https://en.wikipedia.org/wiki/Dataflow_programming https://en.wikipedia.org/wiki/Dataflow_programming) much more than functional programming, but I guess people see much more similitude with what they are used to.
- gggtt 6y agoDataflow, Pipelines, Signal Processing block diagrams, Functional programming, Flow-Based programming, Blender/Unreal Shader Graphs, The Grid in Bitwig, PureData/Max, VHDL, MATLAB Simulink, Node Red, Microservices, Tensorflow/Pytorch compute graphs, Houdini, Animation/behaviour graphs Unreal Blueprints, ... There are so many things that we describe as a graph of boxes with inputs & outputs that we can indeed draw many parallels see many similarities between them. I think it's quite interesting to think about this diversity of tools and try to analyse what's common and what isn't between them (some are stateless others aren't, some have the notion of "time" and some have not, some are closer to state machines while other closer to mathematical functions, etc.) and it gives a lot of inspiration about new/alternative programming models & architectures
- sali0 6y agoThis (boxes with inputs and outputs) is how I reason about almost everything in life as well. I have been told this is what is called "systems thinking". Your comment is spot on.
- munk-a 6y agoProgramming paradigms are all very much different sides of the same n-sided coin. One thing that's quite interesting to me about Factorio is how intelligent components like inserters are - they refuse to accept materials that their destination won't accept so one parallel in Factorio that isn't going to be matched by most views of functional programming is that you have an input of {{Gear, Gear, Iron Plate, Wire, Wire, Turret, Assembler, CPU}, {Coal, Coal, Coal, Wooden Chest, Ammo, Wire}} and an Assembler with Inserter setup to build Inserters - given that belt state prior to execution then you will apply that function and end up with a belt state like: {{Gear, Wire, Wire, Turret, Assembler}, {Coal, Coal, Coal, Wooden Chest, Ammo, Wire}} and a produced Inserter. Factorio is incredibly resilient to mistakes which is a bit odd in that style of game - normally bad input in an assembly line game like that will result in a system freeze but Factorio just shrugs and keeps on keeping on.
- nynx 6y agoThis is kind of unrelated, but it would be so cool if assemblers like that existed in real life. It's a "hard problem" unfortunately.
- beaconstudios 6y agoyeah that would be very cool. Some of the sub-components essentially exist (3d printers and pick-and-place machines come to mind), but not in a single package that could print/assemble complex objects (AFAIK).
- tomaszs 6y agoI love the way the author explained it. And surely there are places where functional programming helps eg. linear processing of data, analysis, processing. However in my field, frontend, there is more focus on interactions between very short factory lines. So functional programming does not shine, and often just leads to increased complexity and risk of mistakes.
- revskill 6y agoThen you can try React Hook
- munk-a 6y agoWriting in a purely functional style isn't suited for any real world problems, functional programming remains a tool to be used like any other. However functional style programming comes with some seriously valuable effects that make it quite strong in the right situations. Front-end code tends to do a whole lot of mapping and filtering and being able to define stateless functions to execute these jobs can seriously reduce the amount of bugs you're likely going to accumulate over time. I love programming in a variety of paradigms and settings and I'd suggest you take a bit of a closer look at what you can get out of statelessness and higher order functions in particular. Assuming you're working in a pure JS variant and not a strongly typed FE language (like Elm or TypeScript) my absolute favorite quality (strict typing) isn't available, but there are a lot of tools that can be quite helpful.
- tomaszs 6y agoSure. FP is helpful a little bit with some atomic operations, and processing data from data sources. However applying it to the whole project as the primary paradigm causes a lot of trouble. Purity comes with some serious drawbacks like desynchronising state risk, additional performance cost, risk of adding unnecessary complexity, code duplication and wrong code organisation. Especially if it is considered as a competitor to object oriented programming. Unfortunately it is considered that way, and it is really a serious problem today. People try to do stuff with FP that should be done with OOP and run into serious problems. OOP and FP paradigms work good together, but FP is often overused.
- wruza 6y agoThat was fun, now how do I build a warehouse dispatch and accounting 3-tier with functorio?
- bee_rider 6y agoI don't really know much about functional languages, but did the section on higher order functions throw any flags for those of you who know both functional programming and the game? The "assembler" components, when used as an ingredient in a recipe, aren't really acting as assemblers anymore, just as a component...
- elihu 6y agoYeah, that seemed a bit of a stretch. Maybe a stronger case could be made for blueprints as functions, and blueprints that execute other blueprints as higher-order functions. (I've played a lot of Factorio, but haven't really delved very far into the more exotic things that can be done with blueprints and circuit networks.)
- tdy721 6y agoThe inserter function automagically picks a direction for the ingredient/product flow.
- oconnor663 6y agoJohn Carmack spent some time in one of his famous keynotes talking about functional programming. On the one hand, obviously video games tend to be very stateful, and implementing them in imperative terms is natural. On the other hand, tons of specific things you do inside a game (or in any program) can be described as pure functions, and doing that is often a great idea. I think it was this part of this keynote: https://youtu.be/Uooh0Y9fC_M?t=4660 https://youtu.be/Uooh0Y9fC_M?t=4660
- milesvp 6y agoYour comment made me feel compelled to mention a Blizzard talk I came across recently on the ECS (Entity Component System) architecture they used for Overwatch. It looks suspiciously like a function first architecture in that they don't allow mixing of data and functions. I'm not sure how purely functional it is, but it certainly strikes me as the kind of architecture that Carmack would appreciate in dealing with complexities that lead him to a more functional programming style. This talk is 3 years after release, and includes all the hindsight they gained from that. Also, the parts talking about the netcode are quite amazing, and the precision of their predictors that they attribute to using ECS. https://www.youtube.com/watch?v=W3aieHjyNvw&feature=youtu.be https://www.youtube.com/watch?v=W3aieHjyNvw&feature=youtu.be
- fredrikholm 6y ago> I'm not sure how purely functional it is ECS systems overlap functional programming (FP) only in that both are data first. Purely functional would mean never mutating an existing value, functions only receiving one value and returning another, monadically binding side effects and so on. To put it bluntly, a non-trivial computer game in pure FP would hog every resource in your system to barely hit single digit frame rates. (Disclaimer: I love FP, and use it at my day job. It is not fit for games though)
- ineedasername 6y agoFactorio killed just about all ability for me to actually do normal work for two weeks. It took over my brain: all thoughts were about logistics, supply chains, the structures that would deliver them... It was highly addictive, and fun and fun at first, but then got stressful. I've never been so relieved to finish a game, or had such an anti-climax watching the simple rocket animation. I can't say I hate I hate the game, but saying I like it doesn't quite feel right either.
- Iwan-Zotow 6y ago> I can't say I hate I hate the game Sure you can and many times
- mcphage 6y agoIt doesn’t help though!
- ineedasername 6y agoAh well, typos. Or a freudian slip maybe...
- lowbloodsugar 6y agoDid you launch it in less than 8 hours though?
- ineedasername 6y agoI suppose if I really optimized, planned far in advance not just in general but with detailed blueprints for different stages of development... Oh god no, you're trying to pull me back in aren't you?
- WA 6y agoEvil comment
- devenvdev 6y agoI just recently finally learned to play the game (after 5 years of playing it), you need to chiiillll... Take it easy, one problem at a time, the rocket isn't important (especially if you play with some huge mods like space exploration). It's actually similar to how I approach my job so I won't burn out.
- frozenlettuce 6y agoBartosz and Factorio? That was an unexpected, but welcome crossover!
- deleted 6y ago[deleted]
- logicchop 6y agoMore evidence that, not only do we live in a simulation, but that our simulation is running in Factorio. Great writeup Bartosz.
- leshow 6y agoBartosz is the best
- z3t4 6y agoMost programs are not factories. Programming is mostly about handling state.
- tempodox 6y ago> Programming is mostly about handling state. Only if you write your code that way, and then it's a self-fulfilling prophecy. There's a good amount of mutable state that's just incidental for particular algorithms, and not intrinsic to the problem you're solving.
- sudhirkhanger 6y agoWhere does one begin playing Factorio? Is there a place which doesn't make it feel like work?
- devenvdev 6y agoYou just start it. Beware - this game is notorious for showing you in your face that whatever doesn't work in your base is YOUR problem, you made a mistake, probably plural, probably too basic to fix. So prepare to start over multiple times. It's my at least tenth attempt in 5 years right now. And it's lots of fun!
- jon-wood 6y agoFactorio by its nature does tend to feel a bit like work, whether that's a good thing or not is going to depend on your personality. Whether I enjoy it depends very much what I'm doing in my actual job, if I'm in a period where I'm hands on writing code every day then finishing work and playing a game which is about incrementally building a system that inevitably needs refactoring or completely rebuilding to meet new requirements isn't much fun. If I'm in a period where the day job is planning projects, or supervising things with a long term payoff, Factorio is great for the satisfaction of picking it up and being able to achieve something concrete in a few hours. Just remember, on at least your first 10 or so runs, what you think is a massive base that just needs some incremental improvements really isn't. Its the base you build in order to build the components for your actual base.
- psychoslave 6y ago> It’s a simulation game called Factorio, in which you are given resources that you have to explore, build factories that process them, create more and more complex systems, until you are finally able to launch a spaceship that may take you away from an inhospitable planet. If this is not engineering at its purest then I don’t know what is. I think that good engineers should focus first on how to prosper on the current planet which was favorable enough to sustain their live until now, rather than carelessly exploit its resources with a delusive goal of finding a more hospitable place somewhere else.
- deleted 6y ago[deleted]
- niffydroid 6y agoWould sure love something browser or phone based that's quick and something I can hop in and out when not busy. I'm currently on a factorio binge...
- roguas 6y agoI love how quick haskell folks are to bring types and say "hey look, look how neatly we can express this". What is skipped is that assemblies take unordered input. Why this is important, because the neatness would start to collapse. You would have to type `(a, b, c) -> d`, `(a, c, b) -> d` or you would require monads (case item of a) or there is some other fancy type machinery in haskell for that(without checking I am sure there is). And we should talk about this even before we start talking about linear types. Hidden bonus is: we get a huge benefit of haskell's autocurrying matching the way "production" works in factorio. However why I am writting this. I am very disillusioned in haskell - getting something that seems about right(few rough edges) without hardcore typing bonanza is order of magnitude easier than getting precise types that you can depend on (since types that depend on them will be even more complex). Its funny to me that some of this "precision" is lost(unheard of in haskell community). Especially by someone like Bartosz, who I can only speculate did it on purpose to fit to his story and not show the Hommer Simpson's pulled back :). ps: I returned from vacations during which I was reading haskell/on haskell, as I often do on vacation. I am not trying to bash, haskell is pretty amazing even without any utility.
- deleted 6y ago[deleted]
- HeavyStorm 6y ago> The building blocks of every programming language are functions. Hmmm, no.
- capableweb 6y agoYou're right, not every single programming language on this planet does have functions. But, nearly all of them have functions, at least as a concept. Then in some languages they are called methods, sub-routines, procedures and more, but the concept are mostly the same. A collection of lines of code that does something, probably with a name.
- CodeArtisan 6y agoHistorically, all theses had a specific meaning which got lost or turned irrelevant with time. Subroutine, for example, came from a computer that Alan Turing worked on, it had multiple slots for punched tapes; one for the main routine and the rest for subroutines. You could jump from one tape to another tape and then return.