This document provides an introduction and overview of the Perl 6 programming language. It covers topics such as getting started with Perl 6 using Pugs, basic program structure, scalars, variables, control structures, arrays, hashes, input/output, and more. The summary is designed to give a high-level understanding of the key topics covered in the document in 3 sentences or less.
May 2006 presentation to the Dallas/Ft. Worth Perl Mongers on Perl's tie() functionality and how to use it to create fancy behavior for familiar data types
I will show how to create an interpreter for a simple programming language using Perl 6 grammars.
This talk is not an introduction to Perl 6 regexes and grammars, so we'll use them straight on, but I will add comments so that you can understand what's going on even if you never tried Perl 6 grammars.
There will not be enough time to write the whole compiler, of course, but I will show how you can do that at home.
Conheça um pouco mais sobre Perl 6, uma linguagem de programação moderna, poderosa e robusta que permitirá que você escreva código de forma ágil e eficiente.
During the talk, I will show a number of short Perl 6 fragments (mostly one-liners), that can express complex problems in a very concise way.
We will also solve a few problems from Project Euler, where Perl 6 can demonstrate its extreme beauty.
You must’ve heard of Unit testing… If not, then this talk is definitely for you! If you do know Unit testing, you probably ran at some point into a hurdle: “Where do I start?” And despite your best efforts, you end up not having enough tests for your application – Then that change request comes in, requiring you to change that very same complex piece of code for which you are lacking tests! How do you going refactor while maintaining all those ‘undocumented’ business rules? This talk will show how Codeception can be leveraged to refactor the visuals aspects of an application, maintaining backwards compatibility on API changes and even assist in moving to a whole different server infrastructure.
What makes your code slow? How do you make it faster? And how do you prove it?
This talk will describe my adventures benchmarking and optimizing ordered hashes in Perl, culminating in the release of Hash::Ordered (http://p3rl.org/Hash::Ordered) — which outperforms all other CPAN alternatives, often by a substantial margin. We will cover:
* How to customize Benchmark.pm
* How and why to benchmark at different scales
* Why tied anything in Perl is a horrible idea
* How ordered hashes got faster from a simple algorithm change
May 2006 presentation to the Dallas/Ft. Worth Perl Mongers on Perl's tie() functionality and how to use it to create fancy behavior for familiar data types
I will show how to create an interpreter for a simple programming language using Perl 6 grammars.
This talk is not an introduction to Perl 6 regexes and grammars, so we'll use them straight on, but I will add comments so that you can understand what's going on even if you never tried Perl 6 grammars.
There will not be enough time to write the whole compiler, of course, but I will show how you can do that at home.
Conheça um pouco mais sobre Perl 6, uma linguagem de programação moderna, poderosa e robusta que permitirá que você escreva código de forma ágil e eficiente.
During the talk, I will show a number of short Perl 6 fragments (mostly one-liners), that can express complex problems in a very concise way.
We will also solve a few problems from Project Euler, where Perl 6 can demonstrate its extreme beauty.
You must’ve heard of Unit testing… If not, then this talk is definitely for you! If you do know Unit testing, you probably ran at some point into a hurdle: “Where do I start?” And despite your best efforts, you end up not having enough tests for your application – Then that change request comes in, requiring you to change that very same complex piece of code for which you are lacking tests! How do you going refactor while maintaining all those ‘undocumented’ business rules? This talk will show how Codeception can be leveraged to refactor the visuals aspects of an application, maintaining backwards compatibility on API changes and even assist in moving to a whole different server infrastructure.
What makes your code slow? How do you make it faster? And how do you prove it?
This talk will describe my adventures benchmarking and optimizing ordered hashes in Perl, culminating in the release of Hash::Ordered (http://p3rl.org/Hash::Ordered) — which outperforms all other CPAN alternatives, often by a substantial margin. We will cover:
* How to customize Benchmark.pm
* How and why to benchmark at different scales
* Why tied anything in Perl is a horrible idea
* How ordered hashes got faster from a simple algorithm change
Full-day tutorial for the dutch php conference 2011 giving a very quick tour around all the various areas of the ZCE syllabus and some tips on the exam styles
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
3. Don’t really do this
$ ln -s /usr/local/bin/pugs /usr/bin/perl
4. Introduction
It’s a completely new language
That other one never existed
Llama 6 is a long way off
This is the basics of the language
Next week it might be different
5. Basis for this talk
Apocalypses
Exegeses
Synopses
Perl6-Pugs-N-NN
docs/quickref/data
examples/
Actual Pugs behavior
10. Making a P6 program
Programs are just text files
Syntax is C like, mostly
whitespace is not significant, mostly
statements separated by semicolons
comments are # to end of line
Use pugs on the shebang line
#!/usr/local/bin/pugs
say quot;Hello Worldquot;;
11. Objects & Methods
Data are objects or nouns
Methods are verbs (actions)
Object.Method
#!/usr/local/bin/pugs
quot;Hello Worldquot;.say;
12. Run from command line
$ pugs hello.p6
Hello World
$ ./hello.p6
Hello World
$ pugs -e 'say quot;Hello Worldquot;'
Hello World
$ pugs
pugs> say quot;Hello Worldquot;
Hello World
bool::true
16. say
say can be used a method
Outputs the value and tacks on a newline
More output stuff later
quot;Hello Worldquot;.say;
say quot;Hello Worldquot;;
26. String comparisons
'fred' lt 'barney' False
'fred' gt 'barney' True
'fred' eq 'barney' False
'fred' le 'barney' False
'fred' ge 'barney' True
'fred' ne 'barney' True
27. Scalar variables
Stores a single value
Name starts with a letter or underscore,
followed by letters, underscores, or digits
Has a special symbol (sigil) prepended, $
Starts off undefined (absence of value)
We have to assign it a value
Declare with my on first use
28. Scalar Assignment
my $num = 5;
quot;The number is $numquot;.say;
my $str = quot;Pugsquot;;
quot;Just another $str hacker, quot;.say;
29. Scalar value type
The ref method gives the type of scalar
my $s1 = 5 < 6;
my $s2 = quot;Perlquot;;
my $s3 = 6 - 5;
my $s4 = 3.14;
$s1.WHAT; Bool
$s2.WHAT; Str
$s3.WHAT; Int
$s4.WHAT; Rat
30. Standard input
quot;Enter a name> quot;.print;
my $input = (=$*IN).chomp;
quot;Enter another name> quot;.print;
$input = (=<>).chomp;
32. if-elsif-else
if 5 < 6 { quot;5 less than 6quot;.say }
if 5 > 6 { quot;5 more than 6quot;.say }
else { quot;5 not more than 6quot;.say }
if 5 < 4 { quot;5 less than 4quot;.say }
elsif 5 > 4 { quot;5 more than 4quot;.say }
else { quot;5 not more than 4quot;.say }
33. Complex comparisons
if( 5 < $x < 10 )
{
quot;$x is between 5 and 10quot;.say
}
else
{
quot;$x is not between 5 and 10quot;.say
}
34. Junctions
my $num = 5;
if( $num == any( <5 6 7> ) )
{
quot;$num is in the setquot;.say
}
else
{
quot;$num is not in the setquot;.say
}
35. Expression modifiers
Apply a condition to a single expression
quot;5 is greaterquot;.say if 5 > 6;
quot;5 is lessquot;.say if 5 < 6;
36. loop
loop ( init; test; increment ){ }
loop ( $i = 1; $i < 10; $i++ ) {
quot;I can count to $iquot;.say;
}
I can count to 1
I can count to 2
I can count to 3
I can count to 4
...
37. next
skips the rest of the block
goes to next iteration
loop ( $i = 1; $i < 10; $i++ ) {
next if $i % 2;
quot;I can count to $iquot;.say;
}
I can count to 2
I can count to 4
I can count to 6
I can count to 8
38. last
skips the rest of the iterations
continues after the loop
loop ( $i = 1; $i < 10; $i++ ) {
last if $i == 5;
quot;I can count to $iquot;.say;
}
I can count to 2
I can count to 4
I can count to 6
I can count to 8
39. redo
starts the current iteration again
uses the same element (if any)
loop {
quot;Do you like pugs?> quot;.print;
my $answer = (=$*IN).chomp;
redo if $answer ne 'yes';
last;
}
40. Number guesser
quot;Guess secret number from 1 to 10quot;.say;
my $secret = rand(10+1).int;
loop {
quot;Enter your guess> quot;.print;
my $guess = (=$*IN).chomp;
if $guess < $secret
{ quot;Too low!quot;.say; redo }
elsif $guess > $secret
{ quot;Too high!quot;.say; redo }
else
{ quot;That's it!quot;.say; last }
}
45. Ranges
( 4 .. 7 ) < 4 5 6 7 >
( 'a' .. 'e' ) < a b c d e >
reverse 1 .. 3 < 3 2 1 >
( 1 .. 3 ).reverse < 3 2 1 >
46. Arrays
Array variables store multiple scalars
Indexes list with integers, starting at 0
Same variable naming rules as a scalar
Special character is @ (think @rray)
Name comes from a separate namespace
Nothing to do with scalar of same name
48. Bounds
my @r = 37..42;
say quot;Minimum is quot; ~ @r.min;
say quot;Maximum is quot; ~ @r.max;
my @a = < 3 5 9 2 5 0 1 8 4 >;
say quot;Minimum is quot; ~ @a.min;
say quot;Maximum is quot; ~ @a.max;
49. Array elements
my @a = <a b c d e f g>;
my $first = @a[0]; a
my $last = @a[-1]; g
my $count = @a.elems; 7
my @slice = @a[0,-1]; < a g >
52. for
for 1 .. 5 -> $elem {
quot;I saw $elemquot;.say;
}
I saw 1
I saw 2
I saw 3
I saw 4
I saw 5
53. for
for @ARGS -> $arg {
quot;I saw $arg on the command linequot;.say;
}
I saw fred on the command line
I saw barney on the command line
I saw betty on the command line
55. Hash variables
Hash variables stores unordered pairs
Index is the “key”, a unique string
Makes a map from one thing to another
Same naming rules as scalar and array
Special character is % (think %hash)
Name comes from a separate namespace
Nothing to do with scalar, array of same name
56. Hash elements
my %h = <a 5 b 7 c 3>;
my $a_value = %h{'a'}; 5
my $b_value = %h<b>; 7
my $count = %h.elems; 3
my @values = %h{ <b c> }; < 7 3 >
my @values = %h<b c>; < 7 3 >
59. Hash values
my %hash = (
'fred' => 'flintstone',
'barney' => 'rubble',
);
for %hash.values -> $value {
quot;One value is $valuequot;.say;
}
One value is rubble
One value is flintstone
60. By pairs
my %hash = (
'fred' => 'flintstone',
'barney' => 'rubble',
);
for %hash.kv -> $key, $value {
quot;$key ---> $valuequot;.say;
}
barney ---> rubble
fred ---> flintstone
61. Counting words
my %words;
for =<> -> $line {
for $line.chomp.split -> $word {
%words{$word}++;
}
}
for %words.kv -> $k, $v {
quot;$k: $vquot;.say
}
62. exists
True if the key is in the hash
Does not create the key
my @chars = <fred wilma barney betty>;
my %hash = (
'fred' => 'flintstone',
'barney' => 'rubble',
);
for @chars -> $char {
quot;$char existsquot;.say if %hash.exists($char);
}
63. delete
Removes pair from hash
my %hash = (
'fred' => 'flintstone',
'barney' => 'rubble',
'dino' => undef,
);
%hash.delete('dino');
%hash.join(quot;nquot;).say;
barney rubble
fred flintstone
76. given is like C’s switch (but better)
variable value types
complex data structures
regular expressions - PCRE and new stuff
sorting, string manipulation etc.
subroutines have better calling conventions
77. Summary
Perl 6 is a new language
It borrows from Perl (and ancestors)
It’s not done yet, but it’s almost usable