Scripting Languages/Meeting Notes 2018-08-20
Jump to navigation
Jump to search
Contents
Scripting Languages
- Date
- Monday, 20 August 2018 from 7:00pm to 9:00pm iCal
- Meetup Event
- https://www.meetup.com/NetSquared-Kitchener-Waterloo/events/253044847/
- Location
- Room 1301 -- Conrad Grebel University College, 140 Westmount Rd. N., Waterloo, Ontario Map
- Event Announcement
- Scripting Languages/Announcement 2018-08-20
Do you need to do the same thing again and again? Have you automated those repetitive tasks? What software tools do you use? Keyboard macros? Programmable keyboard macros? A scripting language? Which scripting language? What makes a scripting language different from a programming language? Is a scripting language Turing-complete? Can't you just do everything in PowerShell or Bash?
Let's talk about what can be solved with scripting languages, and what can't. Bring your laptop to give a demonstration of your favourite scripting languages, and maybe we can help solve some of your most annoying repetitive problems.
--Bob Jonkman & Marc Paré
Resources
Introductions
- Testers, programmers, SysAdmins, and some non-scripting user
Programming vs. Scripting
- "Programs" are compiled, "Scripts" are interpreted
- BUt mostly there's no differences in syntax
- Brian Kernighan still uses AWK,
- Touts the advantages of one-liners, which can't be compiled
- Lecture he gavbe in the UK, "Successful programming language, why are some more successful than others"
- Keeps coming back to AWK as a successful language
- "If you want to compile AWK, just re-write it in C"
- Use a scripting language to prototype a concept
- Non-programmers using scripts to do application installation
- Useful for installing applications without a GUI to get that app installed to the GUI level
- eg. Mail-In-A-Box, installed with a script
LUA
- LUA: Access to the Linux encryption keyring subsystem
- Using GUILE (FSF's SCHEME), not so good for encryption
- "Python for millennials"
- Written in ANSI C
- Very embeddable, no linking,
- Comiles to a Virtual Machine
- Two flavours, LUA and LUAJIT (Just-In-Time compiler)
- Seen in XMPP server, used for real-time application
- Came from Brazil, unverisity project, released "into the wild"
- Has facility for OOP, but needs your own OOP tools
- Has co-routines, program in loops that are interruptable; daisychain them together
- Functions are first-class entities, so can do functional programming
- Used in games, htere's a modLUA for APache; handle data in blocks without touching the Apache system
- Rather than create a web backend, it lets you create the entire web server
- "Embeddable extension language"
- There's a bootloader LUA for use before the OS loads in SysLinux
- Kirk has used LUA and an conversion layer for allowing Apache to work with encryption sysstyem
- Definitely a good language for testing
- Bulit into Wireshark for decoding packets
AWK
- Conrad Grebel prof Dave Huron used AWK to create a catalogue of music for Hewlett-Packard
- "HumDrum Toolkit" may be the app name
- Trying to analyze music, determine patterns among composer
- Find out if people would be happy if music was two tones up or down
- Two minutes of this analysis is equal to a human analysis of years
- Dave Huron one of the first
- Raymond cleans the data before processing it with AWK
- Uses BASH to insert parameters begore printing.
- Bob used AWK to parse log files
- Poor programming practices
- Standardized CSV files
- https://sobac.com/sobac/groupwise/code2html/
- https://sobac.com/bin/awk/
List of scripting languages =
- AWK
- Perl
- Python
- BASH
- PHP
- JavaScript (ECMAScript)
- TROFF
- LUA lua.org, wiki, user groups
Back to: Scripting Languages