if type T
is an NSObject
descendant, then it will support these messages:
+ (T *)alloc;
- (T *)init:(T *)self;
- (void)release;
- (T *)retain;
Objects (technically, variables of type T *
where T
is class type) can be either owned or not.
namespace HLC; | |
/// <summary> | |
/// The Hybrid Logical Clock. Contains both Physical Time and Logical Clock inside. | |
/// Grows monotonically, can be used to obtain unique timestamps even if called more often than | |
/// allowed by the physical clock precision. | |
/// | |
/// <see cref="https://cse.buffalo.edu/tech-reports/2014-04.pdf"/> | |
/// </summary> | |
/// <remarks>Single-threaded use only!</remarks> |
if type T
is an NSObject
descendant, then it will support these messages:
+ (T *)alloc;
- (T *)init:(T *)self;
- (void)release;
- (T *)retain;
Objects (technically, variables of type T *
where T
is class type) can be either owned or not.
# this is the GitLab-CI file for building the image | |
variables: | |
CURRENT_IMAGE_TAG: rfid-applied/netcf35_build_environment:dev | |
stages: | |
- dockerize | |
dockerize: | |
stage: dockerize | |
script: |
(* | |
HX-2019-03-26-2: | |
The original code is available at | |
https://gist.github.com/ashalkhakov/c3577e97b20020fde31f84447fd1e056 | |
I turned runCommand into a polymorphic function and | |
also made Command a linear datatype (i.e., dataviewtype) | |
AS-2019-03-26: |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Author: Artyom Shalkhakov (artyom.shalkhakov@gmail.com) | |
License: BSD v3 | |
I've used bits and pieces of other transforms bundled | |
with NORMA for reference, so I'm not the sole author | |
of this. | |
--> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
#!/usr/bin/env sh | |
###### | |
# | |
# A shell script for | |
# installing ATS2 + ATS2-contrib | |
# | |
###### | |
# | |
# Author: Artyom Shalkhakov |
#include | |
"share/atspre_staload.hats" | |
#define N 9 | |
#define M 14 | |
implement main0 () = let | |
fun loop1 | |
{i:nat | i <= N} | |
(i: int i): void = |
Audience: C/C++ programmers.
(* | |
** Hello, world! | |
** run it here: http://www.ats-lang.org/SERVER/MYCODE/Patsoptaas_serve.php?mycode_fil=hello | |
*) | |
(* ****** ****** *) | |
// | |
#define | |
LIBATSCC2JS_targetloc | |
"$PATSHOME\ |
(* | |
** Hello, world! | |
*) | |
(* ****** ****** *) | |
// | |
#define | |
LIBATSCC2JS_targetloc | |
"$PATSHOME\ | |
/contrib/libatscc2js/ATS2-0.3.2" |