- Author: Karoy Lorentey
- Version: 2020-04-13/1
- Document URL: https://gist.github.com/lorentey/cf8703b5974ebe8f85cfb92a6628880d
- Forum Thread: https://forums.swift.org/t/low-level-atomic-operations/34683
- Implementation:
- [swiftlang/swift#30553][implementation] (Atomic operations)
- [swiftlang/swift#26969][constantPR] (Constant-constrained ordering arguments)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX | |
# | |
# WIP research. (This was edited to add more info after someone posted it to | |
# Hacker News. Click "Revisions" to see full changes.) | |
# | |
# Copyright (c) 2020 dougallj | |
# Based on Python port of VMX intrinsics plugin: | |
# Copyright (c) 2019 w4kfu - Synacktiv |
Just a quick brain dump of "first steps" to move Swift/C++ interoperability forward. While there are many big and interesting design questions for a good interoperability story, there are also a large number of implementation tasks that can proceed independently of those design discussions (and often in parallel). This list focuses on those implementation tasks:
- (DONE) Add a flag
-enable-cxx-interop
to the frontend, and have it enable (Objective-)C++ mode in the Clang importer. - Add a lit configuration flag to enable
-enable-cxx-interop
for the full Swift testsuite and fix all of the issues that prevent (Objective-)C code from being imported correctly when it's compiled as C++. The testsuite will likely need a lot ofextern "C"
annotations throughout it's headers---those fixes can be committed to the testsuite behind appropriate #ifdefs. - Import C++ namespaces as Swift enums that have no cases (so-called "uninhabited enums") so the C++ lexical struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// macOS x86_64 syscall works as follows: | |
// Syscall id is moved into rax | |
// 1st argument is moved into rdi | |
// 2nd argument is moved into rsi | |
// 3rd argument is moved into rdx | |
// ... plus some more | |
// Return value is stored in rax (where we put syscall value) | |
// Mac syscall enum that contains the value to correctly call it | |
enum Syscall: Int { |
Author: Chris Lattner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fly-components/addon/components/fly-panel.js | |
import Ember from 'ember'; | |
import layout from '../templates/components/fly-panel'; | |
export default Ember.Component.extend({ | |
tagName: 'div', | |
classNames: ['fly-panel'], | |
layout: layout, | |
header: null, | |
subHeader: null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Components :: Panels | |
// Panels | |
// | |
// Panels are one the more versatile component within the Fly framework. They are used to provide visual sectioning for content. Panels provid a subtle border, and content placed within a ``.fly-panel-body`` is provided with padding. | |
// | |
// Styleguide 3.25 | |
// Basic Panel | |
// |
-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Plain JSBin's
-
Ember Version Base JSBin's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
NewerOlder