Anonymous ID: c76628 Oct. 21, 2021, 10:14 p.m. No.14831974   🗄️.is 🔗kun

 

import std/strformat

 

type

Person = object

name: string

age: Natural # Ensures the age is positive

 

let people = [

Person(name: "John", age: 45),

Person(name: "Kate", age: 30)

]

 

for person in people:

# Type-safe string interpolation,

# evaluated at compile time.

echo(fmt"{person.name} is {person.age} years old")

 

# Thanks to Nim's 'iterator' and 'yield' constructs,

# iterators are as easy to write as ordinary

# functions. They are compiled to inline loops.

iterator oddNumbersIdx, T: T =

for x in a:

if x mod 2 == 1:

yield x

 

for odd in oddNumbers([3, 6, 9, 12, 15, 18]):

echo odd

 

# Use Nim's macro system to transform a dense

# data-centric description of x86 instructions

# into lookup tables that are used by

# assemblers and JITs.

import macros, strutils

 

macro toLookupTable(data: static[string]): untyped =

result = newTree(nnkBracket)

for w in data.split(';'):

result.add newLit(w)

 

const

data = "mov;btc;cli;xor"

opcodes = toLookupTable(data)

 

for o in opcodes:

echo o

Anonymous ID: c76628 Oct. 21, 2021, 10:37 p.m. No.14832052   🗄️.is 🔗kun

>>14828740

 

BOOM

boomer

3 US a nuclear submarine with ballistic missiles.

4 a transient construction worker, especially a bridge builder.

 

 

DOOM

Old English dōm ‘statute, judgment,’ of Germanic origin, from a base meaning ‘to put in place’; related to do1.

 

dumm

A Adj.

1 (nicht intelligent) stupid

stupid, thick, dense ‹person›

 

B adv.

1 (ugs.) (töricht) foolishly

stupidly

frag nicht so dumm

don't ask such silly or stupid questions

2 (ugs.) (unangenehm) ‹end› badly or unpleasantly

 

245807-Nov-2018 2:24:08 PM PSTQ !!mG7VJxZNCI8ch/patriotsfight

 

RED LINE ON THE ANNIVERSARY OF RED OCTOBER?

 

NOW WHAT ARE THE ODDS OF THAT?

 

Q