11 ms·
So you're using a weird language
- macintux 4y agoSolid advice, worth the read for me just to uncover this gem. https://github.com/uhub/awesome-erlang https://github.com/uhub/awesome-erlang
- sli 4y agoAwesome maintains a directory of these if you'd like to find more of them. https://github.com/sindresorhus/awesome https://github.com/sindresorhus/awesome
- 7thaccount 4y agoI identified with going through these weird langs in an attempt to get a big productivity multiplier. It also failed for me haha!
- Zababa 4y agoThis is one of the things I love about OCaml. Since answers are not a stackoverflow search away, it forces me to actually understand what I'm trying to do. Everything takes longer at first but I end up building a deeper understanding than if I was using JS or Python. It's something I could force myself to do in those two languages, but it's hard. Artificial limitations like not having that possibility in the first place can sound silly at first, but it's something that people use all the time. It's the idea of using a system instead of relying on willpower to force yourself to do the right thing and set yourself up for success.
- barbazoo 4y agoYou might be talking about solutions to popular problems are you? I can't imagine having to figure out the language's syntax or what the interface of packages/libraries is without searchable documentation.
- krick 4y agoIt actually does sound silly to me. I just don't understand what you mean. Not in general, but in this particular case. If I'm searching for "reverse a list in python" — rest assured, I do know how to reverse a list, most likely in Python too, I'm just looking for most idiomatic way to do that (so, standard library function or syntax construct) and it just so happens that the answer on StackOverflow is usually more straightforward and easier found (by search engine, at least) than in the docs (and in Python it would be a syntax construct indeed, which usually complicates finding what you need in the docs even for the languages with much better docs than Python). So why would I care if I wasn't forced to invent my own way to reverse a list? I'm glad I was able to google it! If it's actually something relatively high-level or language agnostic — which is when I would have to "understand what I'm trying to do" — chances are indeed higher that I'll find a solution in Python, than that I'd find a solution in OCaml, but the thing is, I don't really care what language I'll find it in, as long as I am able to read it. I just have to get the idea, then I'll write it in any language I can write. One might respond that "well, not being able to copy-paste it is the all difference it makes", but, seriously, there might have been like 2 cases in my entire life (that's 15+ years of programming) when I just copy-pasted something from stackoverflow (I think I actually remember those cases — these were indeed very specific situations, some stupid language quirks, and workarounds for them really should've been implemented in the standard library; and TBH, I didn't even really care how they work, as long, as they work — these were not your typical programming problems). Otherwise, I just don't find it very applicable: there's always some difference between stackoverflow solution and what/how you want to do. So you read the code to get the idea, then you go and write it yourself. Ok, there are also CSS problems, I copied styles plenty of times. But that's different. And I have to change colors and stuff in the end anyways.
- Zababa 4y agoIt is silly, I agree with that. When I find a solution with stackoverflow or a forum or whatever, I tend to not remember well the next time I have this problem. On the other hand, if I'm forced to understand what's happening and what should I do, I will remember it and learn something. I don't know if it's a character flaw or a memory issue, but that's how I work. You don't seem to work the same way and that's fine, it's just how things are.
- andrewstuart 4y agoI think it's getting harder and harder to justify using anything but the most popular languages and frameworks. You need a VERY good reason to use anything except TypeScript/C#/Java/Golang/Python/React/Vue/Postgres/MySQL/SQL server/Oracle. Perhaps Rust. These technologies are good enough to get almost anything done these days. There's exceptions of course for example games tend to written in C++ and embedded is often C. Apart from anything, you should be using these most popular technologies if only for the sake of recruiting. Using less popular technologies like Erlang/Dart/Kotlin/Ruby/Elixir/OCaml/F# or whatever weird new JavaScript React alternative thing got you interested lately is a bad idea not just for recruiting but for support and community and documentation. If you are the person deciding which technologies to use, you should probably be using the most mainstream thing you can, not the coolest newest thing that you read on Hacker News. There's any number of companies saddled with their main systems being built in the weird assed framework that the fourth-to-last CTO decided was a good idea, and those companies are now stuck with the problem. I should note of course that my comments refer to company/organisation development. For personal projects or fun or whatever you should do whatever the heck you enjoy.
- xupybd 4y agoThere are also companies saddled with tech that was mainstream but is no longer. Adobes Flex was a great option until it was killed. Perl was everywhere now it's almost esoteric to find a greenfield project in Perl.
- justusw 4y agoRuby on Rails used to be one of the most popular ways of implementing MVC applications in the server. Has Ruby been hit by a similar fate?
- andrewstuart 4y agoAsk any company dependent on Ruby how its recruiting efforts are going.
- nikitaga 4y agoFFS if I read yet another article bringing up cats vs scalaz as relevant to Scala today, I'm gonna keep my cool and ignore it with prejudice, just like I did this one. If you have so little awareness of the Scala ecosystem that you don't realize how laughable such a remark is in 2022, yet allow yourself to have such a strong opinion on the language, I have less than zero interest in the rest of your opinions about "weird languages".
- cole-k 4y agoI feel like you're the kind of commenter the author is advising against taking advice from. Someone learning Scala presumably cares much less about gaining "awareness of the Scala ecosystem" than writing their first Scala program. I don't know Scala though, so perhaps your argument would make more sense to me if you explained why they were so wrong.
- nikitaga 4y agoscalaz is irrelevant to scala in 2022, cats won almost everyone over a long time ago. The author is basically raising a giant "I haven't touched Scala in years (or ever)" flag by bringing up that choice. Then proceeds to summarily dismiss Scala as "a mess". Right. I'm tired of people who never really used Scala or haven't used it in years casually shitting on it like it's a cool thing to do. Like "Scala is a mess" is something self-obvious that doesn't even need any explanation / justification. And Scala aside, it's pretty amazing that a blog post that can be summarized as "be a normie, being weird is expensive" is at the top of Hacker News. Such hackers we are.
- rendall 4y ago> I'm gonna keep my cool and ignore it with prejudice, just like I did this one. Just gonna point out you didn't keep your cool and ignore it. Keeping your cool: good! Ignoring it: no way! You obviously have a lot of passion for the topic, and may have rightly identified a flaw in the author's blog post. You can use that passion - and keeping your cool - to correct the record. e.g. I dunno OP is wrong and Scala is not a mess, it is awesome! That culture war was resolved in favor of cats years ago, and here's why...
- maxwelljoslyn 4y agoI'm about to embark on my master's thesis, in a domain[1] which could realllllly use the "attach to running process; re-evaluate code and have the system just keep going" aspect of Lisp languages. I know Python best. But I have reached my breaking point with its syntax, and its lack of binding constructs, and lack of symbol datatype, quote, etc. I am intending to use Clojure ... but I have to ship this thing by May 2023 come hell or high water. All else being equal, I will proooobably be able to go further with Python. But I'm concerned it will hamstring me from doing the crucial feature of "extending the design [ie code] of a game as it runs" since, AFAIK, it's difficult to get a Lisp-ish experience of total live reloadability in Python... jurigged[2] and reloading[3] not withstanding. I know some common lisp so I'm not a total lisp noob. I've learned enough CLJ to be dangerous ... but I'm worried I'm backing myself into an endless hole by using a language I'm not yet master of. Yet, I think the features of the ecosystem (total live reloadability of a CLJ/CLJS app! with current state preserved even down to what a user has typed in the HTML UI!) are so tempting... Just venting out loud. comment/contact if you have suggestios or are curious about the project; i'm soon to begin blogging as I develop it. [1] I'm reinventing the "virtual tabletop." Current ones are so fucking shallow. [2] https://github.com/breuleux/jurigged https://github.com/breuleux/jurigged [3] https://github.com/julvo/reloading https://github.com/julvo/reloading
- Mathnerd314 4y agoIf you don't mind being stuck on Windows you could use Visual C# or Visual Basic, they have edit-and-continue too. https://learn.microsoft.com/en-us/visualstudio/debugger/edit-and-continue?view=vs-2022 https://learn.microsoft.com/en-us/visualstudio/debugger/edit... I've worked with the SuperTux C# level editor in the past. C# was actually pretty nice for GUI stuff. There doesn't seem to be a good GUI framework for Clojure. There was Seesaw but it hasn't been updated since 2019 (no maintainer). There is a guy developing a new framework https://github.com/HumbleUI/HumbleUI/ https://github.com/HumbleUI/HumbleUI/ but it's WIP. I guess you could sidestep this by making it a webapp and using figwheel + web framework of choice.
- maxwelljoslyn 4y agoThanks for the tips Mathnerd. My project will definitely be a web app -- I'm most familiar with web dev, plus I'd much rather be able to point someone at a URL and say "here's the thing try it out" and have that happen in 5 seconds instead of dancing the installation mambo. Thanks for the pointer to figwheel -- that looks like hot stuff and just what I need for end to end server/client interactive dev!
- codyb 4y agoComparing and contrasting Erlang’s BEAM with Java’s JVM taught me an absolute ton about software engineering.
- im_down_w_otp 4y agoIt taught me way more about sales and adoption than anything else. As a former Erlang developer it never ceases to amaze me that an entire language, standard library, toolchain, and runtime that's entirely dedicated to and on-paper perfectly technically suited for the most pervasive "backend" development challenges of our time somehow managed to effectively blow a 20-year technological headstart and failed to leverage the notoriety that should have come from several super high-profile "trendy" commercial use cases in the 2006-2013'ish era. Such that it's still relegated to general obscurity and is seeing its core competencies taken over by a hodgepodge of other languages and technologies that started much later but became rapidly more popular while also still arguably doing a worse job at those things than Erlang did.
- bcrosby95 4y agoErlang could be the literal silver bullet and people wouldn't use it because it's a funny looking language. I showed it to all my developer friends back around 2008 (I found out about it because a competitor used it and open sourced some of their stuff) and the only comments I ever got was how weird it looked. No one gave a shit about anything else. The story it told me wasn't about sales, it was about how shallow most developers are. Once nodejs came out it was the final nail in the coffin - callback hell solves all your problems, no funny looking language necessary!
- valenterry 4y agoAs nice as the beam might be, erlang is just not a great language by the judgment of many people, including me. Elixir can't make up for it either. I refuse to use a dynamically typed language for anything bigger than a couple hundred lines. On the JVM you have languages like Clojure and Scala, which both are top class in their domains imho. I wish there was the same for the beam.
- fortran77 4y agoI got burned on a weird language (Elm) so now I avoid them. No Rust for me, no Clojure, no Groovy.
- AstralStorm 4y agoRust is not particularly funny. It is C and C++ with some SML syntax. The one innovation in it is the borrow checker - making it somewhat dependent on the quality of the compiler and adding a bit of noise to syntax for exchange in predictability of the code - and the cargo packaging system, unusual for a statically typed fully compiled language.
- tasuki 4y agoFunny thing, Elm is one of my favourite languages. You get the compile-time guarantees of Haskell without the necessity to understand higher kinded types and other complicated things. Elm is a very simple and effortless language.
- whoooooo123 4y agoWhat about Elm got you burned?
- z5h 4y agoI've worked on a commercial project owing much success to Elm. And another commercial project in Elm with no problems. And completed and/or launched a few side projects in Elm. Elm is great for many people.
- lamontcg 4y ago> If you need to inspect unicode properties (or uppercase or lowercase unicode texts) there is uucp. Anyone else read this and feel really old?
- girvo 4y ago> I'm the last person on Earth to tell someone to be patient, but if you actually want to ship a company's production code in Gleam or Crystal, I highly suggest you put up 2-4 small projects first As someone who has used Nim in-anger and production at a couple companies now (and am currently using it to build our firmware for our industrial IoT sensor platform), I can wholeheartedly agree with this. The first couple things I built in it at previous positions were small internal tools. They went well, team members contributed to them as well, things were good. It was that, plus the unique constraints of this firmware project that allowed us to have the confidence that it would work well -- and it has. Of course, Nim is sort of cheating, as it being able to be compiled-to-C-sources means we have an out at any point we want, both in terms of being able to easily bind and use driver code from vendors, to wrapping up a Nim object file with a nice C header to call from some C/C++ code if need be. Now: our backend is Java, and our front-end is Typescript and React. Pick your battles! If we were swinging for the fences with some other niche server side, and Elm or something (as much as I enjoy playing with it) for the client-side, as well as trying to use something non-standard for the firmware itself, I'm sure we would've failed immediately. But we have our devices out in the wild in rural Papua New Guinea where no one's going to be flashing our boards for us, and they're working fantastically :)
- fulafel 4y agoHeh, C++ -> Scheme being the first journey to a weird language, I guess it's all a matter of POV. "Dragons aren't flying out of my nose anymore, what is this?"
- pharmakom 4y agoThere seems to be a weird version of the Efficient Market Hypothesis going on in the comments: If niche lang is so much better, then why is no one using it? Well, quality doesn't necessarily lead to popularity. I would encourage talented solo devs to seek work in niche languages, at least once in their career. You can deliver more value, work with interesting people and solve more interesting problems. Life is too short for Java CRUD.
- jstimpfle 4y agoAnd what are the credentials you have for backing up this claim? Because to me it seems like the majority of those who deliver value would beg to differ. And a vocal minority is shouting "Stop wasting your time on programming languages". There are so many other easy ways to improving software quality. The xkcd linked in the article had me laugh out loud. I hadn't known that one, it's great, and what it says about languages rings true.
- pharmakom 4y agoI do not have a peer reviewed study to back up my claim. Sorry to disappoint. Which XKCD? I read the article but missed it.
- Yoric 4y ago> There are so many other easy ways to improving software quality. Well, yes, there are. But picking the right language for the task is one easy way to improve software quality, so why discard it? Also, for some issues and metrics, software quality is in fact limited in practice by the language used. Getting guarantees of certain properties is trivial in garbage-collected languages, near impossible in languages with manual memory management. Similarly, the lack buffer overruns and underruns, XSS exploits, properly following protocol, etc. are going to be trivial to guarantee in some languages, near impossible in others. Now, I fully understand that following the hype wagon (or listening to fanbois singing praise about the latest tech, whether it's a language or anything else) is annoying. But let's not confuse hype and using the right tool. The intersection between those is often rather small :)
- Guthur 4y agoRecently I'm considering building an information system for the company I work for and I believe it would ultimately look like an expert system. This has naturally led me to prolog, but this is a very scary proposition for me to try and sell to the company though they have been very supportive. It's a powerful tool but just so esoteric and I worry it'll be a pain to build a production grade system that can be worked on by someone other than myself.
- forgotpwd16 4y agoClojure has a core library enabling Prolog-like programming. Other languages have similar libraries but usually those are third party and less developed.
- Guthur 4y agoActually I'm considering having host languages for the system as I'd like to keep the informational core as pure as possible with the host taking care of any imperative actions. At least that's my thoughts so far. Though trying to introduce clojure, as much as I enjoy it, would just be adding to my social woes :).
- hooby 4y agoMaybe all languages are weird, and we just happen to be more used and adapted to a certain weirdness?
- soggybutter 4y agoMore and more I think this idea has merit. When I was still deep in the go kool-aid it was always shocking to me how difficult it was for some folks to use the language. "It's so simple!", I would scream internally, but it's only simple if you can check a lot of your previous experience at the door. Whether you're coming from a language with a more powerful type system (e.g. any other language with a static type system), or something completely dynamic, learning go will include a lot of friction. Despite it being a simple language on paper. I think that's part of the reason that python devs seem to have such success with it, because python and go tend to be focused on getting shit done over elegance.
- le-mark 4y agoI tend to be more pragmatic. I advise people to check the availability of jobs in their area for a given language (or framework), the relative pay of these jobs, and choose what to specialize in based on that. Passion fades, but you’ll always need a job. Chasing fulfillment through work isn’t sustainable for most. Find meaning and purpose outside of work. Just my .02.
- jstanley 4y ago> Find meaning and purpose outside of work. For example... by playing with a weird programming language purely for the joy of the craft? You can do programming outside work, you know.
- tasuki 4y agoIt's ok for you to optimize for money and employability. I'm not sure whether it's ok to tell other people to do so. > Passion fades, but you’ll always need a job. No and no. The original post was about having fun with weird languages. If it were a post about windsurfing, would you advise people to check the availability/pay of jobs for programming languages/frameworks instead of going windsurfing?
- le-mark 4y agoPerhaps you’re not a native English speaker and you’re not aware of the definition of advise? It’s in no way telling anyone what to do! > offer suggestions about the best course of action to someone.
- tasuki 4y agoYou're right I'm not. And you're right I misrepresented what you said - I'm sorry!
- xyzzy4747 4y agoIf you have a few million in investments/savings (like many SWEs) then job security isn’t really the highest priority.
- poulpy123 4y agoI feel that. I had a look at compiled languages to replace/complement my usage of python. I wanted something simple (no manual gestion of memory, thanks) and easy to my eyes, but efficient, and if possible fresh but with a thriving community. I looked at D, Crystal, Nim, Go, Rust, Haxe, Swift and Zig (and C/C++, even Pascal). The language I liked the most (by far) is Nim, but unfortunately the niche community makes it a no-go for using it at my job, and the lack of hype like Rust makes me pessimist about its future. The second most interesting languages where Rust (but the borrow checker and the amount of ', |, <, > intimidate me) and go (but for a weird reason I'm not hooked by its syntax). My conclusion was that where I work (not a dev company), I can't use nothing but java, python and javascript if I want my code to be sustainable, and that I will keep Nim or maybe Rust/Go as a low level hobby Edit: as a funny note, during my exploration i stumbled upon array languages programming languages like K, and I'm convinced there are mainly a scheme to guarantee jobs for people using them
- goodpoint 4y ago> the lack of hype like Rust makes me pessimist about its future What really makes me pessimist is the fact that software development decisions are increasingly hype/marketing-driven than based on technical reasons.
- mejutoco 4y agoTypescript meets your requirements I believe, althought probably you are considering together with javascript. If not, it might be interesting to try it.
- poulpy123 4y agoThanks ! But by compiled I meant compiled to binary, and I guess Typescript don't do it ?
- nicoburns 4y agoIf you want to compile to a binary for ease of distribution, then you can do it with both TypeScript and Python (you just get an interpreter embedded in the binary), although in both cases you'll need to use a 3rd party tool to achieve this. If you want it for the performance then neither are good options, although JS/TS is significantly faster than Python.
- jshaqaw 4y agoGreat post. I see weird language projects beyond solo/hobby stage go in two directions. The first is the “beating the averages” approach where they double down on the weird to attract higher level programmers attracted by the chance to play in a preferred niche. The second is a gradual shift towards conventional languages as the problem of maintaining a codebase at scale with an ever changing team becomes a dominant challenge. As someone with an irrational attraction to the weird langs my heart is with the first group but if I was actually running a business I’m sure the second would seem very compelling.
- couchand 4y agoThe article describes strategies to help when developing in weird languages. But they're helpful ideas for other contexts, too. When working with external systems or unfamiliar configuration formats, the same forces are at play. For instance, TFA suggests sitting down with a pot of coffee to read the language docs sequentially (they were written by a hermit). This is also a great way to try to familiarize yourself with a mystery system. The author recommends paying attention to building your workflow, since you'll be figuring things out as you go and the cost of forgetting details is high. I've found the same to be the case when working on integrating unfamiliar systems: early investments in automation and testing pays dividends.
- Decabytes 4y agoI love writing in weird languages. Besides thinking about programming in a different context, being forced to read the technical documentation, source code, or just having to figure it out happens more often when I can’t just copy an answer from stack overflow. I find the latter just too tempting and easy when programming in a mainstream language