Skip to content

Instantly share code, notes, and snippets.

View piot's full-sized avatar

Peter Bjorklund piot

  • Gothenburg, Sweden
  • 13:11 (UTC +02:00)
View GitHub Profile

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@piot
piot / programming_language_criteria.md
Last active October 15, 2023 17:54
Programming Language Criteria

Programming Language Criteria

  1. Strongly Safely Typed with an extensive type system. (e.g. enums with different kind of arguments).
    • If it passed compilation, it should run without runtime errors
    • Strongly typed increases chance that you catch bugs early and makes it easier to do refactorings.
  2. Functional and Procedural programming support. Preferably no OOP at all.
  3. No garbage collection. Nothing should happen that is not part of my code.
  4. Not using a virtual machine or runtime or similar. The executable should be able to run without any supporting files or installs.
  5. Performance. No extra runtime cost in speed or memory for the language abstractions.
  6. Memory safety. No wild or dangling pointers, no array or buffer overflows, no memory overwrites. Should have references and no concept
@piot
piot / Tornado.cmake
Last active July 10, 2023 19:33
CMake Generator files
# Copyright (c) Peter Bjorklund. All rights reserved.
macro(set_local_and_parent NAME VALUE)
set(${NAME} ${VALUE})
set(${NAME}
${VALUE}
PARENT_SCOPE)
endmacro()
function(set_tornado targetName)