This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- utility module to make the Lua 5.1 standard libraries behave more like Lua 5.2 | |
if _VERSION == "Lua 5.1" then | |
local _type, _select, _unpack, _error = type, select, unpack, error | |
bit32 = require("bit32") | |
-- detect LuaJIT (including LUAJIT_ENABLE_LUA52COMPAT compilation flag) | |
local is_luajit = false and (string.dump(function() end) or ""):sub(1, 3) == "\027LJ" -- string.dump in Algernon dies, so don't call it | |
local is_luajit52 = is_luajit and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local assert = _tl_compat and _tl_compat.assert or assert; local io = _tl_compat and _tl_compat.io or io; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local load = _tl_compat and _tl_compat.load or load; local math = _tl_compat and _tl_compat.math or math; local os = _tl_compat and _tl_compat.os or os; local package = _tl_compat and _tl_compat.package or package; local pairs = _tl_compat and _tl_compat.pairs or pairs; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local _tl_table_unpack = unpack or table.unpack | |
local VERSION = "0.13.1+dev" | |
local tl = {TypeCheckOptions = {}, Env = {}, Symbol = {}, Result = {}, Error = {}, TypeInfo = {}, TypeReport = {}, TypeReportEnv = {}, } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from SublimeLinter.lint import Linter, LintMatch | |
import re | |
class TealLinter(Linter): | |
cmd = 'tl check ${file} ${args}' | |
defaults = { | |
'selector': 'source.lua, source.teal' | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Teal</string> | |
<key>fileTypes</key> | |
<array> | |
<string>tl</string> | |
</array> |
Some thoughts on a server.
Use Jet to generate a typesafe DSL for your database and compile it ahead of time, then write Yaegi-interpreted scripts that use this DSL. Gives you editor support (code completion, linting) with fast iteration and theoretically high performance since most of the work is done in compiled Go.
- Datepicker: https://flatpickr.js.org/
This is my list of the best Go packages I have found. They're not always the top search results.
- Worker pool: https://github.com/alitto/pond
- File watcher: https://github.com/cortesi/modd
- Errors: https://github.com/cockroachdb/errors
NewerOlder