Search
Items tagged with: c
My paper about the @metacpan module Task::MemManager is done!
Join me Dec 18th for the talk at Winter 2024 Perl Community #Conference
blogs.perl.org/users/oodler_57…
, showing how one can use the module to share memory between components of multi-language (#C #assembly , #Perl , #PDL) applications .
The package will be discussed in a more applied context in my 2nd talk ("Quest for Performance") in which I will illustrate its use in #OpenMP #C / #Perl @openmp_arb workflows. #Fortran is next!
One of the reasons I keep dropping hints about #perlffi , #pdl and #openmp is that one can literally have five multithreading frameworks in the same #perl application of a master process: 1) PDL, and FFI intefacing with 2) #Fortran coarrays, 3) Fortran openmp, 4) #c openmp and 5) #cplusplus #openmp. All these frameworks can share memory addresses for array and vector objects, and #perl aided by #PerlAlien makes the authoring of the high-level code a pleasure ! hgpu.org/?p=29403
submitted by /u/ReplacementSlight413
[link] [comments]
This is a fun computer project: apparently there was a DOS program called Edna's Cook Book where you had to type in & save your own recipes. This program reads that old data file to recover your family recipes.
github.com/dangarbri/save-edna
#cooking #cookbook #programming #c #cprogramming
GitHub - dangarbri/save-edna: A recovery program for exporting recipes from the DOS program Edna's Cook Book as either text or SQL.
A recovery program for exporting recipes from the DOS program Edna's Cook Book as either text or SQL. - dangarbri/save-ednaGitHub
github.com/chrisarg/task-memma…
GitHub - chrisarg/task-memmanager
Contribute to chrisarg/task-memmanager development by creating an account on GitHub.GitHub
If my understanding of the API is correct, then this macro allocates a buffer of known size in bytes and puts the buffer under the #Perl garbage collector. One only needs an entry point from Perl to #C and one just enhanced their #Clang code with a garbage collector
for safe memory management.
@Perl
Direct (non-LinkedIn-shortened) link: catonmat.net/ftp/perl1line.txt
I’m also pleased that its author ranked Perl as one of his top 5 best #programming languages: catonmat.net/5-best-programmin…
1. #C / #Clang
2. #PHP
3. #Perl
4. #GoLang
5. #JavaScript (but only version 1 circa 1995 plus #jQuery)
His 5 worst? catonmat.net/5-worst-programmi…
1. #Haskell
2. #Rust / #RustLang
3. #CPlusPlus
4. #Python
5. modern #JavaScript
“My only metric... is time to get things done and ship to customers.”
Top 5 Best Programming Languages
This is the reverse post of my highly popular Top 5 Worst Programming Languages post. My only metric for a good programming language is time to get things done and ship to customers. I don't care about anything else.catonmat.net
Yes, #Perl deliberately borrows familiar things from #Unix culture, including #C, #shell, #sed, and #awk. The goal isn’t necessarily to replace them, but to remove friction when combining their capabilities.
@randalschwartz's Perl solutions to #Usenet Unix questions usually demonstrated such reductions.
#CS Teachers Panic as Replit Pulls the Plug on Educational IDE. m.slashdot.org/story/421727
First they said, "you no longer need to learn #assembly language." Later this expanded to include #C." Then they said the same thing about #Perl. Eventually #emacs and #vim were also forgotten in favor of the new and the novel.
Now no one can code without an IDE that holds their hand and everyone thinks this is normal.
If you've a background in #C and #Perl and have thought about contributing to the Perl core, you know it's daunting hacking on the core of a language.
@leonerd is offering to help you learn.
nntp.perl.org/group/perl.perl5…
Also, he's written a tutorial on how to contribute a core feature: leonerds-code.blogspot.com/202…
Writing a Perl Core Feature
(Index) | < Prev | Next > One of the headline features that was added in Perl version 5.32.0 was the isa operator . This feature was writ...leonerds-code.blogspot.com
Holy crap! A ton of #BASIC games rewritten in modern scripting languages, including #Perl. That's too cool.
The only downside in my mind is that the project is focused on memory safe languages. You kids and your memory safe languages.
I'd like to port some of this to #C.
github.com/coding-horror/basic…
GitHub - coding-horror/basic-computer-games: An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See coding-horror.github.io/basic-computer-
An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See https://coding-horror.gi...GitHub
@grin @sullybiker The main problem with #shell scripts is that they’re glue for other commands that may or may not be installed and may or may not be the same as those used by the author.
It’s why #dehydrated has so much logic detecting the installed flavor of awk, sed, grep, diff, et al. “Portable” shell is like portable #C—riddled with brittle environmental tests (thus begetting things like #GNU #Autotools).
Even #testssl admitted defeat and can run from a #Docker #container now.
Also, here are a few #blog posts by @plicease on #Platypus:
• blogs.perl.org/users/graham_ol…
• https://blogs.perl.org/users/graham_ollis/2017/06/the-many-ways-to-use-alien.html•
• blogs.perl.org/users/graham_ol…
• blogs.perl.org/users/graham_ol…
• blogs.perl.org/users/graham_ol…
#Perl #FFI #libffi #PerlXS #C #Cpp #Go #GoLang #Rust #RustLang #Pascal #Fortran
@Perl A couple of us were discussing #Perl and #FFI for #MachineLearning applications at tonight’s #Houston Perl Mongers meeting, and I mentioned the #Platypus project (a/k/a FFI::Platypus).
Lead #developer @plicease has spoken about it at various #conferences, so I thought I’d collect those in a playlist: youtube.com/playlist?list=PLiV…
More info: pl.atypus.org or follow @PerlFFI
#libffi #PerlXS #C #Cpp #Go #GoLang #Rust #RustLang #Pascal #Fortran
Graham Ollis on Perl and FFI
A collection of presentations on using the Foreign Function Interface with the programming language Perl by the developer of the FFI::Platypus library For mo...YouTube
“[Larry] Wall [creator of the #Perl #programming language] lets others man the defenses against Perl’s assailants. When I asked him for a response to a point-by-point critique from [Eric S.] Raymond, he sent me a one-line e-mail quoting Leo #Tolstoy:
“’It is amazing,’ wrote Tolstoy, ‘how complete is the delusion that beauty is goodness.’”
All I could find was some decade-old code by Robert Krimen that looks like a port of the relevant #OpenSSH #C code to #Perl as part of a package to store secrets in YAML and JSON files: metacpan.org/release/ROKR/App-…
Here’s the corresponding OpenSSH `fingerprint_randomart` function: github.com/openssh/openssh-por…
openssh-portable/sshkey.c at 25c8a2bbcc10c493d27faea57c42a6bf13fa51f2 · openssh/openssh-portable
Portable OpenSSH. Contribute to openssh/openssh-portable development by creating an account on GitHub.GitHub
A Lisp Interpreter Implemented in Conway’s Game of Life
Lisp in Life is a Lisp interpreter implemented in Conway’s Game of Life.Woodrush’s Blog