Skip to content

Instantly share code, notes, and snippets.

@pheix
pheix / Raku-Advent-2020.md
Last active Nov 30, 2020
Raku web templating engines: boost up the parsing performance 
View Raku-Advent-2020.md

Raku web templating engines: boost up the parsing performance

Modern Raku web templating engines

A templating engine basically provides tools for effective metadata interpolation inside static files (templates). At web application runtime, the engine parses and replaces variables with actual content values. Finally client gets a HTML page generated from the template, where all metadata (variables, statements, expressions) has been proceed.

Raku ecosystem has a few modern templating engines: Template::Mojo (last commit on 12 Jun 2017), Template::Mustache (last commit on 25 Jul 2020 — it's alive!), Template6 (last commit on 20 Nov 2020 - active maintenance), Template::Classic (last commit on 11 Apr 2020), [Template

@pheix
pheix / pheix-bigbro.sol
Created Jun 7, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
View pheix-bigbro.sol
pragma solidity ^0.4.21;
contract BigBro {
struct Statistics {
uint id;
string referer;
string ip;
string useragent;
string resolution;
string page;
string country;
@pheix
pheix / pheix-bigbro.sol
Created May 30, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
View pheix-bigbro.sol
pragma solidity ^0.4.21;
contract BigBro {
struct Statistics {
uint id;
string referer;
string ip;
string useragent;
string resolution;
string page;
string country;