Focus sull'uso del linguaggio di scripting Lua nella programmazione di videogiochi. Panoramica sulla sintassi del linguaggio, e sugli SDK per la programmazione di videogiochi MOAI e EOS Multimedia Scripting Environment.
Slides del talk di Salvatore Carotenuto
Evento: OpenMakersDay Meetup Napoli 2014, 16 giugno 2014
Tra le varie tappe internazionali, il “RAD Studio XE2 World Tour” ha toccato anche l'Italia, precisamente Milano il 21 settembre e Roma il giorno successivo.
Le novità introdotte in questa versione del tool di sviluppo sono davvero tante, motivo per cui ho pensato di redigere questo reportage per
elencare quelle che – a livello personale e soggettivo – ritengo le innovazioni più interessanti e degne di nota, e magari sciogliere qualche dubbio a coloro che non hanno potuto partecipare, raccontando gli avvenimenti della giornata di presentazione.
Focus sull'uso del linguaggio di scripting Lua nella programmazione di videogiochi. Panoramica sulla sintassi del linguaggio, e sugli SDK per la programmazione di videogiochi MOAI e EOS Multimedia Scripting Environment.
Slides del talk di Salvatore Carotenuto
Evento: OpenMakersDay Meetup Napoli 2014, 16 giugno 2014
Tra le varie tappe internazionali, il “RAD Studio XE2 World Tour” ha toccato anche l'Italia, precisamente Milano il 21 settembre e Roma il giorno successivo.
Le novità introdotte in questa versione del tool di sviluppo sono davvero tante, motivo per cui ho pensato di redigere questo reportage per
elencare quelle che – a livello personale e soggettivo – ritengo le innovazioni più interessanti e degne di nota, e magari sciogliere qualche dubbio a coloro che non hanno potuto partecipare, raccontando gli avvenimenti della giornata di presentazione.
Rakshabandhan, also known as Rakhi, is one of the most popular festivals in India that celebrates the relationship between brothers and sisters. This year, Rakhi will be celebrated on August 13, 2011. The document promotes an online retailer called BuyRakhiOnline that sells various rakhi products like designer rakhis, rakhis with sweets or chocolates, family rakhis, and gift hampers.
Brazil is a large South American country known for its mineral wealth, soccer tradition, and natural attractions. Some of its most notable features include the Amazon rainforest, Rio de Janeiro and its iconic Christ statue overlooking the city, Iguazu Falls on the border with Argentina, and its capital Brasilia. Tourism is a large part of Brazil's economy, with visitors enjoying beaches, attractions, and soccer.
The Write & Invite Program aims to encourage Irish consumers to write invitation letters to overseas friends and family to visit Ireland. A competition will be held to select the best 10 letters, which will then be used as templates on Facebook and in email campaigns. The core component is a Facebook app that allows users to customize a letter, select recipients from their Facebook friends or email contacts, and will track the number of letters sent. The goals are to tap into national pride, leverage word-of-mouth, and increase tourism through low-cost virtual ambassadorship on Facebook. Success will be measured by the number of letters generated on Facebook and through email campaigns to an existing consumer database.
This document provides an outline on the topic of supply chain management. It discusses key concepts like global supply chain issues, outsourcing, ethics in the supply chain, and strategies like many suppliers, few suppliers, and vertical integration. It also covers managing the supply chain, issues and opportunities in an integrated supply chain, and internet purchasing. The learning objectives are to identify and describe concepts like supply chain management, negotiations, and approaches to vendor selection and evaluation.
The document discusses the concept of quasi rent. It defines quasi rent as a temporary gain earned by a factor of production due to a temporary limitation in its supply in the short run. Specifically:
- Quasi rent arises for capital equipment/machinery in the short run when its supply is fixed and it earns surplus over its transfer earnings.
- It is measured as the total revenue earned minus the total variable costs.
- Unlike economic rent which persists in both the short and long run, quasi rent disappears in the long run when the supply of the factor can be increased.
1. The New Aizu Times (NAT) newspaper company is starting operations at the University of Aizu to provide new local information. They are working on a concrete plan of action.
2. There are several necessary steps to set up the business, including obtaining required permits, hiring staff, and acquiring machines. One permit is a registered trademark to prove the company's products. Funding also needs to be obtained through loans to cover startup costs.
3. The company plans to establish an office in Aizuwakamatsu city and is considering pricing, locations, advertising, and hours. If they gain customers, the business will be successful. They have not yet finalized print contracts or methods of dealing
This document provides instructions for making a step book about good friends. It explains that you need 3 pieces of paper or bag pieces laid on top of each other and folded to create 6 steps. On each step, you can write questions and draw pictures related to good friends for the step book title you choose.
1) The document provides instructions for setting up an AWS account and launching an EC2 instance with an AMI that contains tools and documentation for a hands-on tutorial on NoSQL databases and MongoDB.
2) The tutorial covers basic MongoDB commands and demonstrates how to create, insert, update, and query document data using the mongo shell client. Embedded and nested documents are explored along with geospatial queries.
3) A map-reduce example aggregates historical check-in data to calculate popular locations over different time periods, demonstrating how MongoDB supports batch operations.
The document provides brief descriptions and odd facts about various landmarks and places of interest in the United Kingdom, including Big Ben, Phoenix Park, the Houses of Parliament, Carrick-a-Rede Rope Bridge, Stonehenge, Buckingham Palace, Threave Castle, Sweetheart Abbey, Trinity College, Dublin Zoo, Belfast Castle, the Olympia Theatre, the London Eye, and Oxford University. The landmarks and places of interest are located in cities and towns across England, Scotland, Northern Ireland, and Ireland.
”Zuckerberg-generationen”. Ikke alene ser de mindre tv, de ser det også på mobile platforme og uden for den normale programlægning, siger Jan Godsk, branded content ekspert.
– Samme generation er entreprenante og driver den anden tendens, som er den teknologiske udvikling. Det udfordrer de traditionelle marketing modeller.
The Pink Night is a popular festival in Rimini, Italy that celebrates women, love, and the color pink. During the festival, which lasts multiple days, the city decorates monuments, buildings, and street lamps pink. Residents and tourists dress in pink and eat pink dough food. Events include concerts in the streets and on beaches, as well as fireworks that light up the pink sky at midnight. The Pink Night started in 2006 and has grown significantly, with the most recent edition lasting three days and attracting two million visitors from around the world.
This document discusses bridal sarees, which are given great importance in India as they provide brides with an exotic look on their wedding day. Kashmiri embroidered and Banarasi sarees are two of the most popular styles of Indian bridal wear. The document promotes an online store called DesignerIndianWear.com that offers an exclusive collection of designer bridal sarees and Indian wedding attire.
Event: Giffoni Open Makers Day 2013
Speaker: Valentina Pelliccia
Android è un sistema operativo open-source basato su kernel Linux e progettato per dispositivi mobili come smartphone e tablet. Il progetto Open Source Android guidato da Google dispone di una vasta comunità di sviluppatori divenendo in pochi anni uno dei leader nel mercato mobile.
Rakshabandhan, also known as Rakhi, is one of the most popular festivals in India that celebrates the relationship between brothers and sisters. This year, Rakhi will be celebrated on August 13, 2011. The document promotes an online retailer called BuyRakhiOnline that sells various rakhi products like designer rakhis, rakhis with sweets or chocolates, family rakhis, and gift hampers.
Brazil is a large South American country known for its mineral wealth, soccer tradition, and natural attractions. Some of its most notable features include the Amazon rainforest, Rio de Janeiro and its iconic Christ statue overlooking the city, Iguazu Falls on the border with Argentina, and its capital Brasilia. Tourism is a large part of Brazil's economy, with visitors enjoying beaches, attractions, and soccer.
The Write & Invite Program aims to encourage Irish consumers to write invitation letters to overseas friends and family to visit Ireland. A competition will be held to select the best 10 letters, which will then be used as templates on Facebook and in email campaigns. The core component is a Facebook app that allows users to customize a letter, select recipients from their Facebook friends or email contacts, and will track the number of letters sent. The goals are to tap into national pride, leverage word-of-mouth, and increase tourism through low-cost virtual ambassadorship on Facebook. Success will be measured by the number of letters generated on Facebook and through email campaigns to an existing consumer database.
This document provides an outline on the topic of supply chain management. It discusses key concepts like global supply chain issues, outsourcing, ethics in the supply chain, and strategies like many suppliers, few suppliers, and vertical integration. It also covers managing the supply chain, issues and opportunities in an integrated supply chain, and internet purchasing. The learning objectives are to identify and describe concepts like supply chain management, negotiations, and approaches to vendor selection and evaluation.
The document discusses the concept of quasi rent. It defines quasi rent as a temporary gain earned by a factor of production due to a temporary limitation in its supply in the short run. Specifically:
- Quasi rent arises for capital equipment/machinery in the short run when its supply is fixed and it earns surplus over its transfer earnings.
- It is measured as the total revenue earned minus the total variable costs.
- Unlike economic rent which persists in both the short and long run, quasi rent disappears in the long run when the supply of the factor can be increased.
1. The New Aizu Times (NAT) newspaper company is starting operations at the University of Aizu to provide new local information. They are working on a concrete plan of action.
2. There are several necessary steps to set up the business, including obtaining required permits, hiring staff, and acquiring machines. One permit is a registered trademark to prove the company's products. Funding also needs to be obtained through loans to cover startup costs.
3. The company plans to establish an office in Aizuwakamatsu city and is considering pricing, locations, advertising, and hours. If they gain customers, the business will be successful. They have not yet finalized print contracts or methods of dealing
This document provides instructions for making a step book about good friends. It explains that you need 3 pieces of paper or bag pieces laid on top of each other and folded to create 6 steps. On each step, you can write questions and draw pictures related to good friends for the step book title you choose.
1) The document provides instructions for setting up an AWS account and launching an EC2 instance with an AMI that contains tools and documentation for a hands-on tutorial on NoSQL databases and MongoDB.
2) The tutorial covers basic MongoDB commands and demonstrates how to create, insert, update, and query document data using the mongo shell client. Embedded and nested documents are explored along with geospatial queries.
3) A map-reduce example aggregates historical check-in data to calculate popular locations over different time periods, demonstrating how MongoDB supports batch operations.
The document provides brief descriptions and odd facts about various landmarks and places of interest in the United Kingdom, including Big Ben, Phoenix Park, the Houses of Parliament, Carrick-a-Rede Rope Bridge, Stonehenge, Buckingham Palace, Threave Castle, Sweetheart Abbey, Trinity College, Dublin Zoo, Belfast Castle, the Olympia Theatre, the London Eye, and Oxford University. The landmarks and places of interest are located in cities and towns across England, Scotland, Northern Ireland, and Ireland.
”Zuckerberg-generationen”. Ikke alene ser de mindre tv, de ser det også på mobile platforme og uden for den normale programlægning, siger Jan Godsk, branded content ekspert.
– Samme generation er entreprenante og driver den anden tendens, som er den teknologiske udvikling. Det udfordrer de traditionelle marketing modeller.
The Pink Night is a popular festival in Rimini, Italy that celebrates women, love, and the color pink. During the festival, which lasts multiple days, the city decorates monuments, buildings, and street lamps pink. Residents and tourists dress in pink and eat pink dough food. Events include concerts in the streets and on beaches, as well as fireworks that light up the pink sky at midnight. The Pink Night started in 2006 and has grown significantly, with the most recent edition lasting three days and attracting two million visitors from around the world.
This document discusses bridal sarees, which are given great importance in India as they provide brides with an exotic look on their wedding day. Kashmiri embroidered and Banarasi sarees are two of the most popular styles of Indian bridal wear. The document promotes an online store called DesignerIndianWear.com that offers an exclusive collection of designer bridal sarees and Indian wedding attire.
Event: Giffoni Open Makers Day 2013
Speaker: Valentina Pelliccia
Android è un sistema operativo open-source basato su kernel Linux e progettato per dispositivi mobili come smartphone e tablet. Il progetto Open Source Android guidato da Google dispone di una vasta comunità di sviluppatori divenendo in pochi anni uno dei leader nel mercato mobile.
Una carrellata sugli strumenti di sviluppo per le principali piattaforme mobile: Android, iPhone, Windows Phone 7, Symbian e Blackberry.
Le principali caratteristiche, IDE, tool crossplatform e application store.
WhyMCA HappyHour
Slide del webinar Intel rivolte a tutti coloro che, avendo già una conoscenza base della programmazione NDK per Android, vogliono esplorare gli strumenti necessari per compilare codice nativo espressamente dedicato a dispositivi basati su processori Intel. E' affrontato il porting di codice c/c++ per dispositivi basati su architettura Intel originariamente creato su altre architetture. Sono presentati 3 casi d’uso, mostrando con livelli di difficoltà crescenti il processo completo di creazione di una semplice applicazione Android basata su NDK, confrontando i flag di compilazione necessari per ottimizzare un'applicazione Android basata su NDK affinché sia utilizzabile su dispositivi basati su architettura Intel.
Flutter: Google alla conquista del mobile multi piattaformaCommit University
Nell'ultimo decennio, lo sviluppo software è diventato trasversale anche e sopratutto nel campo mobile.
Le piattaforme ed i frameworks utili a tale scopo sono diversi, con i loro pro e contro.
Tra tutti spicca Flutter, un nuovo framework made by Google,
che riesce brillantemente ad unire la versatilità della programmazione ad alto livello, senza rinunciare alle performances che solo il codice nativo può raggiungere.
Il tutto "servito" per iOS ed Android.
Meego Italian Day 2011
Maemo: il primo sistema linux-based open source per dispositivi mobili.
Presentazione e posizionamento nel panorama informatico open-source e dei sistemi operativi per dispositivi mobili di Maemo, nato nel 2004 per volere di Nokia Corporation. Inoltre la sua importanza per il mobile middleware, i suoi pregi ed i suoi difetti, la sua origine ed il piano de “i cinque passi” sino ad oggi.
Francesco Baldassarri è studente di Ingegneria Informatica presso l’Università di Bologna. Le sue principali aree di interesse sono il software open-source, i protocolli di rete e la mobile handsets technology. In particolare ha focalizzato la sua attenzione sul sistema operativo per dispositivi mobili linux-based Maemo diventandone un membro attivo della community degli sviluppatori. Attualmente sta cooperando con il DEIS (Dipartimento di Elettronica, Informatica e Sistemistica dell’Università di Bologna) sul progetto di Delay-/Disruption- Tolerant Networking.
Maggior
Alessandro Forte, co-fondatore di DotNetCampania, illustra ai soci dell’associazione la piattaforma Android e come sviluppare applicazioni per tale piattaforma.
Il talk prevede una breve introduzione alla piattaforma Maemo ed ai Nokia Internet Tablet, sia dal punto di vista dell'utente comune, sia da quello dello sviluppatore.
Verrà poi spiegato come configurare ed installare l'ambiente Scratchbox, il principale ambiente utilizzato per sviluppare applicazioni per Maemo.
Infine verranno presentati due plugin per Eclipse: ESbox e PluThon. Il primo si interfaccia con Eclipse e Scratchbox, permettendo di sviluppare sia applicazione C/C++ che Python e di testarle all'interno dell'ambiente Scratchbox. Il secondo è un plugin specifico per Python e permette di eseguire e debuggare le applicazioni direttamente sul dispositivo.
2. Che cos'è Android?
Android è uno stack software
per dispositivi mobili, che
comprede:
Il sistema operativo
Middleware
Key application
Distribuisce un SDK per
programmare le applicazioni
in linguaggio Java
3. Storia
Sviluppato inizialmente da Android Inc. una startup con
sede a Palo Alto, California, USA
2005, Google acquista Android Inc.
Nel Novembre 2005, viene rilasciata la prima versione di
Android, e viene resa nota la formazione della Open Handset
Alliance(OHA)
Da ottobre 2008, Android è disponibile con licenza Apache
Febbraio 2009, Android 1.5 (Cupcake) Based on Linux
Kernel 2.6.27
Settembre 2009, Android 1.6 (Donut) Based on Linux
Kernel 2.6.29
Ottobre 2009, Android 2.0 / 2.1 (Eclair) Based on Linux
Kernel 2.6.29
Maggio 2010, Android 2.2 (Froyo) Based on Linux Kernel
2.6.32
4. Open Handset Alliance
Open Handset Alliance (OHA) è una formazione
commerciale composta da 78 imprese.
Si occupa di sviluppare standard aperti per dispositivi
mobili.
I membri, si contraddistinguono in 5 categorie:
Mobile operators
Software companies
Commercialization companies
Semiconductor companies
Handset manufactures
5. Android/Linux
Android adotta la versione 2.6 di
Linux
- Gestione della sicurezza
- Memory Management
- Process Management
- Network stack
- Driver Model
Il kernel agisce anche da layer di
astrazione fra l'hardware e il resto dello
stack software.
7. Architettura/Linux Kernel
Android adotta la versione 2.6
di Linux:
Gestione della sicurezza
Memory Management
Network Stack
Driver Model
Abstract Layer tra hardware e
software stack
8. Architettura/Libraries
Android comprende un vasto set di librerie C/C++ :
System C library- derivate BSD ottimizzata
per dispositivi mobili Linux-based
Media Libraries- basate su PacketVideo's
OpenCORE
Surface Manager-accesso al sottosistema
di visualizzazione
LibWebCore
SGL-motore grafico 2D
3D libraries-derivate da OpenGL ES 1.0
APIs
FreeType
SQLite
9. Architettura/Android Runtime
Android include un set di librerie di base che fornisce la
maggior parte delle funzionalità disponibili nelle librerie di base
del linguaggio di programmazione Java.
Ogni applicazione Android gira in un proprio processo, con la
propria istanza della macchina virtuale Dalvik. La Virtual Machine
Dalvik esegue file Dalvik Executable (.dex), ottimizzata per
dispositivi con memoria ridotta.
La VM Dalvik si basa sul kernel Linux per le funzionalità di base
offerte da quest'ultimo, come il threading e di memoria a basso
livello di gestione.
10. Architettura/Application Framework 1/2
Android offre una piattaforma di programmazione che permette
agli sviluppatori di creare ricche e innovative applicazioni.
Gli sviluppatori possono utilizzare per le loro applicazioni tutto
l'hardware del device:
Possono accedere alle informazioni di posizione
Eseguire applicazioni in background
Impostare allarmi
Gli sviluppatori hanno pieno accesso alle APIs usate per le applicazioni
core.
Qualsiasi applicazioni può pubblicare le sue “capacità” e tutte le altre
possono utilizzarle: architettura molto orientata al riuso.
11. Architettura/Application Framework 2/2
Alla base delle applicazioni c'è un ricco insieme di servizi e
sistemi, che includono:
Un ricco ed estendibile insieme di View: elenchi, griglie, caselle di
testo, pulsanti e persino un browser web embeddable
Content Providers, che permette di accedere i dati di altre
applicazioni e di condividere i propri
Resource Manager, che provvede all'accesso alle risorse “non-code”
come: localized strings, graphics, e layout files
Notification Manager che permette alle applicazioni di attivare avvisi
nella status bar
Activity Manager che gestisce il ciclo di vita delle applicazioni
12. Android Features 1/5
Set di Layout
- VGA
- 2D Graphics
- 3D Graphics basate sulle specifiche OpenGL ES 2.0
- Layout tradizionali per smartphone
Storage
- SQLite
Connectivity
- GSM/EDGE
- IDEN
- CDMA
- EV-DO
- UMTS
- Bluetooth
- Wi-Fi
- LTE
- WiMAX
13. Android Features 2/5
Messaging
- SMS
- MMS
Web browser
- Utilizza WebKit come motore di rendering e V8 Chrome per il
motore Javascript
Java support
- Possiamo scrivere le nostre applicazioni in Java, ma Android non
ha una Java Virtual Machine e quindi il bytecode non sarà
interpretato, e quindi eseguito. E' necessario ricompilare il bytecode
Java in un eseguibile Dalvik, che sarà eseguito dall'apposita virtual
machine. Dalvik è una virtual machine progettata per Android ed
ottimizzata per sistemi alimentati a batteria con limitata memoria e
CPU. Il supporto a J2ME è offerto grazie a terze parti come
J2ME MIDP Runner.
14. Android Features 3/5
Media support
- H.263, H.264
- MPEG-4 SP
- AMR, AMR-WB
- AAC, HE-AAC
- MP3
- MIDI
- Ogg Vorbis
- WAV
- JPEG,PNG,GIF,BMP
Streaming media support
- RTP/RTSP streaming (3GPP PSS, ISMA)
- HTML progressive download (HTML5 <video> tag)
- Adobe Flash Streaming (RTMP)
- Apple HTTP Live Streaming
- Microsoft Smooth Streaming
- Adobe Flash HTTP Dynamic Streaming
15. Android Features 4/5
Multi-touch
- Supporto nativo al Multi-touch.
Bluetooth versione 2.2+ di Android
- A2DP, AVRCP
- Trasferimento file OPP
- Accesso alla rubrica PBAP
- Invio contatti tra dispositivi
Videocalling
- Non supportata su tutti i dispositivi, ma ci possono essere dei
dispositivi con una versione personalizzata del S.O. che può
permettere le videochiamate
Multitasking
- Il Multitask è supportato
16. Android Features 5/5
Voice based features
- La ricerca Vocale su Google è supportato
- Altre funzionalità attivabile con comendi Vocali sono supportate
dalla versione 2.2 in poi
Tethering
- Il Tethering è supportato ufficialmente dalla versione 2.2 ,
permettendo al dispositivo dotato di Android di funzionare da
wireless/wired hotspot.
17. Android e Java
Dalvik Virtual Machine
Esegue file .dex ottenuto da bytecode
Virtual Machine ottimizzata per dispositivi mobili
Dalvik non elimina il Garbage Collector
DVM implementa un Just In Time(JIT) solo dalla versione 2.2, in
quanto molte APIs Java Android sono wrapper che incapsulano le
funzionalità alle quali accedono attraverso Java Native Interface
(JNI)
DVM genera codice register based a differenza di JVM che genera
codice stack based
Un file .dex compresso è usualmente a parità di codice Java la
metà di un file .jar
18. stack based vs register based
Esempio:
c=a+b
JVM:
push a (load,store)
push b (load,store)
add (load,load,store);
store c (load,store)
Dalvik register based:
add a,b,c (load,load,store)
21. Android oltre il mobile
People of Lava Sweden
has produced the first TV
adopting Android 1.5,
and is called Scandinavia
22. Bibliografia
http://developer.android.com/index.html
Wikipedia
Internet
Android-Guida per lo sviluppatore di Massimo
Carli, Apogeo
Si prega di segnalare eventuali errori
al seguente indirizzo mail:
gioacchinodelprete[at]gmail.com
Gioachino Del Prete, Napoli