As configured in my dotfiles.
start new:
tmux
start new with session name:
#lang racket | |
(require parser-tools/lex | |
(prefix-in re- parser-tools/lex-sre) | |
parser-tools/yacc) | |
(provide (all-defined-out)) | |
(define-tokens a (NUM VAR)) | |
(define-empty-tokens b (+ - EOF LET IN)) | |
(define-lex-trans number | |
(syntax-rules () |
As configured in my dotfiles.
start new:
tmux
start new with session name:
原文 Assembler / なぜx86ではMBRが"0x7C00"にロードされるのか?(完全版)
感謝 descent 大大分享本文,隨便看隨便譯。本文不是逐句譯,同時也不是這方面的專家 (不管是語言或技術),用語不一或缺漏錯誤在所難免,歡迎自行 fork 修正指教
誰適合看本文?
對 x86 架構與組合語言有基礎認識,以及從 MBR 到載入 OS 這一段過程有興趣的人 (還有談到中斷向量或 INT xxx 時不會一臉茫然的人)
module Lexer | |
( Token(..) | |
, TokenPos | |
, tokenize | |
) where | |
import Text.ParserCombinators.Parsec hiding (token, tokens) | |
import Control.Applicative ((<*), (*>), (<$>), (<*>)) | |
data Token = Ide String |
// This package implements 128-bit ("double double") floating point using | |
// a pair of 64-bit hardware floating point values and standard hardware | |
// floating point operations. It is based directly on libqd by Yozo Hida, | |
// Xiaoye S. Li, David H. Bailey, Yves Renard and E. Jason Riedy. Source: | |
// http://crd.lbl.gov/~dhbailey/mpdist/qd-2.3.13.tar.gz | |
package float128 | |
import ( | |
"errors" | |
"fmt" |
##TCP FLAGS## | |
Unskilled Attackers Pester Real Security Folks | |
============================================== | |
TCPDUMP FLAGS | |
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere) | |
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere) | |
Pester = PSH = [P] (Push Data) | |
Real = RST = [R] (Reset Connection) | |
Security = SYN = [S] (Start Connection) |
func ip2int(ip net.IP) uint32 { | |
if len(ip) == 16 { | |
return binary.BigEndian.Uint32(ip[12:16]) | |
} | |
return binary.BigEndian.Uint32(ip) | |
} | |
func int2ip(nn uint32) net.IP { | |
ip := make(net.IP, 4) | |
binary.BigEndian.PutUint32(ip, nn) |
As for now (mid 2016), there doesn't seem to be a C/C++ package manager that stands out of the crowd. To understand the reasons behind this failure, I will try to list in this README most C/C++ package managers, highlight differences between them, then list critics that are made about them.
Note: this README is merely a gathering of personnal notes, doesn't intend to be a reference in any way.
A standard proposal : http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0235r0.pdf
An indentation sensitive parser combinator language is one that helps you express
ideas like "this parse only succeeds if it's within the current indentation block".
The concept is somewhat small and elegant and is implemented in a few libraries. In
this writeup, I will use examples from indents
.
The direct goal will be to write the sameOrIndented
parser combinator with a type