What does LSP stand for?
- 2 Posts
- 58 Comments
Between Elixir and Erlang. Erlang is what’s used in telecom right? Is Elixir as well? Is Elixir like a new improved Erlang? I’ve heard so much about Elixir recently.
You have piqued my interest, I’ve recently gotten back into programming (I do “devops” for work) and don’t really consider myself a programmer, but I find languages fascinating. I was lucky enough to join a study group on compiler design with an Apache project leader and while it was over my head, I learned a lot and enjoyed it.
(I know I could look this up, but enjoying the conversation :)
Elixir runs on the Erlang vm? What is the difference between the two?
kool_newt@beehaw.orgto Moving to: m/AskMbin!@kbin.social•did anyone else from the USA grow up being forced to say the pledge to the flag in school?1·2 years agoPretty sure everyone did.
I think this is where “compartmentalization” comes in. Similar in concept to how you are forced to wall off sadness when a loved one dies so that you can continue to live your life, I think there are mentally competent right wingers, but they wall off the logic and reasoning so that it applies only to machines. They do this because if those ideas of logic and reason get beyond the wall/outside of the compartment, the meaning of their lives falls apart.
The easiest way to think about it that is kinda right, and what got me into is “It’s like compiled Ruby and nearly as fast as C”.
Crystal is a language with syntax modeled after Ruby, which is considered one of the most human friendly languages (it’s way easier to understand than C and most others). Ruby and Crystal are “object oriented”. Like if you wanted to know what I had for lunch using Crystal you’d ask me, an “object”
last_meal = kool_newt.stomach_contents
, as where in C, you’d cut me open and look.Where Ruby is a dynamically typed (it figures out whether things are Strings or Arrays, etc on the fly as needed, handy but very slow) scripting language, Crystal is statically typed, so you have to be conscious of types while you code. And where with ruby you end up with a script, Crystal code is compiled into a binary.
Where Ruby is good for small/medium websites with a modest traffic, or for prototyping ideas in an easy language, or making smaller utilities, Crystal can handle massive traffic, and make fast production level apps and tools without the difficulty of C or Java.
I’m using Crystal and Kemal (Kemal is akin to Ruby’s Sinatra) for web dev, and trying to make my own DNS utils (I want
dnsip
, not a fan ofdrill
,dig
, and other tools).If you know Ruby, Crystal is an easy jump.
I’ve looked into Elixir a bit, I’d probably be into it or Rust if Crystal didn’t exist, more so than Go. Something about languages that run in a VM turns me off tho, reminds me of Java too much I guess. I’ve never heard of Gleam, that makes two languages I’ve learned of due to Lemmy in like 3 weeks!
kool_newt@beehaw.orgto Asklemmy@lemmy.ml•What is something that people think is dangerous but in reality is completely harmless?English1·2 years ago-
Political pressure comes in part from people like me who live around here and where they’d look for other sites. I don’t want trucks full of nuclear waste constantly being trucked through my area (and your area!), I don’t want to be viewed as a bomb target by enemies. I don’t want trucks of nuclear waste around the country being viewed as dirty bomb targets.
-
Even without the political pressure, how is nuclear power clean when massive massive holes in the ground have to be created and maintained with huge trucks and cranes using fossil fuels so we have a place to store waste that will be dangerous for tens of thousands of years? Yucca Mountain has taken decades to approve and build, any other sites will likely also. Spent nuclear fuel having to be trucked across the country using fossil fuels and tires, at best can be converted to battery power.
-
Nuclear plants take a decade or more to build, we don’t have that kind of time when it comes to climate change.
-
Nuclear power makes nuclear disarmament that much less likely
-
All of this is also assuming our current civilization continues for tens of thousands of years unbroken. If for some reason 500 years from now civilization broke down or was taken over and the average person couldn’t read English anymore, how would we transmit the idea of everlasting danger in a geographic region to those who may see things very differently?
-
kool_newt@beehaw.orgto Asklemmy@lemmy.ml•What are the words you know or use for the toilet and the activities you associate with it?English4·2 years agoI’ll be in my office downloading some files.
kool_newt@beehaw.orgto Asklemmy@lemmy.ml•What is something that people think is dangerous but in reality is completely harmless?1·2 years agofr, I’m living in a bubble for the rest of my life.
kool_newt@beehaw.orgto Asklemmy@lemmy.ml•What is something that people think is dangerous but in reality is completely harmless?3·2 years agoIt’s just the radioactive waste we don’t know what to do with and becoming a military or terrorist target parts that are dangerous.
kool_newt@beehaw.orgto Technology@beehaw.org•Instagram Threads launched, and my Mastodon server went offline. - The VergeEnglish5·2 years agoI ate lunch and my cat pooped, anyone else want to mention two random events?
kool_newt@beehaw.orgto World News@beehaw.org•US top court deals blow to LGBTQ rights in web designer caseEnglish2·2 years agoSo, we can refuse people that seem right wing too right?
kool_newt@beehaw.orgto Programming@beehaw.org•Looking for recommendation to start programmiEnglish2·2 years agoRuby and Python are applicable in most of the same areas. I’m currently working on a realy simple Ruby project and using a web framework called Sinatra (kinda like a lightweight Ruby on Rails if you’ve heard of that) that makes it super easy to build web apps and APIs. My ruby app basically queries an API, sorts some data and presents it to my companies management as they need it.
Python is great too and more popular, thought I’m not really a fan as I don’t like when languages enforce white space. Python also tends to have an “attitude” like there is only one way to do a task, whereas Ruby is more flexible in this respect. Also, Ruby is fundamentally “object oriented” , Python has some object orientation but it was added on as an afterthought so Python can be a bit mixed depending on which libraries you choose to use.
If you don’t know what object orientation is, it means “everything is an object”. In functional languages you’d count the letters, in Ruby you ask the object for it’s length property.
This is Ruby, using the IRB command line interpreter (shell)
irb(main):001:0> word = ‘bicycle’ => “bicycle” irb(main):002:0> puts word.length 7 => nil irb(main):003:0>
kool_newt@beehaw.orgto Programming@beehaw.org•Looking for recommendation to start programmiEnglish2·2 years agoI suggest learning Ruby, it’s a lot nicer and easier to learn than many others in my opinion. You can learn Crystal at the same time, it’s got very similar syntax but it’s a compiled language so super fast.
Wait, I thought it was about NOT pooping. I’ve been hearing about No Poop July.
I feel like I spent much of my youth waiting. Waiting for the weed guy, waiting for my friends to come, or my parents to get home. For a while there I was measuring time in cigs, not recommended.
As this started happening more and more throughout the years, I’ve often wondered if it was me, if I was so out of touch, but it turned out it was really the children (redditors) who were wrong.
Sometimes Skinner is right.
I came here for a post about a fart, oh how disappointed I am.
That’s a thought I did not need in my head.