Josiah Parry
Josiah Parry
  • 38
  • 138 719
RIP RStudio 🪦 Positron has my 💕
(No RStudio isn't dead but there's a new show in town!)
Download Positron: github.com/posit-dev/positron
My keybindings: gist.github.com/JosiahParry/f254923b2c75ea32db28de07fb755a7e
Extensions:
- Material Theme (cant live without)
- Toggle Light/Dark (cant live without)
- Rust analyzer (can't live without)
- Todo tree
- Docker
Переглядів: 9 793

Відео

R's new exploit: how it works & other ways you're vulnerable
Переглядів 2,4 тис.8 місяців тому
A vulnerability in the R programming language was discovered. I show how it works as well as other ways that you can be exploited by using features of the R programming language. We go over: - abusing .onLoad() - hiding bad intentions in S3 generics - and how compiled code can hide things The exploit is because promises can be stored in an rda or rds files. These unexecuted pieces of code can t...
Parse JSON with Rust & Serde
Переглядів 1,4 тис.8 місяців тому
Parsing JSON in Rust is easy with the serde and serde_json crates. In this video we'll parse a json file of todo tasks. You'll learn how to create a struct, derive Deserialize and Serialize to work with serde as well as how to use serde_json to process text into your struct. Rust Code: gist.github.com/JosiahParry/cd1e132e91603df468b7043a52b26e88 Twitter: JosiahParry GitHub: github.c...
Rust & R: Decoding Geohashes into sf objects | Pt. 2
Переглядів 2658 місяців тому
Part 1: ua-cam.com/video/yaxfqpECIZ0/v-deo.html Code: github.com/JosiahParry/geohash Geohash Rust Crate: docs.rs/geohash Follow me on Twitter: JosiahParry Connect with me on LinkedIn: linkedin.com/in/josiahparry In this second part of our live coding series, we further explore the fusion of Rust and R in geospatial data processing. We make a function that decodes geohashes into boun...
Rust 101: Quick VS Code Setup in Under 2 Minutes
Переглядів 3 тис.8 місяців тому
No fluff or frills instructions to set up VS Code to be used with Rust all within 90 seconds (84 to be exact). I go over how to install the rust-analyzer and the other extensions that you need as well as a simple keybinding that can be helpful for checking or running your rust code. Extensions you need: - rust-analyzer - even better TOML - crates Follow me on: Twitter: JosiahParry G...
Build a geohash R package using Rust
Переглядів 5948 місяців тому
We cover more advanced Rust concepts to build a package to perform geohashing in R. You'll learn how to: • Using match statements for control flow • Creating and working with custom structs • Deriving traits for added functionality on your structs • Implementing the From trait for custom structs • Destructure tuples • Vectorization across two variables • Handling NAs effectively • Generating da...
Building UwU: Rust-based UUIDs for R
Переглядів 4528 місяців тому
I tackle a problem from twitter and develop Rust-based R package called {uwu} for generating UUIDs. In this video, I dive into the world of rust R via extendr, showing you how I transform a tweet problem into a functional solution. GitHub Repository: github.com/JosiahParry/uwu Tweet: x.com/merm_bot/status/1781022234519216364 extendr tutorial: extendr.github.io/user-guide/heckin-case-converter.h...
1 billion row challenge in Rust using Apache Arrow
Переглядів 11 тис.9 місяців тому
I walk through how I did the One Billion Row challenge using Rust and the Apache Arrow DataFusion query engine. Code: github.com/JosiahParry/youtube-tutorials/blob/main/onebrc/src/main.rs DataFusion: docs.rs/datafusion 1brc: github.com/gunnarmorling/1brc Follow me on twitter: JosiahParry
Valve: R belongs in production
Переглядів 2,4 тис.Рік тому
R belongs in production. Valve is designed to make R even more powerful. Valve auto-scales `{plumber}` APIs concurrently using Rust libraries Axum, Tokio, and Deadpool. Learn to make your R code fly in production! Sponsor me on Github: github.com/sponsors/JosiahParry/ Valve: valve.josiahparry.com/ Plumber: www.rplumber.io/ Video Repo: github.com/JosiahParry/youtube-tutorials/tree/main/intro-valve
S3 Objects and Functions in R
Переглядів 4 тис.Рік тому
Understand R's S3 Object System and deepen your knowledge of R. This video breaks down base R object to the most fundamental aspects showing that a data.frame is just a list, a factor is an integer vector, and matrixes aren't real. Then learn how to write generic functions to create class specific functions using inheritance. Resources: Advanced R by Hadley Wickham adv-r.hadley.nz/base-types.ht...
Be a better R programmer with this add-in: {codegrip}
Переглядів 1,7 тис.Рік тому
{codegrip} has single handedly made me a more efficient R programmer. See how to install this R package and configure the add in to restructure your code for you. github.com/lionel-/codegrip
RAW STRINGS IN R?!
Переглядів 623Рік тому
Raw strings have been in R for a while now and no one told me?! Unbeliavble. Take a minute to learn how to make raw strings in R and make your life a lot easier. One tidbit to make you a better R programmer. josiahparry.com/posts/2023-01-19-raw-strings-in-r.html
Making R 300x times faster!
Переглядів 5 тис.Рік тому
Someone came to me with some slow R code and asked if Rust could make it faster. Here is how I made their R code 300 times faster using Rust. After, someone schools me and makes the code 2000 times faster using base R and data.table. Sometimes an over emphasis on the tidyverse and data frames can make folks write slower code! 0:00 - Intro 1:00 - The problem 1:35 - Reviewing the code 2:50 - Func...
Geohash: coding from scratch - Part 2
Переглядів 2,3 тис.Рік тому
Geohashes are everywhere locations are collected. Here we implement the geohash algorithm from scratch in R. Part 1: ua-cam.com/video/vGKs-c1nQYU/v-deo.html R implementation: github.com/JosiahParry/youtube-tutorials/blob/main/geohash/geohash.R Rust implementation: github.com/JosiahParry/youtube-tutorials/blob/main/geohash/geohash.rs GM Morton's original geohash: dominoweb.draco.res.ibm.com/repo...
Geohash: the algorithm inside and out - Part 1
Переглядів 10 тис.Рік тому
Most videos only show you how to use a geohash-not how to create one. I'm changing that. Geohashes are everywhere. Twitter's "Algorithm" keeps track of location solely with geohashes. Why are they so powerful? Part 1 of 2 GM Morton's original geohash: dominoweb.draco.res.ibm.com/reports/Morton1966.pdf Slides: josiahparry.github.io/youtube-tutorials/geohash/slides.html Written notes: josiahparry...
R and Rust - getting started with extendr
Переглядів 2,1 тис.Рік тому
R and Rust - getting started with extendr
Demystifying . . . (dots): R package dev fundamentals
Переглядів 2,2 тис.Рік тому
Demystifying . . . (dots): R package dev fundamentals
Write R functions like a pro in 6 minutes
Переглядів 1,4 тис.2 роки тому
Write R functions like a pro in 6 minutes
Write surprisingly fast for loops in R
Переглядів 1,4 тис.2 роки тому
Write surprisingly fast for loops in R
Hot Spot Analysis: the Fundamentals (Gi & Gi*)
Переглядів 2,8 тис.2 роки тому
Hot Spot Analysis: the Fundamentals (Gi & Gi*)
Hot Spot Analysis in R: GIS Fundamentals
Переглядів 6 тис.2 роки тому
Hot Spot Analysis in R: GIS Fundamentals
Introduction to Spatial Lags for Spatial Analysis
Переглядів 7 тис.2 роки тому
Introduction to Spatial Lags for Spatial Analysis
Aggregate points to a fishnet in R (sf)
Переглядів 1,2 тис.2 роки тому
Aggregate points to a fishnet in R (sf)
SLICED! Live Machine Learning
Переглядів 7853 роки тому
SLICED! Live Machine Learning
Creating a t test with R
Переглядів 5183 роки тому
Creating a t test with R
ANOVA in R
Переглядів 1,1 тис.3 роки тому
ANOVA in R
Turn your R model into a RESTful API [Part 3]
Переглядів 2,1 тис.3 роки тому
Turn your R model into a RESTful API [Part 3]
Calling your own API - Put your R model into production [Part 4]
Переглядів 1,6 тис.3 роки тому
Calling your own API - Put your R model into production [Part 4]
Put your R model into production - making functions [Part 2]
Переглядів 1,2 тис.3 роки тому
Put your R model into production - making functions [Part 2]
Put your R model into production [Part 1]
Переглядів 2,1 тис.3 роки тому
Put your R model into production [Part 1]

КОМЕНТАРІ

  • @AhmedSayed-y5w
    @AhmedSayed-y5w 8 днів тому

    So fast, so focused

  • @lxn7404
    @lxn7404 19 днів тому

    That was wonderful 👍

  • @woshiyizhihouzi
    @woshiyizhihouzi Місяць тому

    wow this was crazy interesting! thanks for explaining this super cool concept so clearly!

  • @AlphaLife120
    @AlphaLife120 Місяць тому

    it's too fast , I can't follow you

  • @ahmed007Jaber
    @ahmed007Jaber Місяць тому

    have you used Styler? noticed this working better?

  • @abdulharis5634
    @abdulharis5634 2 місяці тому

    Hi. How many cores and rams that you have in your machine that ran this code?

  • @Annetthossain
    @Annetthossain 2 місяці тому

    Very simple and quick, no time wasted ❤❤

  • @hamskyxxx
    @hamskyxxx 2 місяці тому

    Excellent explanation and straight to the point. Wish I found this video while doing my project last year.

  • @druizcardenas312
    @druizcardenas312 2 місяці тому

    Great video, thanks for all the tips

  • @nishanksoni7120
    @nishanksoni7120 3 місяці тому

    You have explained really well..hats off to you. Great work.

  • @cicakmuhamed
    @cicakmuhamed 3 місяці тому

    Thank you for doing humanity a big favor. Somebody who is uncomfortable with people just accepting things and explaining the concept under the hood. Appreciate it!

  • @edmel144
    @edmel144 4 місяці тому

    Coffee in profile pic? That's a + from me.

  • @billweberx
    @billweberx 5 місяців тому

    I don't have a c:/Users/Myname/Library folder. How is this created? I've installed both VSCode and Rust. So I can't edit the Keybindings.json.

  • @DougLopes
    @DougLopes 5 місяців тому

    Impossible to read a single word of this in smartphone

  • @viktorkuznetsov1617
    @viktorkuznetsov1617 5 місяців тому

    What should I use instead cargo? It's "deprecated"

    • @soymichelo75
      @soymichelo75 5 місяців тому

      the message tells you to use "Dependi"

  • @AdrienneMichelson
    @AdrienneMichelson 5 місяців тому

    Oh wow the version switching is super nice.

  • @sinan_islam
    @sinan_islam 6 місяців тому

    This project sounds like polars?

    • @josiahparry
      @josiahparry 6 місяців тому

      Entirely different! This is not a data frame library. This is about scaling existing plumber APIs using Rust. So if you can write a function in R you can make a REST API, if you can do that, you can deploy it to production as a backend web service or as a serverless function. Or whatever you want! Valve helps make sure that you use all available resources on a container or machine to scale that effectively .

  • @sinan_islam
    @sinan_islam 6 місяців тому

    I think if Google decided to make TensorFlow and Scikit-Learn commercial, the Python hype will burst.

  • @joseoscardelgadobautista2105
    @joseoscardelgadobautista2105 6 місяців тому

    🤣

  • @Aaqib..
    @Aaqib.. 6 місяців тому

    I havent used R studio myself since i installed Positron, working with R and Python at the same time is just so easy and somehow i feel like it's faster in response and everything.

  • @MrThessalonikiman1
    @MrThessalonikiman1 6 місяців тому

    If someone uses Visual Studio code that runs almost everything, does he need positron or r-studio?

    • @josiahparry
      @josiahparry 6 місяців тому

      you can use the command line if you want to i suppose. you don't _need_ VS Code or RStudio, or Positron, or any other editor. They're just nice to play with

  • @88fjoe
    @88fjoe 6 місяців тому

    brilliant!

  • @meryplays8952
    @meryplays8952 6 місяців тому

    Now we need R to become more developer friendly, like Julia. BTW, how is it different from VScodium (or Theia) + R extension?

    • @dianyiyang5977
      @dianyiyang5977 4 місяці тому

      you have a data/variable explorer i guess

    • @meryplays8952
      @meryplays8952 4 місяці тому

      @@dianyiyang5977 and many baked-in extensions at the moment.

  • @asteinmetz
    @asteinmetz 6 місяців тому

    It's worth thinking about the audience for this product. I've been testing it from the viewpoint of a data scientist and, like VS Code, there is a lot going on beyond what I need. I applaud Posit for becoming language agnostic but Positron is very much developer-centric so far. I don't like a workflow that includes dropping into the command line (or Powershell) - this is one thing I think RStudio gets right vs. what Python tools expect from people.

  • @cmhhansen
    @cmhhansen 6 місяців тому

    I must admit I'm a little confused by this whole positron thing. Im already using vscode for everything besides R. I'd have much rather they contributed a nice R extension for use with vscode. Tbh, I often use vscode for R also when I'm accessing remote machines and can't be assed installing rstudio server, and I find the setup okay...

    • @wngmv
      @wngmv 6 місяців тому

      The way i see it they just want more users. As I'm as R heavy as BASH, with a mind to go into other stuff I'm just gonna stay with base VSC.

    • @caty863
      @caty863 Місяць тому

      Your question of why they didn't just develop an RStudio extension for VSCode is answered in one of the videos on the Positron's website. The main gist of the answer is that VSC runs extensions in a sandbox, so they couldn't accomplish everything they wanted to using this approach.

  • @thhaase-soz
    @thhaase-soz 6 місяців тому

    what makes this better then VSCode? (or codium what im using)

    • @dianyiyang5977
      @dianyiyang5977 4 місяці тому

      data viewer and variable panel

    • @thhaase-soz
      @thhaase-soz 4 місяці тому

      @@dianyiyang5977 skilllissue

  • @brancengregory
    @brancengregory 6 місяців тому

    "the R installation something something" - felt

  • @kurokami254
    @kurokami254 6 місяців тому

    Been getting into rust and trying to up my game as an R user as well, think I'll try this. Also, can't wait to see what you build in the future

  • @Andrei_WongE
    @Andrei_WongE 6 місяців тому

    Actually, I do like the R project way of doing stuff...

    • @josiahparry
      @josiahparry 6 місяців тому

      its the same thing as an r project without the bloated files

  • @blaisepascal3905
    @blaisepascal3905 6 місяців тому

    Amazing tool! But I already use vs code. What are the benefits to move to Positron then?

  • @davidbudzynski9290
    @davidbudzynski9290 6 місяців тому

    What is the point of making a clone of vs code? They cant keep up with rstudio developennt, so how are they going to keep up with VS Code development and implement patches. The licence itself is also a big turn off. Posit really fell off.

    • @joshstat8114
      @joshstat8114 6 місяців тому

      Yeah, I've asked this for myself: What's the use of RStudio and the point of making this? I am disappointed and otherwise, I'll be astonished to this one.

    • @m4dnus
      @m4dnus 6 місяців тому

      I was sure that they would release something instead of r-studio. But I wasn't expecting a vs code clone.

    • @josiahparry
      @josiahparry 6 місяців тому

      It's not a VS Code "clone". Think of it as opinionated extensions of VS Code OSS that is continaully being synced with its upstream

    • @davidbudzynski9290
      @davidbudzynski9290 6 місяців тому

      @@josiahparry it is a vs code clone because it's a forked core of vs code. It doesn't have access to vs code packages just like VS codium because MS license does not allow this

  • @j.moggridge
    @j.moggridge 6 місяців тому

    This is looking pretty awesome, excited to try

  • @marcosmetalmind
    @marcosmetalmind 6 місяців тому

    I tested the Positron and I like it. Combine Rstudio, Spyder and Vscode in a single IDE.

  • @KK-tt5jz
    @KK-tt5jz 6 місяців тому

    Are you able to take advantage of apple's gpu with positron? thanks

  • @KK-tt5jz
    @KK-tt5jz 6 місяців тому

    can't wait to try this, rstudio has been so slow for me lately I am having to build models for Kaggle comps using dataspell that I have to pay out of pocket for.

  • @commandocringe7557
    @commandocringe7557 6 місяців тому

    oh wow i wasn't aware of that. finally r programming coming to the 21st century. the feel of RStudio and the versatility and modernism of VSC combined could be great.

  • @azmebengraine1437
    @azmebengraine1437 6 місяців тому

    great videos, very informative, just subbed. ps: increase the editor font size.

  • @dextrowim
    @dextrowim 6 місяців тому

    You do know that the java dudes ended this challenge with less than 2 seconds ? :-) But fair is fair, your code is at least understandable...

    • @Gramini
      @Gramini 5 місяців тому

      And the duration highly depends on the machine. The server for the official challenge has 32 cores IIRC.

  • @vacon04
    @vacon04 6 місяців тому

    Hey thank you for the video. I saw that you also already have the docker instructions in the package website. I'm hoping to run a simple app with plumber in production in the next few weeks. I was going to just use caddy as a load balancer for multiple plumber instances but I think using Valve should provide better functionality out of the box. Thanks again!

    • @josiahparry
      @josiahparry 6 місяців тому

      Just make sure that your Docker container has enough vCPU to handle multiple threads and ensure that you don't over-allocate them as well! And you can also use a load balancer in front of multiple Valve apps

    • @vacon04
      @vacon04 6 місяців тому

      @@josiahparry thanks! I have a cloud instance with 8 vcpus so it should be good. I'm not expecting massive traffic either and the computations that R has to do are very quick. I just want to make the UX as good as possible. I think 4 workers max should be good enough for my purposes. In case more is needed well that's the beauty of your package, I can just reload with more workers and if should be good to go =)

  • @rafabws
    @rafabws 6 місяців тому

    That was one of the best video tutorials I've seen lately, super informative and easy to follow! I cannot wait to test this out with some different datasets. Thanks for the amazing work!

  • @jiojio97
    @jiojio97 7 місяців тому

    Hi, i'm trying to implementing the algorithm in java and following the same steps i got the same results, so i guess i'm reimplementing it correctly. The only problem is, if i try to use any lat/long coordinates for example, my home adddress lat/long, got a geohash that is totally far away from the addres used. In fact if i use some online tool the hash generated is totally different and correct.

    • @josiahparry
      @josiahparry 6 місяців тому

      You got the order wrong! Its long lat! Classic mistake. :) longitude is the x axis and latitude is the y axis

  • @mukulbhave9376
    @mukulbhave9376 7 місяців тому

    super clear ,easy and concise walkthrough. Amazing

  • @mitchbet
    @mitchbet 7 місяців тому

    I'm curious how this works. Is it loading the whole file into memory before doing the aggregation? Or the query planner smart enough that it knows it only needs to load 1 line at a time (and then handles keeps track of the required aggregations accordingly)

    • @LtdJorge
      @LtdJorge 5 місяців тому

      He run it multiple times, so the OS has cached the file in memory already.

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 7 місяців тому

    It isn't fair.

  • @manzyzuzajnr3508
    @manzyzuzajnr3508 7 місяців тому

    There a chance to show us how to do species distribution modelling using Biomod2 or SDM package

  • @NicholasTierney
    @NicholasTierney 7 місяців тому

    Great video, Josiah! For benchmarking, just a fun FYI in case you didn't know, you can do `summary(benchmark_obj, relative = TRUE)` and it will compare the two in relative terms, which is neat!

  • @brentonbills5946
    @brentonbills5946 7 місяців тому

    Wish i knew more R 😅. Looks useful for helping out the R community with rust 🙂

  • @brentonbills5946
    @brentonbills5946 7 місяців тому

    Nice library 🎉.

  • @BrianPondiGeoGeek
    @BrianPondiGeoGeek 7 місяців тому

    Clear explanation.