Adorable_Sergal, to programming
@Adorable_Sergal@hachyderm.io avatar

I really should finish C so I can do Matlab

#matlab #programming

abucci, to ProgrammingLanguages
@abucci@buc.ci avatar

A weird thing about being 50 is that there are programming languages that I've used regularly for longer than some of the software developers I work with have been alive. I first wrote BASIC code in the 1980s. The first time I wrote an expression evaluator--a fairly standard programming puzzle or homework--was in 1990. I wrote it in Pascal for an undergraduate homework assignment. I first wrote perl in the early 1990s, when it was still perl 4.036 (5.38.2 now). I first wrote java in 1995-ish, when it was still java 1.0 (1.21 now). I first wrote scala, which I still use for most things today, in 2013-ish, when it was still scala 2.8 (3.4.0 now). At various times I've been "fluent" in 8086 assembly, BASIC, C, Pascal, perl, python, java, scala; and passable in LISP/Scheme, Prolog, old school Mathematica, (early days) Objective C, matlab/octave, and R. I've written a few lines of Fortran and more than a few lines of COBOL that I ran in a production system once. I could probably write a bit of Haskell if pressed but for some reason I really dislike its syntax so I've never been enthusiastic about learning it well. I've experimented with Clean, Flix, Curry, Unison, Factor, and Joy and learned bits and pieces of each of those. I'm trying to decide whether I should try learning Idris, Agda, and/or Lean. I'm pretty sure I'm forgetting a few languages. Bit of 6502 assembly long ago. Bit of Unix/Linux shell scripting languages (old enough to have lived and breathed tcsh before switching to bash; I use fish now mostly).

When I say passable: in graduate school I wrote a Prolog interpreter in java (including parsing source code or REPL input), within which I could run the classic examples like append or (very simple) symbolic differentiation/integration. As an undergraduate I wrote a Mathematica program to solve the word recognition problem for context-free formal languages. But I'd need some study time to be able to write these languages again.

I don't know what the hell prompted me to reminisce about programming languages. I hope it doesn't come off as a humblebrag but rather like old guy spinning yarns. I think I've been through so many because I'm never quite happy with any one of them and because I've had a varied career that started when I was pretty young.

I guess I'm also half hoping to find people on here who have similar interests so I'm going to riddle this post with hashtags:

#C #R

samharrison7, to rust
@samharrison7@mas.to avatar

February's TIOBE index has #Fortran as the 11th most popular language, marking its 12th consecutive month in the top 20, beating languages like #Rust, #R, #MATLAB and #Julia. About time to do away with that "Fortran is ancient/dead/obsolete" myth?

https://www.tiobe.com/tiobe-index/

MWNautilus, to opensource German
@MWNautilus@mstdn.social avatar
owiecc, to python
@owiecc@en.osm.town avatar

I am finally learning #python

For x=[1,2,3] indexing out of bounds x[4] raises an error but splicing out of bounds x[4:4] just returns an empty list.

Was this a conscious decision? Do people exploit it in some weird way?

owiecc,
@owiecc@en.osm.town avatar

Maybe I am just biased by #matlab behaviour of padding the array with zeros.

elduvelle, to python
@elduvelle@neuromatch.social avatar

Interesting new features of #Matlab (R2024b):

“Local Functions: Define functions anywhere in scripts and live scripts”
”Python Interface: Convert between MATLAB tables and #Python #Pandas DataFrames”

Haven’t tried it, just saw the change log 👀

da5nsy, to random
@da5nsy@social.coop avatar

This little snippet of code is an evergreen gem. At the end of many a script of mine. Brings the joy.

load handel  
sound(y,Fs)  

Source:
https://www.mathworks.com/matlabcentral/answers/27264-alarm-for-finishing-running-of-a-program#answer_169872

#MATLAB #code

elduvelle, (edited ) to python
@elduvelle@neuromatch.social avatar

As a (broadly-speaking), which language do you prefer for your data processing and data analysis?

I’m particularly interested in understanding why so many people seem to use R these days - comments welcome!

#R

victorp, to python

The TIOBE Programming Community index is an indicator of the popularity of programming languages. This ranking is organized according to their popularity as of Sep 2023:
(1) Python
(2) C
(3) C++
(4) Java
(5) C#
(6) JavaScript
(7) Visual Basic
(8) PHP
(9) Assembly Language
(10) SQL
(11) Fortran
(12) Go
(13) MATLAB
(14) Scratch
(15) Delphi/Object Pascal
(16) Swift
(17) Rust
(18) R
(19) Ruby
(20) Kotlin

https://www.tiobe.com/tiobe-index/

#C++ #C# #C #R

martinhtrauth, to python German

The 56th online course on #MATLAB and #Python Recipes for Earth Science is history! We had 32 highly motivated participants, all with exciting projects, passionate discussions and good feedback. The next course? September 2024 – see you there! http://mres.uni-potsdam.de/index.php/2023/02/06/online-courses-in-modern-data-analysis-methods-in-earth-sciences-with-python-and-matlab/

martinhtrauth, to python German

My two books, #MATLAB and #Python Recipes for Earth Sciences, can be used like a dictionary. Put them next to each other and you will see MATLAB and Python code peacefully side by side like little brothers and sisters 🕊️ 😉 http://mres.uni-potsdam.de/index.php/2022/05/10/matlab-and-python-recipes-for-earth-sciences/

r_ivorra, to programming

Here's a list of 9 #programming languages which are supposedly "heading for extinction". But, are they? It includes #R, #Haskell, #Perl / #Raku, #Pascal, #COBOL or #Fortran...

https://www.makeuseof.com/programming-languages-heading-for-extinction/

vmagnin,
@vmagnin@floss.social avatar

@r_ivorra
Yes, #Fortran stands for "Formula Translator". It is still one of the major language in the scientific field. But #Python has also been adopted a lot for computation (often using Fortran libraries) on the desktop. #Matlab is also using a lot of Fortran libraries. And there are also #C++ and #Julia.
Being a compiled language, Fortran programs can run fast, as C and C++.
For example, many climate models are written in Fortran or use Fortran libraries.

JordiGH, to godot
@JordiGH@mathstodon.xyz avatar

I do not envy the #Godot devs right now.

I used to be heavily invested in GNU #Octave, a free #Matlab replacement. That was a bit of a more ambitious goal, because Godot isn't trying to be exactly like Unity, but Octave is trying to be exactly like Matlab. The overall problem, however, is similar.

It's a difficult, mostly thankless task. Users don't care what it takes to make it look exactly like what it's supposed to be replacing. Photoshop users going to the GNU IMP, Matlab users going to Octave, Maya users going to Blender, Chrome users going to Firefox... they all want the same thing: basically the same software, but without the fees, restrictions, or anti-user misfeatures. It is extremely draining to continuously disappoint people who aren't getting exactly the same software but without paying for it.

A few users will offer donations, but never enough to rival the budget of the software they're fleeing from. Nowadays there's better infrastructure to collect from these benevolent donors and get a steady income than when I was working on Octave. This offers some hope.

All this to say: if you're migrating to better, less enshittified software, donate if you can. If you cannot, then at least try to be kind and considerate of the smaller, more grassroots organisation and individuals that are trying to give you a comparable experience with no strings attached. :)

Stark9837, to linux
@Stark9837@techhub.social avatar

Don't get me wrong, I love #Linux and ran it for about 3 years before being forced to go back to #Windows. Coming back to it recently has been a great joy.

But the pain of installing #Matlab and losing my entire #Factorio run recently really broke me.

Linux is fun, but the installation of software is often a pain, and I can see the barrier it would have for even my technical friends. The other thing is the weird instability I sometimes experience. Something like my software working great and then just crashing for days without changing anything.

Overall, it is fun for a developer, but I sometimes miss the fire and forget the ease of use I had with Windows and 90% of my #Steam library.

jonny, to random
@jonny@neuromatch.social avatar

I had a lovely conversation with the #NWB devs yesterday. I messaged them cryptically like "hey can we talk about the history of this thing and the design decisions and constraints" and they were refreshingly candid and willing to engage with such a vague and open ended question. Formats and standards are always 100 times as complicated as they appear, and this one is this particularly heady mixture of neuroscientists riffing on something, computer scientists coming in later to be like "OK nice but let's make that work" and about a million rounds of historical baggage and iteration.

I freaking love finding ppl who care about what they do enough to hold it at arms length for a second to evaluate its history and the constraints it navigates. Good people, I like em.

jonny,
@jonny@neuromatch.social avatar

One of the major sources of complexity in #NWB is actually a pretty interesting replay of blank nodes in #RDF / #SemanticWeb tech.

So you've got a complex type of thing where your thing not only has properties but those properties are themselves other things with their own properties. Concretely, say I've got some electrophysiological recording- that's a timeseries, yes, but it also has metadata like the electrode group that collected it. That electrode group has multiple electrodes, and each has its own properties like impedance, position, etc.

Neuroscientists would probably model this as a bigass nested untyped anonymous blob, one might call this the "cognitive style of #MATLAB structs." so that's where the format seems to have started...

leovarnet, to psycholinguistics

New release! 💻 the TMST toolbox v2.0 includes a modulation scalogram function and a step-by-step demonstration of the main features. https://github.com/LeoVarnet/TMST/blob/main/README.md#example-walkthrough @psycholinguistics

leovarnet, to psycholinguistics

New release! 💻 the TMST toolbox v2.0 includes a modulation scalogram function and a step-by-step demonstration of the main features. https://github.com/LeoVarnet/TMST/blob/main/README.md#example-walkthrough @psycholinguistics

psychtoolbox, to random

When making choices 🤔, we often have to weigh up ⚖️ evidence before making a decision. New research shows EEG 🧠 can track the neural accumulation of evidence leading up to a decision.

#matlab #eeg #psychtoolbox

https://doi.org/10.1016/j.cub.2022.08.006

drimplausible, to fediverse
@drimplausible@mastodon.online avatar

I guess is a better name than (cute logo anyways) as I thought the latter was a social version of

It seemed odd that the needed a way to share equations, but I guessed things worked differently there. Who am I to judge anyways?

But I still have no idea what it does? Sharing your bookmarks or something? No idea.

elduvelle, to python
@elduvelle@neuromatch.social avatar

Question for :
Getting tired of my version that relies on different versions of Python modules than the ones I need for coding…

What is your favourite for Python (and why?)?

elduvelle,
@elduvelle@neuromatch.social avatar

@cm_jc good to know, thanks! I’m also coding in #Matlab and apparently it’s now working with VS Code ?! https://blogs.mathworks.com/matlab/2023/04/26/do-you-use-visual-studio-code-matlab-is-now-there-too/

psychtoolbox, to random

Consciousness is a key mystery of the brain🧠. New research decodes conscious awareness from brain activity patterns in frontal cortex, showing that responses in this area do not depend on observers reporting their perception.

#consciousness #matlab

https://doi.org/10.1016/j.cub.2022.07.068

davidwilby, to opensource
@davidwilby@fosstodon.org avatar

I just read @brodriguesco article on open source as a hard requirement for reproducibility from last year: https://www.r-bloggers.com/2022/11/open-source-is-a-hard-requirement-for-reproducibility/
(Thanks @nshephard for the share!)

It prompted me to write down some thoughts that have been living in my head on whether #reproducibility in #MATLAB is even possible or a worthwhile goal: https://reproduciblematlab.github.io/blog/posts/2023-07-10-can-matlab-be-reproducible/

TLDR: just read the blog, it's not that long (for once) - 3 minute read :D

#opensource #openresearch #openscience

psychtoolbox, to random

Ever wonder how the brain keeps track of decisions? New research shows that information is transferred between LIP neurons to keep track of a target when gaze changes.

#psychtoolbox #matlab #neuroscience

https://doi.org/10.1016/j.neuron.2022.07.019

martinhtrauth, to mastodon German

It is nice tradition to introduce yourself on #Mastodon. I am a geoscientist, studied #music, #geophysics, and #geology, and have a doctoral degree in #paleoceanography. My research is on the influence of climate in #Africa on human evolution using time series analysis methods. I learned #Fortran77 in the 1980s, have been using #MATLAB since 1992, and recently #Python - and have written several textbooks on data analysis in the earth sciences. I look forward to make new connections with you!

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