kevinmoerman, to random
@kevinmoerman@fosstodon.org avatar

Implementing "Dijkstra's algorithm" or "mesh distance marching". Computes the on-surface dist from one point to all others (i.e. like a heat spreading across the mesh).
From a seed point, we could add the furthest point to the list and reiterate, compute dist, find furthest point, add this point to list, repeat... This will produce an (approximately) equidistant or geodesic set of points. Handy for remeshing, but it does look like David's got the measles.

https://en.wikipedia.org/wiki/Dijkstra's_algorithm

The animation shows a 3D model (bust of Michelangelo's David), with a sparse set of 100 black dots on the surface of the mesh. These were found using distance marching via Dijkstra's algorithm. The mesh is colored towards the distance to these points. Hence David looks rather speckled/sick.

gregorni, to Julia
@gregorni@fosstodon.org avatar

Any Nim or Julia people out there that also do app development? Can I get some ✋?

_wurli, to meta
@_wurli@fosstodon.org avatar

syntax idea: f(unction)-strings.

One could define a function to operate on a single string like so:

g" <- function(x) {
glue::glue(x, .envir = parent.frame())
}

This would basically give you something very similar to Python's f-strings:

g"1 + 1 = {1 + 1}"
#> [1] "1 + 1 = 2"

This idea comes from , which lets you define non-standard string literals in the same way: https://docs.julialang.org/en/v1/manual/metaprogramming/#meta-non-standard-string-literals

For me, this actually feels in keeping with R's stripped back, functional vibe.

terence, to random
@terence@fosstodon.org avatar

In any case, I'll keep doing what helps me to stay at this job so here's a visualisation of the forest cover of Japan in triangles.

#rayshader-#julialang joint adventures

terence, to random
@terence@fosstodon.org avatar

Still playing with #julialang. Here's Switzerland in triangles.

@jonocarroll I get a lot of small dark triangles with some images which persist even if I set npts to a high value (5000) and refine as true or false. Any ideas? Thanks again for the package! I'm enjoying seeing what it produces.

#julialang adventures

jonocarroll, to Julia
@jonocarroll@fosstodon.org avatar

I finally managed to build the package I've previously failed to get working at least 3 times!!!

https://jcarroll.com.au/2024/02/04/my-first-julia-package-triangulart-jl/

Any performance or other improvements anyone can spot are most welcome - I'm still very much learning, but I do love these results.

kevinmoerman, to random
@kevinmoerman@fosstodon.org avatar

STL files give each triangle their own coordinates set. So none of the triangles actually share nodes. So step one, after importing such a mesh, is to merge the nodes. This animation shows vertex normal based "inflation", the left is unmerged, the right is merged.

#Makie #julialang

An animation showing mesh inflation for an unmerged mesh and a merged mesh. The triangles separate for the unmerged mesh, making it look like the mesh explodes. For the merged node mesh it looks more like balloon inflation as triangles remain connected.

mo8it, to rust
@mo8it@fosstodon.org avatar

A CLI for running commands over HTTP 🌐

https://codeberg.org/mo8it/http-cmd

Its motivation is to expand the capabilities of static site generators like ⚙️

The screenshot shows its usage to automatically run and embed the output of code blocks on your website 🤯

The example uses , and . But other languages should work similarly 😃

Boost appreciated 🥰

jonthegeek, to datascience
@jonthegeek@fosstodon.org avatar

🎂It's my birthday!🎂
To celebrate, I'm... Working to build a friendly, diverse #DataScience community at https://r4ds.io, just like I do every day! It'd make my day if you supported our efforts at https://r4ds.io/donate !

#RStats #PyData #JuliaLang #DataViz

jonocarroll, to python
@jonocarroll@fosstodon.org avatar

Every so often I try re-installing R on termux on android to see if it's fixed (some .so doesn't link, even using the latest instructions) but no luck. Last night I was reminded that UserLAnd is another option and hurrah! #rstats, #julialang, #python, and more at my fingertips wherever I go! Great for quick syntax checks/comparisons. Add a BT keyboard and it's a tiny dev machine in my pocket.

Julia running in userLAnd on an android phone

bthalpin, to python
@bthalpin@mastodon.social avatar

Playing with doing something "embarrassingly parallel", and very much missing the ease of multi-threading in

alec, to random
@alec@bayes.club avatar

#julialang folks can follow the Julia Bloggers RSS feed here on Mastodon by following this account: @www.juliabloggers.com@rss-parrot.net

I set this up via RSS Parrot: https://rss-parrot.net

franco_vazza, to Astro
@franco_vazza@mastodon.social avatar

Idk, managing to actually dispatch the parallel tasks of my #Julialang code to the cores of Leonardo at CINECA (currently 4th HPC machine in the world), by calling the slurm task manager with ClusterManagers.jl (👉 https://github.com/JuliaParallel/ClusterManagers.jl) feels very good.
My routine is not meant to scale on more than 32 cores at the moment; however it means that I should be able to effectively use Julia also for massive parallel postprocessing on the computing nodes.
👍
@julialang
#astrodon #astronomy

fabrice13, to random Italian
@fabrice13@neuromatch.social avatar

Again, I'm having a hard time with and on Windows.

I wanted to follow along the juliaacademy course "Julia for Data Science", but the first tutorial shows how to activate an environment (?) but in the end I have no idea how to reliably work in an already installed JupyterLab, Julia and packages version compatible, and all in a specific environment for this project.
I've been installing and uninstalling Julia 1.6, 1.9 and 1.10, deleting them from PATH, etc.
With Python is not straightforward, but I got it.

I decided I will use and manually recreate all the courses notebooks. For the sake of learning, it's definitely better than just running readymade cells, plus it's in line with the MIT Julia course.

But it doesn't feel right, I feel there's a huge gap in my understanding, and likely a gap in the tutorials too.
Also, spending 2 days without proper coding, just running around bugs, is super frustrating, just feels like time lost forever to no cause.

franco_vazza, to Astro
@franco_vazza@mastodon.social avatar


a new visualisation experiment to show how a full simulated volume (100 Megaparsec cubic) gets progressively filled by cosmic web structures if I keep adding a layer after another along the line of sight - here using 64 layers of 1.56 Megaparsec each.

This is baryonic matter.

the visualisation is done using in parallel using 16 cores on my MAC - the input simulation has 1024^3 cells.

video/mp4

cormullion, to Julia

I made some cards with DataFrames.jl and Luxor.jl. In previous years I used to calculate the data using Astro libraries, but recently I discovered that NASA supply all the relevant data in CSV format. 😂

UchidaMizuki, to julialang

@julialang
Optimization.jl has many options for automatic differentiation, such as AutoZygote() and AutoEnzyme().
They are very useful, but are there any pros and cons for each option?

https://docs.sciml.ai/Optimization/stable/API/optimization_function/#Automatic-Differentiation-Construction-Choice-Recommendations

#julialang

ramikrispin, to ArtificialIntelligence
@ramikrispin@mstdn.social avatar

(1/2) New book for Deep Learning (draft mode) 📚

The Mathematical Engineering of Deep Learning is a new book by Benoit Liquet, Sarat Moka, and Yoni Nazarathy.

As its name implies, it focuses on the mathematical engineering of and covers topics such as:
✅ Foundation of machine learning and deep learning
✅ Optimization algorithms
✅ Convolutional neural networks
✅ Transformers
✅ Generative models
✅ Diffusion models

ramikrispin,
@ramikrispin@mstdn.social avatar

(1/2 )Resources 📚
Book draft 📖: https://deeplearningmath.org/
Source code available in Julia, R, and Python 💻: https://github.com/yoninazarathy/MathematicalEngineeringDeepLearning

Thanks to the authors for making this resource available online! 🙏🏼

Reading of the book on YouTube 📽️: https://www.youtube.com/playlist?list=PL7RZyOlq_XnylnDcHchjKeFuMNxeDdH4P

#deeplearning #datascience #machinelearning #rstats #julialang #python

UchidaMizuki, to random Japanese

#rstats is one of the best languages for data science.

But what about optimization? In optimization, #julialang is attractive to me because it allows for automatic differentiation.

Can we do automatic differentiation in #rstats ?

fabrice13, to random Italian
@fabrice13@neuromatch.social avatar

During the holidays, i.e. from the 23rd to the 7th, I will not work.
I'd like to continue playing with the and some but it's really for pleasure.
I will read some stuff about brains and perception but it'll be Ed Yong's "An Immense World", and perhaps McCulloch and Ashby.
Also, I'm finishing Dune.

If you too have the "privilege" of taking a break, what are you up to?

uncomfyhalomacro, to foss
@uncomfyhalomacro@fosstodon.org avatar

hello. here is my re #introduction.

I am Soc, also known as uncomfyhalomacro or uncomfy, a #foss advocate.

I recently moved from https://julialang.social to https://fosstodon.org

I like #julialang, but I am more into #rustlang. I love language hopping but I don't really stick around.

IRL I love to read comics and watch anime. I love to play the guitar and read sciency stuff related to #tech or #biology.

This account was inactive but now serves its purpose. Thank you for letting me join! 🥹

runjaj, to random Spanish
@runjaj@mastodon.social avatar

Calcular una integral numérica usando la regla de Simpson con es tan fácil como usar esta función:

∫(x, y) = (x[2]-x[1])/3*(y[1] + 4*sum(y[2:2:end-1]) + 2*sum(y[3:2:end-2]) + y[end])  

Por ejemplo, la integral del seno entre 0 y π es:

x = LinRange(0, π, 7) # 7 puntos entre 0 y π  
y = sin.(x) # Cálculo del seno para los 7 puntos  
∫(x, y) # Integración

2.000863189673536  

El valor realizando la integral simbólicamente es 2. Todo bien sencillo.

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/6)This time of the year ☃️...Statistical Rethinking 2024 ❤️❤️❤️

This has become a tradition. Like previous Decembers, this week, the 2024 edition of the Statistical Rethinking course was announced. If you are looking to learn Bayesian statistics, I highly recommend checking it out.

🧵🧶👇🏼

Image credit: Last year course

krz, to julialang German
@krz@mastodon.social avatar

My and solutions for puzzle 4 of Hanukkah of Data (https://hanukkah.bluebird.sh/5784/) @julialang

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • everett
  • rosin
  • Youngstown
  • ngwrru68w68
  • khanakhh
  • slotface
  • InstantRegret
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • DreamBathrooms
  • magazineikmin
  • anitta
  • tacticalgear
  • tester
  • Durango
  • cubers
  • ethstaker
  • cisconetworking
  • modclub
  • osvaldo12
  • Leos
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines