Better HN
topnewbestaskshowjobs
Log inSign up

mmcloughlin

644 karma · joined Jul 6, 2017 (9y ago) · 48 submissions

Submissions

1.

Intel previews future instruction-set documentaton(intel.github.io ↗)

17 points · by mmcloughlin · 3mo ago · 1 comment

2.

Crosslink – Persistent Memory for Human-Agent Development(forecast.bio ↗)

5 points · by mmcloughlin · 8mo ago · discuss

3.

Scaling Instruction-Selection Verification Against Authoritative ISA Semantics(doi.org ↗)

3 points · by mmcloughlin · 1y ago · discuss

4.

Verus: Verified Rust for low-level systems code(github.com ↗)

158 points · by mmcloughlin · 1y ago · 48 comments

5.

Hwwasm: Experiment in Hardware Intrinsics for WebAssembly(github.com ↗)

2 points · by mmcloughlin · 1y ago · discuss

comment 2y ago · link · parent

Perhaps there is some evidence that people do get excited about free school lunches: Governor Tim Walz’s lunch policy in Minnesota has been a part of the buzz surrounding his recent Vice Presidential nomination.

https://www.cnbc.com/2024/08/19/universal-free-school-lunche...

7.

3 Professional Regrets from My PhD(jameslarisch.com ↗)

2 points · by mmcloughlin · 2y ago · discuss

8.

Geomys, a blueprint for a sustainable open-source maintenance firm(words.filippo.io ↗)

204 points · by mmcloughlin · 2y ago · 18 comments

9.

Tiny Tensor Compiler(intel.github.io ↗)

1 points · by mmcloughlin · 2y ago · discuss

10.

Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization(arxiv.org ↗)

2 points · by mmcloughlin · 2y ago · discuss

11.

Ground-Up AArch64 (2021)(binary.ninja ↗)

2 points · by mmcloughlin · 4y ago · discuss

comment 4y ago · link · parent

For me, Naltrexone was an incredible help in reducing cravings in the first few months. I came off it after around six months and no longer need it, though I think many people take it for much longer and there's not much downside to doing so.

I avoided AA due to the quasi-religious aspect, but Smart Recovery meetings helped me in the initial phase (https://www.smartrecovery.org).

I was always concerned about the longer term aspect of replacing alcohol in social settings, and there is still some awkwardness there but non-alcoholic beers have really helped for me. The scene has exploded in recent years and they're really quite good, see Athletic Brewing for some excellent craft non-alcoholic beers (https://athleticbrewing.com). In a social setting you could be drinking one and nobody would have to know. I don't hide it but I'm still glad to have something "special" to drink at an occasion. And I drink them alone too: they fill that role of something to drink when I want to relax, and I enjoy that placebo effect.

13.

Show HN: Profile: Simple Profiling for Go(github.com ↗)

4 points · by mmcloughlin · 5y ago · discuss

14.

Show HN: Cryptographic Addition Chain Generation in Go(github.com ↗)

10 points · by mmcloughlin · 6y ago · discuss

15.

It’s OK for your open source library to be a bit shitty (2015)(drmaciver.com ↗)

650 points · by mmcloughlin · 6y ago · 345 comments

16.

Fun with branch misprediction in LLVM test-suite 7zip benchmark(sujankh.github.io ↗)

1 points · by mmcloughlin · 6y ago · discuss

17.

Show HN: Mathfmt: Document mathematical Go code beautifully(github.com ↗)

3 points · by mmcloughlin · 6y ago · discuss

18.

Mathfmt: Document mathematical Go code beautifully(github.com ↗)

1 points · by mmcloughlin · 6y ago · discuss

19.

Grep from First Principles, in Golang(willdemaine.ghost.io ↗)

2 points · by mmcloughlin · 7y ago · discuss

20.

Go on not so small hardware(embeddedgo.github.io ↗)

2 points · by mmcloughlin · 7y ago · discuss

comment 7y ago · link · parent

Great project and write-up. I'm reminded of a couple other projects.

MC Hammer project for LLVM tests round-trip properties of the ARM assembler. http://llvm.org/devmtg/2012-04-12/Slides/Richard_Barton.pdf

Sandsifter x86 fuzzer. https://github.com/xoreaxeaxeax/sandsifter https://youtu.be/KrksBdWcZgQ

22.

Show HN: Reveal code line-by-line in LaTeX presentations(github.com ↗)

1 points · by mmcloughlin · 7y ago · discuss

comment 7y ago · link · parent

I implemented something like this in Python for my LaTeX/beamer presentation recently. For example, see this and the following slides:

https://speakerdeck.com/mmcloughlin/better-x86-assembly-gene...

The sample code is in a file with special comments at the end of each line specifying which slide numbers it should be revealed on as well as inline commentary to show to the right of the line. Syntax highlighting is provided by Pygments.

I was thinking about open sourcing it, it's actually only approx 200 lines of Python but I think it's quite effective.

24.

Show HN: Fuzzing Go Crypto(github.com ↗)

2 points · by mmcloughlin · 7y ago · discuss

comment 7y ago · link · parent

Oh cool, thanks for sharing that talk. I might try to submit an avo talk to a meetup, if anyone will have me :)

comment 7y ago · link · parent

Only a small number of instructions in Go assembly are architecture neutral.

avo currently implements the x86 subset of Go assembler. It's definitely possible to add support for additional architectures, but it may be a fairly significant project.

comment 7y ago · link · parent

Thanks :)

> Any chance of ARM/ARM64 support?

Yes multi-architecture support is definitely something I've had in mind. However I wanted to limit the scope for the initial version, so I could produce a result in a reasonable time and allow me to gauge interest.

> It would be super useful if you could generate the code to memory then execute it directly.

avo was inspired by PeachPy and asmjit, both of which can produce executable code directly. So implementing an assembler in avo is something I have had in the back of my mind. However it wasn't one of my primary goals.

The use case I initially had in mind is massively unrolled crypto routines, where there's a lot of assembly code required but not much going on conceptually. My AES-CTR mode CL (https://go-review.googlesource.com/c/go/+/136896) and meow hash port (https://github.com/mmcloughlin/meow) got me thinking in this direction.

comment 7y ago · link · parent

Yes! This tripped me up at one point. My comment says "Otherwise we could be in the bizarre special-case of 3-argument CMP instructions."

https://github.com/mmcloughlin/avo/blob/0e253b3753beb409b3dd...

It gets to the point where the only source of truth is the Go assembler itself. My test suite takes the avo instruction database and generates a massive assembly file with one line per instruction form, then passes this to `go tool asm`.

12