Akka and a Simple Actor Example (in Scala)

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 57

  • @CharlieMojoX
    @CharlieMojoX 8 років тому +21

    Finally an Akka tutorial video that makes sense

    • @MarkLewis
      @MarkLewis  8 років тому

      +Robert Morel, thanks! Hopefully you found the full playlist. I don't go as deep as some other things, but my target audience doesn't need remotes, clustering, and the new streaming and HTTP functionality.

    • @riteshpuj9566
      @riteshpuj9566 8 років тому

      +Mark Lewis Sure, it will be of great help if you can provide tutorials of akka with netty.

  • @ignaciodelcorro6873
    @ignaciodelcorro6873 3 роки тому +2

    This tutorial is Magic. NICE JOB!!!!!

    • @ignaciodelcorro6873
      @ignaciodelcorro6873 3 роки тому

      And 5 YEARS LATER!!

    • @ignaciodelcorro6873
      @ignaciodelcorro6873 3 роки тому +1

      you could continue this series of tutorials. Thx sm

    • @MarkLewis
      @MarkLewis  3 роки тому +1

      In the fairly near future I need to remake them for Scala 3. A major question for me is how much I should include of Akka Typed. Most of the concepts are the same, but there are some aspects that are different and perhaps a bit more complex because of the typing.

    • @ignaciodelcorro6873
      @ignaciodelcorro6873 3 роки тому

      @@MarkLewis Spark is making a lot of people jump in. Current clear tutorials are missing for each thing. From 0!! starting with just the basics and following the guide line. If you need an idea to form the calendar plan, contact me ignacio.del.corro@mi.unc.edu.ar, it will be a pleasure to work with you

  • @krammark23
    @krammark23 4 роки тому +1

    Great succinct explanation

  • @Amridell
    @Amridell 8 років тому +4

    You're a lifesaver here man. I can't find any decent videos on akka and then this is just...so nice. Thank you.
    What plugin are you using for Eclipse?

    • @MarkLewis
      @MarkLewis  8 років тому +1

      I'm glad that you found it helpful. I'm not certain what you mean on the plugin. I'm using the Scala IDE plugin do do Scala, but that is the only one that is significant for these videos.

  • @sevenxym
    @sevenxym 8 років тому +1

    It's painful to watch how Eclipse does not want to rename a class if file is not saved and it takes so much time to figure it out. IMO, there are better IDEs.
    I agree with comment below to use sbt or any other build tool to start with any project. No one should do dependency management with an IDE.

    • @MarkLewis
      @MarkLewis  8 років тому +1

      They should if they are a 2nd semester CS student. sbt is a great tool and is definitely the way to go for large projects with Scala, including anything professional, but it is easy to forget how many steps there are in getting this started. Once set up, it is great for adding dependencies and such, but it really is a much less intuitive tool for the novice.

  • @rambabuchamakuri1271
    @rambabuchamakuri1271 7 років тому

    Nice akka tutorial video for beginners... thanks...

  • @ThakurArjun247
    @ThakurArjun247 8 років тому +1

    Hi Mark, thanks for the tutorial, may I know which application did you use to record your screen?

    • @MarkLewis
      @MarkLewis  8 років тому

      Keep in mind that I'm under Linux.I have been using Vokoscreen. I used to use recordMyDesktop, but I had problems with the audio and video going out of sync so I switched over about two years ago. I rarely have any issues with Vokoscreen other than forgetting to change my sound input settings before I record.

    • @ThakurArjun247
      @ThakurArjun247 8 років тому

      Hi Mark, I am grateful for your reply. Vokoscreen recording got some background noise. Is there any other application that you are using to remove the noise? I tried Audacity but it only creates only audio file and than I will have to manually synch the audio and video.

    • @MarkLewis
      @MarkLewis  8 років тому

      For background noise I tried a number of different microphones. I would up buying a fairly nice USB microphone that has a little stand. It was about $60 and works much better than a built in microphone or some other inexpensive ones that I bought.

  • @FilipePosteral
    @FilipePosteral 6 років тому +2

    nice and simple! Thanks for the video.

    • @MarkLewis
      @MarkLewis  6 років тому

      Glad that you found it useful.

  • @surendras7213
    @surendras7213 6 років тому

    Hi Mark Lewis, when i run the same program in Scala IDE, it gives me an error "Error: Could not find or load main class multithreading.SimpleActorExample". I didn't understand what is that. Could you help me.

    • @MarkLewis
      @MarkLewis  6 років тому

      There are two common causes of this. One is that you have a class instead of an object for the main. A main for an application in Scala has to be in an object. The second is that the package statement in the file doesn't match the directory the file is in. This confuses Eclipse, though it is allowed Scala and you can get around it with command line tools.
      If neither of those seems to be the case, my normal approach is to go to the command line. Go into the directory where you have this. If you aren't using SBT, there will be both a src and bin directory. Look in the bin directory to see if there is a .class file that matches your main. For an object declaration, it would include a $ in the name. If it is there, that means that Eclipse isn't seeing it for some reason. If it isn't there, that means your code isn't compiling the way you expect. If I get really desperate at this point I go to compiling and running on command line just to see what happens, but that is a more involved process.

    • @surendras7213
      @surendras7213 6 років тому

      Thank you for your quick response. I solved now its working.

  • @sharma8592
    @sharma8592 2 роки тому

    How to package it to jar, i am getting errors

  • @amareshpatil5853
    @amareshpatil5853 4 роки тому

    After adding akka-actor and scala-libraray jar files still I am getting compilation errors.Why?

  • @bigolol
    @bigolol 7 років тому +1

    holy moly this is actually really good really didnt expect that for such a "niche" topic :O
    thanks a bunch

    • @MarkLewis
      @MarkLewis  7 років тому

      I'm glad that you have found the material useful.

  • @DmitriTroskov
    @DmitriTroskov 5 років тому

    Is there a playlist will all akka videos sorted?

    • @MarkLewis
      @MarkLewis  5 років тому

      They are part of my general multithreading playlist. ua-cam.com/play/PLLMXbkbDbVt98z_6KWt3fU3W5jTOja9zY.html

  • @josephfelekidis7206
    @josephfelekidis7206 4 роки тому

    I can't find the akka library anymore. Is there another way to download it?

    • @MarkLewis
      @MarkLewis  4 роки тому

      The standard way to use Akka now is to use sbt, or another Scala build tool, and include it in the dependencies. Here is a starter project I gave my students last fall that included Akka, github.com/MarkCLewis/MUDStarter/blob/master/build.sbt. I will note that I've also moved from Eclipse to VS Code using the Metals plug-in in my teaching and my own development.

  • @amritadahiya102
    @amritadahiya102 7 років тому

    i want to work on actor model developed by Gul Agha. Is this Akka helpful in implementing actor model.

    • @MarkLewis
      @MarkLewis  7 років тому +1

      Akka is the primary implementation of the actor model of parallelism on the JVM.

  • @arunredmi5338
    @arunredmi5338 7 років тому

    hello sir, which software u use for recording screen

    • @MarkLewis
      @MarkLewis  7 років тому +1

      I have used a number of different things over a few years. I think that this video was made with the Linux program recordmydesktop. However, I've stopped using that because I had a lot of issues with frame rates and audio encoding, especially when running other processes on that machine (my computer support 48 threads, and I have 24 of them working on a simulation most of the time). Right now I'm using Kazaam. It is really simple, but it gets the job done. I've considered moving to a more advanced program, but there are certain advantages to simplicity.

  • @remytangooo
    @remytangooo 6 років тому

    why no use pom.xml. but very well done! thank you!

    • @MarkLewis
      @MarkLewis  6 років тому +1

      If I redid this today I'd use sbt. I've been doing that with my students for the last few semesters. It does simplify things, and they get at least a little experience with sbt.

    • @remytangooo
      @remytangooo 6 років тому +1

      @@MarkLewis really like Ur videos. Taught me alot too! Really appreciate it!

    • @MarkLewis
      @MarkLewis  6 років тому +1

      @@remytangooo I'm glad that you have found them useful.

  • @venil82
    @venil82 8 років тому +1

    whats the URL to full AKKA play list pleas?

    • @MarkLewis
      @MarkLewis  8 років тому +3

      ua-cam.com/play/PLLMXbkbDbVt98z_6KWt3fU3W5jTOja9zY.html
      This is my Scala multithreading playlist, including the Akka stuff.

    • @venil82
      @venil82 8 років тому

      thank you

    • @gaurav19may
      @gaurav19may 6 років тому

      Mark it would be really awesome if you can create a seperate playlist for akka related videos..

    • @ГонкаДиаграмм
      @ГонкаДиаграмм 6 років тому

      here you go
      ua-cam.com/play/PLGAr1f-766_x4EkTBuCNFKb4IQZVFi1vy.html

  • @MohammadSalibi
    @MohammadSalibi 6 років тому

    Thanks for the nice explination!

  • @videosforvicky
    @videosforvicky 6 років тому

    I am not able to download akka relase form akka.io anymore. download links keep redirecting to docs link

    • @MarkLewis
      @MarkLewis  6 років тому

      Yeah. My students ran into this last fall. They are basically forcing people to use sbt or Maven and get Akka through the dependency management features. That isn't a bad thing in general, but it means people have to learn something about one of those build tools. Fortunately, You can download the Akka jar directly from Maven. Right now the newest version is at mvnrepository.com/artifact/com.typesafe.akka/akka-actor_2.12/2.5.9. You can download the JAR file from close to the top of that page. It also has a dependency on Typesafe Config. The link lower on the Akka Maven page takes you to mvnrepository.com/artifact/com.typesafe/config/1.3.2.

  • @jadenm.5795
    @jadenm.5795 8 років тому

    When you were pronouncing Scala and Akka wrong the whole time.

    • @MarkLewis
      @MarkLewis  8 років тому

      I'm not certain about Akka, but Martin had something that I saw back in 2008 when I was first learning the language saying that the "a"'s were pronounced like in Java. I don't remember if that was online or where I saw it.

    • @jadenm.5795
      @jadenm.5795 8 років тому

      oh I was talking about myself :(

    • @jadenm.5795
      @jadenm.5795 8 років тому

      I pronunced them with hard a's :(

    • @MarkLewis
      @MarkLewis  8 років тому

      I really wasn't certain originally until I heard Martin make the comparison to Java. I still don't know if my pronunciation of Akka is right, but I'm running with it. :)

    • @ricezhang5299
      @ricezhang5299 8 років тому

      Hahaha.