Programming 530

Chicken Scheme: Scheme-to-C Compiler

CHICKEN is a compiler for the Scheme programming language. CHICKEN produces portable and efficient C, supports almost all of the R5RS Scheme language standard, and includes many enhancements and extensions. CHICKEN runs on Linux, MacOS X, Windows, and many Unix flavours. http://call-cc.org/ (각 플랫폼 패키지: http://wiki.call-cc.org/platforms) 사용법: csc hello.scm REPL 사용법: csi Scheme 소스 코드를 C 소스 코드로 변환하..

Programming 2013.05.05

(C, Unix) Joinc: select를 이용한 입출력 다중화

http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/system_programing/File/select 1 입출력 다중화 1.1 입출력 다중화 모델 2 select함수로 입출력 다중화 2.1 fd_set 관리 2.2 예제 1 2.3 예제 2 3 관련 글 1 입출력 다중화 1.1 입출력 다중화 모델 입출력과 관련된 함수들은 기본적으로 봉쇄/동기적 으로 작동한다. 봉쇄형은 데이터를 처리하는 직관적인 방식이긴 하지만, 두 개 이상의 파일을 처리할 때 문제가 된다. 하나의 파일에서 봉쇄가 되어 버리면 다른 파일의 데이터는 영원히 읽지 못할 수도 있기 때문이다. 비 봉쇄 방식으로 처리하는 방법도 있으나 일반적으로 비봉쇄 방식은 봉쇄 방식에 비해서 까다로운 프로그래밍 ..

Programming 2013.04.26

C++ 0x : 람다(Lambda)

http://scor7910.tistory.com/55 Visual C++ 팀블로그에 C++0x에 대한 소개 자료중 람다(Lambda)에 관한 내용을 번역했습니다. 차후에 나머지도 번역해서 올리겠습니다. 번역이 만만치 않은 작업이근영.... 원본 : http://blogs.msdn.com/vcblog/archive/2008/10/28/lambdas-auto-and-static-assert-c-0x-features-in-vc10-part-1.aspx Lambdas, auto, and static_assert: C++0x Features in VC10, Part 1 마이크로소프트 비절 스투디오 2010CTP(Community Technology Preview)에서는 C++ 0x에 포함된 lambdas, au..

Programming 2013.04.14