• 4 Posts
  • 31 Comments
Joined 2 years ago
cake
Cake day: December 2nd, 2022

help-circle



  • 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 :)





  • 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 of drill, dig, and other tools).

    If you know Ruby, Crystal is an easy jump.






  • Ruby 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>







  • When you say clouds are these like little mini servers? Just super localised so they don’t have to go as far and can respond quicker?

    Exactly

    Was 4g on the same plane as usual talk/text? Does it have to go all the way to a bigger cloud through the tower instead of just to the tower?

    Yep, well data that needs to go to the cloud does. Facial recognition happens quickly and in small devices, but the computing power comes from a cloud or edge computing back end, and the edge is much faster. Voice traffic doesn’t go to the cloud AFAIK.

    There are also differences in the frequency, I know much less about this, but different frequency ranges have different properties as far as ability to penetrate walls, etc. The 5G signal doesn’t travel as far or as effectively through walls so there must be more cell towers to cover a given area. This may be where the conspiracy people are getting it from, only I think they have it backwards, pretty sure 4G would penetrate your skull better than 5G (actually not sure what they believe).


  • One of the biggest changes in 5g is the separation of the control and data planes, this means downloading pix of kitties doesn’t interfere with phone control signals and gets everyone better bandwidth and responsiveness.

    This also facilitates “edge computing”, which is like a tiny clouds at the base of cell phone towers, this tech is used for super fast facial recognition and things like that where sending the data all the way to the cloud and back is a few milliseconds too slow.