Programming 516

bitmex market maker 처음 실행 시 안 될 때

bitmex market maker (BitMEX/sample-market-maker: Sample BitMEX Market Making Bot (github.com)) 에서 실행했을 때 __on_open() takes 1 positional argument but 2 were given 메시지 나오면서 안 될 때, virtual env 들어가서 pip install websocket-client===0.57.0 하면 해결된다. (참고: on_open() takes 1 positional argument but 2 were given · Issue #16 · bitvavo/python-bitvavo-api (github.com)) > pip install websocket-client===0.57.0 C..

Programming 2021.07.05

git fetch 와 git pull 의 차이

git fetch는 작업중인 파일에 수정을 가하지 않는다. 원격 데이터를 가져오기만 한다. What's the difference between "git fetch" and "git pull"? | Learn Version Control with Git (git-tower.com) What's the difference between "git fetch" and "git pull"? Our learn section helps you get started with various web and software skills. Free online books, videos, and ebooks get you off the ground as quickly as possible. www.git-tower.com

Programming 2021.06.13

비주얼스튜디오, 앱 실행 중에도 소스코드 수정·관리

Lisp의 기능이 여러 언어로 퍼져 나가는구나. 비주얼스튜디오, 앱 실행 중에도 소스코드 수정·관리 - ZDNet korea 마이크로소프트, '닷넷 핫리로드' 비주얼 스튜디오 추가 비주얼스튜디오, 앱 실행 중에도 소스코드 수정·관리 마이크로소프트(MS)가 애플리케이션 중단 없이 실시간으로 소스코드를 수정하고 적용할 수 있는 기능을 선보였다.마이크로소프트는 25일(현지시간) 온라인으로 개최한 연례 개발자... zdnet.co.kr

Programming 2021.05.29

Lisp 계열 언어에서의 mutation 방법에 대한 고찰

Common Lisp에서는 setf macro가 container에 대해 mutation할 때, 매크로로 처리한다. 즉, container에 대한 read 함수와 별개로 write 함수가 구현되어 있어야 한다. (여기서는 rplaca) 예제: * (let ((a (list 1 2))) (setf (nth 0 a) 3) a) (3 2) * (macroexpand '(setf (nth 0 a) 3)) (LET* ((#:LIST (NTHCDR 0 A)) (#:NEW 3)) (SB-KERNEL:%RPLACA #:LIST #:NEW)) Clojure에서는 mutation이 필요한 것은 atom 등으로 되어 있어야 한다. 그래서 container에 대해 read 함수만 있고 특별한 mutation 함수가 없어도 된..

Programming 2021.05.29

F# 파일 하나로 컴파일하기

F# 프로그램을 컴파일할 때, fsc.exe a.fs 또는 스크립트 파일 fsc.exe a.fsx 하면 a.exe 실행파일과 2MB 정도의 FSharp.Core.dll 이 생성된다. fsc.exe --standalone a.fs 하면 .exe 파일 하나로 만들어진다. 그리고 크기도 위 dll 파일을 더한 것보다 작게 나온다. (1.4MB 정도 추가됨) (.NET은 있어야 함) Compiler Options - F# | Microsoft Docs Compiler Options - F# Use F# compiler command-line options to control the compilation of your F# apps and libraries. docs.microsoft.com

Programming 2021.05.19