1 Problem, 5 Programming Languages

preview_player
Показать описание
A follow up video looking at improvements to 5 programming language solutions (Julia, Ruby, Raku [Perl 6], Fortran, Nim) to one problem.

Contest: 255
Problem Name: Find GCD of Array
Problem Type: Greedy

Github Links / Chapters:
0:00 Intro
0:47 Problem Statement
8:38 Nim
9:02 Summary
9:20 Rankings
9:36 Podcasts and Outro

Рекомендации по теме
Комментарии
Автор

The Julia solution is amazing, it would be interesting to see more problems solved by Julia.

skyRoller
Автор

I didn’t realize the fortran community was so passionate haha

taylorallred
Автор

Personally, I would find a video on a more complicated challenge more interesting. Even if you can’t showcase as many languages, it would be better then a bunch of solutions that are just calling three simple functions. Possibly asking viewers to submit solutions in different languages could allow you to showcase more solutions for longer problems too.

ZippyMagician
Автор

Awesome work! Love the point free solution in Julia.

LoganKilpatrickYT
Автор

As a scientist, who has to optimize most of our HPC by hand, Fortran is my best friend! Python and Fortran the what the future looks like for scientific coding with Matlab pitching in here and there for a quick job or two. Fortran gets a bad rap because most of the people working on computers these days aren't engineers and scientists, they generally have no use for Fortran and find its structure a bit unattractive. Fortran's compiler, unlike c or cpp, which are heavily dependent on pointers, handles things in a simple and concise manner.
Oh and don't forget array handling! Fortran is probably the best language to handle arrays, especially with in-built bound checks. But the cake here is highly aggressive optimization, not aliasing pointers has its perks!!

ralluriutah
Автор

At risk of adding five more characters to your Fortran code, you can add the word "pure" to the function (e.g., "pure integer function..."). This allows the compiler to knows it is supposed to be side-effect free, do appropriate checking, allow use in array expressions, and related optimizations. You'll have to do it with your gcd function as well.

walterspector
Автор

I guess "tier lists" are better suited compared to "rankings" for comparisons like this.
Many of the compared languages were deemed nearly-identical, while being multiple ranks away from each other.

JanSordid
Автор

I’m absolutely thrilled to see FORTRAN covered here!! Love your content.

AsherMancinelli
Автор

That point-free Julia solution sure looks nice with just two colors.

halneufmille
Автор

In the previous video I posted a comment with a very simple solution in hardware (Verilog), using the Euclid's method and I tested that on an FPGA. The resulting digital circuit only has an adder, a comparator and a register (all 32 bit).
I think it was marked as spam for some reason (perhaps because it included urls?).

japedr
Автор

Fortran now has GCD in the standard library.

enderger
Автор

You love to see a community supporting newcomers, thanks fortran for being supportive!

MarkFaldborg
Автор

Julia is such a special language. Pretty much my favorite high level language that has so many cool features

thedeathstar
Автор

What do you use to animate the transitions between code blocks? I can't imagine you manually are animating where each character moves to, but I like the effect and would like to use it in future presentations I might do.

MattKoski
Автор

I think this is quickly becoming my favourite channel on YouTube

friend
Автор

Returning the result of the last expression in a block was used by lisp in 1960. I imagine Ruby gets it from there.

EdouardTavinor
Автор

Julia is amazing... and sooo fast. TX

rtdietrich
Автор

In Fortran, I think you don't need to mention the function's name in the last line, just `end function` would be enough.

pikachu
Автор

Beautiful! How do you get syntax highlighting in PowerPoint?

janniksco
Автор

There's two language "logos" I don't recognize. The lighthouse, and the geometric design with the B in the middle.
What are those languages?

danielsmith