- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
FortranCon2020 [JP]: Program flow control using scripting languages
Controlling program flow from scripting languages is a tractable extension which lowers barriers for extending functionality in lower level languages (such as fortran).
In this presentation we show how a set of required features enables end-users to change and control the program flow using Lua scripts.
The following features are necessary for minimal code in the hosting program:
- dictionaries for seamless data exchange with little coding effort
The dictionaries allows (pointers to) data to be referenced via characters and ensures
no intermediate copying of data.
- running a Lua interpreter
- creating interaction points in program
This is the most problematic part since you have to expose *break* points where the
hosting program stops and calls Lua. Another approach would be to build your entire program
around scripting.
In our density functional theory program (Siesta) we expose Lua for users to implement their own molecular dynamics engines, change convergence criteria/properties based on self consistent cycles, and more.
This coding effort revealed substantial insight on how to control and expose data structures for end users in scripting languages.
We envision that other scripting languages are better suited since the communities are not experienced Lua coders/users, e.g. Python, nim.
Nick Papior, DTU DCC
Alberto Garcia, ICMAB
https://tcevents.chem.uzh.ch/e/FortranCon2020
Видео FortranCon2020 [JP]: Program flow control using scripting languages канала FortranCon
In this presentation we show how a set of required features enables end-users to change and control the program flow using Lua scripts.
The following features are necessary for minimal code in the hosting program:
- dictionaries for seamless data exchange with little coding effort
The dictionaries allows (pointers to) data to be referenced via characters and ensures
no intermediate copying of data.
- running a Lua interpreter
- creating interaction points in program
This is the most problematic part since you have to expose *break* points where the
hosting program stops and calls Lua. Another approach would be to build your entire program
around scripting.
In our density functional theory program (Siesta) we expose Lua for users to implement their own molecular dynamics engines, change convergence criteria/properties based on self consistent cycles, and more.
This coding effort revealed substantial insight on how to control and expose data structures for end users in scripting languages.
We envision that other scripting languages are better suited since the communities are not experienced Lua coders/users, e.g. Python, nim.
Nick Papior, DTU DCC
Alberto Garcia, ICMAB
https://tcevents.chem.uzh.ch/e/FortranCon2020
Видео FortranCon2020 [JP]: Program flow control using scripting languages канала FortranCon
Комментарии отсутствуют
Информация о видео
3 сентября 2020 г. 16:25:11
00:22:13
Другие видео канала

![FortranCon2020 [SP]: A Fortran-Keras Deep Learning Bridge for Scientific Computing](https://i.ytimg.com/vi/vH2usqECeso/default.jpg)
![FortranCon2020 [JP]: Applying context-free grammar to hierarchically organized & var. shaped arrays](https://i.ytimg.com/vi/ZIcxeugnROA/default.jpg)
![FortranCon2020 [SP]: Toward a thriving open source Fortran community](https://i.ytimg.com/vi/JUHS-JFvs90/default.jpg)


![FortranCon2020 [SP]: Using R with High Performance Fortran on a Windows Laptop](https://i.ytimg.com/vi/8gIZbUqymdU/default.jpg)
![FortranCon2020 [SP]: Flang: The LLVM Fortran Front-End](https://i.ytimg.com/vi/Fy68k5hHgLk/default.jpg)

![FortranCon2020 [SP]: Front-end optimization in gfortran](https://i.ytimg.com/vi/K3HR7CW2dps/default.jpg)

![FortranCon2020 [JP]: Copernicus Spacecraft Trajectory Design and Optimization Program](https://i.ytimg.com/vi/_UlY7gdDHQY/default.jpg)
![FortranCon2020 [JP]: The Futile project: an embedded DSL...](https://i.ytimg.com/vi/8toOEtqY0t4/default.jpg)
![FortranCon2020 [SP]: gtk-fortran: a GTK / Fortran binding](https://i.ytimg.com/vi/G-3pJa081F0/default.jpg)
![FortranCon2020 [Workshop, part1]: Introduction to Object-oriented Programming with Fortran](https://i.ytimg.com/vi/1ncnhoZS60c/default.jpg)


![FortranCon2020 [JP]: Designing a Modern C++/Fortran Interface by Example](https://i.ytimg.com/vi/5h0qHCVnfHI/default.jpg)
![FortranCon2020 [JP]: Interfacing with OpenCL from Modern Fortran for Highly Parallel Workloads](https://i.ytimg.com/vi/EUV8iN6fjJg/default.jpg)
![FortranCon2020 [JP]: Generic Programming Techniques](https://i.ytimg.com/vi/B9Xj409LUsM/default.jpg)
![FortranCon2020 [JP]: Fortran Package Manager](https://i.ytimg.com/vi/gO76uWUtKvE/default.jpg)
