julia

How to check the possible parameters for a function in Julia

Sometimes I create functions that receive a function as parameter, but in Julia the type is Function without any information, so when the function pass as parameter is not right, the error message is not very informative: By example: julia> function fun_demo(f::Function) values = [1.0, 2.3, 3.4] return f.(values) end each (generic function with 1 method) julia> fun_demo(sin) 3-element Vector{Float64}: 0.8414709848078965 0.7457052121767203 -0.2555411020268312 However, when the function is not right, the error is difficult to understand:

My Julia journey

In this post I am going to tell my Julia journey. I have read about Julia but not actually use it before version 0.7 just before 1.0. I work on Machine Learning and stochastic optimization (with evolutionary computation). In Machine Learning (and Deep Learning) I work nicely with Python (Scikit-learn and Keras/PyTorch). However, in optimization I usually did prototype in Python, and later have to translate to C++ for performance (well, not while the function evaluation takes too much).

My first Julia Package

For online teaching I use Moodle. I have a lot of experience using it (for more than 10 years). Unfortunately, the software could be improved a lot. My main complains are: You can import the grades using an Excel file. However, you cannot import the comments. I like to give comment to explain the reason of the qualifications. The Quiz is potent, but the creation of questions is very slow.

Introduction to Julia

The last year I have been working in a promising programming language, Julia. Even I have done a presentation focused on people with Computer Science background (so the talk compares Julia against Python), Talk in English Also it was given in Spanish Julia Talk in Spanish The resources of that talk are available at Github Repository.