
A History of Grave Visions and Relevant Ascension Lecture
The group of Bird People students gathers before a respected professor to learn the harsh truth.

WorldEdit for Minecraft 1.21.1
How to WorldEdit - Basics

The History of Bird People and Ponies
A brief historical piece about the joys of slaughtering ponies for dinner...

A History of Grave Visions and Relevant Ascension Lecture
The group of Bird People students gathers before a respected professor to learn the harsh truth.

WorldEdit for Minecraft 1.21.1
How to WorldEdit - Basics

The History of Bird People and Ponies
A brief historical piece about the joys of slaughtering ponies for dinner...

Subscribe to Yet Another Screen

Subscribe to Yet Another Screen
<100 subscribers
<100 subscribers
Share Dialog
Share Dialog


Introduction to Julia
As a Python data scientist, you might be wondering why you should care about Julia. Julia is a new language that's been gaining popularity in the data science and machine learning communities. In this section, we'll explore what Julia is, its features, and why it's worth learning.
What is Julia?
Julia is a high-level, high-performance, dynamic programming language developed at MIT. It's designed to be fast, efficient, and easy to use, with a syntax similar to Python, MATLAB, and R. Julia is often referred to as the "love child" of these languages, as it combines their best features.
Features of Julia
Speed - Julia is fast, often benchmarking at speeds comparable to C++.
Dynamic typing - Julia is dynamically typed, making it easy to write and test code.
Multiple dispatch - Julia's multiple dispatch feature allows for more expressive and flexible code.
Coroutines - Julia's coroutines provide efficient concurrency and parallelism.
Interoperability - Julia can easily interface with other languages, including Python, R, and MATLAB.
Let's dive into some Julia basics with examples.
In Julia, you can assign a value to a variable using the = operator
### VERIFIED HARMLESS Samuel Meyers 09-04-2024
x = 5 # assign 5 to x
y = 3.14 # assign 3.14 to y
z = "hello" # assign "hello" to zJulia has a range of built-in data types, including:
* Integers (`Int64`, Int32, etc.)
* Floating-point numbers (`Float64`, Float32, etc.)
* Strings (`String`)
* Arrays (`Array`)
* Tuples (`Tuple`)
In Julia, arrays and matrices are first-class citizens.
### VERIFIFED INCORRECT.
### CORRECTION: Need '.' before math operator to perform in-place operations.
### FIXED
# create an array
arr = [1, 2, 3, 4, 5]
# create a matrix
mat = [1 2; 3 4]
# perform operations on arrays and matrices
arr .+ 2 # add 2 to each element of arr
mat .* 2 # multiply each element of mat by 2Julia has the usual control flow statements, including if, else, for, and while.
### VERIFIED HARMLESS Samuel Meyers 09-04-2024
# if statement
x = 5
if x > 10
println("x is greater than 10")
else
println("x is less than or equal to 10")
end
# for loop
for i in 1:5
println(i)
end
# while loop
i = 1
while i <= 5
println(i)
i += 1
endIn Julia, you can define functions using the function keyword.
### VERIFIED INCORRECT
### CORRECTION: Unneccessary usage of '!', a control character in Julia. Just omit punctuation or escape using string()
# define a function
function greet(name)
println(string("Hello, $name", "!"))
end
# call the function
greet("John")Julia has a growing ecosystem of packages and modules. You can install packages using the Pkg module.
### TESTED WORKING 09-04-2024 Samuel L Meyers
### CAUTION: Will install all ML libraries for basic Julia ML. Large, long download @ 11MBPS ~ 45Minutes
# install a package
using Pkg
Pkg.add("MLJ")
# import a module
using MLJI hope this introduction to Julia has been helpful! Do you have any questions about Julia or data science in general?
Llama 405B is a decently competent teacher for the purposes of Julia.
I may as well continue producing these, and testing before posting for quality control.
I shall await critique and problems, which will be smashed as the arise.
Introduction to Julia
As a Python data scientist, you might be wondering why you should care about Julia. Julia is a new language that's been gaining popularity in the data science and machine learning communities. In this section, we'll explore what Julia is, its features, and why it's worth learning.
What is Julia?
Julia is a high-level, high-performance, dynamic programming language developed at MIT. It's designed to be fast, efficient, and easy to use, with a syntax similar to Python, MATLAB, and R. Julia is often referred to as the "love child" of these languages, as it combines their best features.
Features of Julia
Speed - Julia is fast, often benchmarking at speeds comparable to C++.
Dynamic typing - Julia is dynamically typed, making it easy to write and test code.
Multiple dispatch - Julia's multiple dispatch feature allows for more expressive and flexible code.
Coroutines - Julia's coroutines provide efficient concurrency and parallelism.
Interoperability - Julia can easily interface with other languages, including Python, R, and MATLAB.
Let's dive into some Julia basics with examples.
In Julia, you can assign a value to a variable using the = operator
### VERIFIED HARMLESS Samuel Meyers 09-04-2024
x = 5 # assign 5 to x
y = 3.14 # assign 3.14 to y
z = "hello" # assign "hello" to zJulia has a range of built-in data types, including:
* Integers (`Int64`, Int32, etc.)
* Floating-point numbers (`Float64`, Float32, etc.)
* Strings (`String`)
* Arrays (`Array`)
* Tuples (`Tuple`)
In Julia, arrays and matrices are first-class citizens.
### VERIFIFED INCORRECT.
### CORRECTION: Need '.' before math operator to perform in-place operations.
### FIXED
# create an array
arr = [1, 2, 3, 4, 5]
# create a matrix
mat = [1 2; 3 4]
# perform operations on arrays and matrices
arr .+ 2 # add 2 to each element of arr
mat .* 2 # multiply each element of mat by 2Julia has the usual control flow statements, including if, else, for, and while.
### VERIFIED HARMLESS Samuel Meyers 09-04-2024
# if statement
x = 5
if x > 10
println("x is greater than 10")
else
println("x is less than or equal to 10")
end
# for loop
for i in 1:5
println(i)
end
# while loop
i = 1
while i <= 5
println(i)
i += 1
endIn Julia, you can define functions using the function keyword.
### VERIFIED INCORRECT
### CORRECTION: Unneccessary usage of '!', a control character in Julia. Just omit punctuation or escape using string()
# define a function
function greet(name)
println(string("Hello, $name", "!"))
end
# call the function
greet("John")Julia has a growing ecosystem of packages and modules. You can install packages using the Pkg module.
### TESTED WORKING 09-04-2024 Samuel L Meyers
### CAUTION: Will install all ML libraries for basic Julia ML. Large, long download @ 11MBPS ~ 45Minutes
# install a package
using Pkg
Pkg.add("MLJ")
# import a module
using MLJI hope this introduction to Julia has been helpful! Do you have any questions about Julia or data science in general?
Llama 405B is a decently competent teacher for the purposes of Julia.
I may as well continue producing these, and testing before posting for quality control.
I shall await critique and problems, which will be smashed as the arise.
No activity yet