| 19 Dec 2009 |
iostream / cstdio 속도 비교minjang 님 블로그 에서 보고 들어갔는데: C++ cout faster than printf WTF? 내생각엔 그냥 저 테스트 한 사람이 printf 할땐 화면 출력해 놓고 cout 할땐 파일 리디렉션 해서 화면 출력에 들어가는 시간이 dominate 해버린 게 아닐까 한다. cout 이 더 빠르다니 이런 닭잡는 소리가 있나. 당연히 redirect 해서 파일 입출력하게 해야 하는 것 아닌가 -_-; 아 놔 이거. |
|
헐퀴 아이리스 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 이런미친시발 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ |
|
| 16 Dec 2009 |
Making scipy.weave parallel by releasing the GILAs everybody knows, the current implementation of CPython is pretty much incapable of doing any serious multithreaded computation, because of the GIL. Python's most current solution to this problem is using separate processes instead of threads - in most of the cases, this actually suffices. A problem I'm trying to solve at work now is embarrassingly parallel. It was natural to try to make use of my quad-core Xeon desktop to decrease my 1-hr runtime down to 15 minutes; however, the programs use inputs from a vast (4+GB) numpy array which is common to all processes. Sending an array of this size through IPC is simply ridiculous. Yes, there are ways to 'share' a single copy of numpy array across processes - but it required me to make drastic changes to the program's structure. I tried numpy.memmap which is essentially an array using memory-mapped files. Single-thread performance was degraded 10x... dude, I was just trying to achieve 3+x speedup. Is this too much??? What I actually ended up doing is writing performance-critical piece of code in C++, using scipy.weave (it basically lets us to inline C++ code in Python, compiling the C++ code as a Python package). Yes, it's not pleasant, but when the C++ code snippet is small, it's doable. Yes, it's not a game-changer - it doesn't allow true multithreading. However: weave is compiled as a C Python module - and they can release the GIL if a macro is used: Py_BEGIN_ALLOW_THREADS. So, simply adding the two macros at the beginning and the end of the inlined code can make it (almost) truly multithreading. |
| 15 Dec 2009 | |
|
대학원 가면 회사에서 학비 reimburse 해주는 제도가 있어서.. 회사 애들이 전부 GRE 보고 파트타임 마스터 따는 게 대세인 것 같길래 나도 한번 통계 석사를 따볼까 심각하게 고민했는데, U of Chicago 통계는 탑스쿨이었구나. orz 미방도 안듣고 통계학 B 인 나 따위를 받아주진 않겠지? orz 매스 섭젝이라도 봐야 되나.. 아.... |
|
| 14 Dec 2009 |
Preparing EC2 Image for AOJAOJ with Amazon EC2 의 연장선에서, 셋업 시도. 다 잘 되고 있는데, 파이썬 인터페이스인 boto 의 최신 버전에서도 아직 stop/resume instance 기능이 지원되지 않는 듯. ec2-api-tools 에서는 이게 지원되는데, 이제 와서 이쪽으로 fall back 해야 하나.. 너무 삽질 같은데... ㅠ.ㅠ 아니면 패치 만들어서 제출해볼까? -_- (update) 소스코드 뒤져서 stop/resume 하는 법 알아냄. Useful linksTutorials linksBoto initial setup walkthrough |
| 12 Dec 2009 |
해리 포터
|
| 11 Dec 2009 |
어느새 테메레르 2권을 읽고 있다. |
앨범커버W&Whale 이 리메이크한 '슬픈 노래는 부르지 않을거야' 를 즐겁게 듣고 있다. 좀 음산하지만.. 그래서 벅스에서 mp3 을 사서 아이폰에 넣었는데 앨범 커버가 .... 앨범 디자인도 조덕배 활동 시기로 맞췄구나? 워드패드로 앨범커버 만들지 마 이놈들아 -_-;;; .... 결국 whale 사진 받아서 커버 대신 집어넣었다. |
|
| 10 Dec 2009 |
한글 제목 feedburner 테스트3아아 마이크 테스트 |
ICML Reading List지난 3년간 프로시딩 목록을 훑으면서, 제목이 무슨 뜻인지 알아들을 수 있는 것만 골랐다. -_-; 집에 있는 학부 교과서부터 다 읽는게 우선인거 같긴 함... ICML 2007
ICML 2008
ICML 2009
Deep Belief Networks (레이어 많은 신경망) 란게 요즘은 열라 핫한거 같은데 어디 가서 공부해야 하나? -_- |
|
Neural NetsReinforcement Learning Lecture on Videolectures 보고 있는데, 강의하는 아저씨가 이런 얘길 한다:
... ML 공부하는 사람들은 다들 신경망에 낚여 오나봐. 원석이형도 신경망 보고 컴퓨터 공부하고 싶단 생각을 했다던데. -_- |
|
|
벅스에서 mp3 사겠다고 오랜만에 익스플로러를 열고 결제를 하려다 보니 한국 인터넷의 현실에 대한 짜증이 다시 보글보글 끓어오른다. 결론: 안심클릭 비번 까먹어서 리셋하려니 공인인증서가 필요 'ㅅ')r 아 놔 ㅠ |
|
| 09 Dec 2009 | |
| 08 Dec 2009 |
A parallelized, customizable, open-source implementation of stochastic gradient descent: Vowpal Wabbit Monty Python 팬들이란.. (한숨) |
|
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
|
|
| 07 Dec 2009 |
주말
그래서 원고 안했단 얘깁니다. |
SRM 454실로 오랜만의 SRM. 첫 자바 매치!!! 두둥!!! 코드를 좀 깔끔하게 짜려는 노력을 하게 되다 보니 (그리고 아직 문법이 100% 익숙하지 않아서 IntelliJ 에 의존해야 하다 보니) 코딩이 많이 느리다. 반복된 연습이 역시 대안이지 싶은데 귀찮아서.. 그래도 둘다 패스했으니 별 불만은 없다. 이지+미디엄에서 시간이 너무 오래 걸려서 하드를 짤 시간이 없어서 결국 포기하고 챌페이즈 진입. 하지만 결국 챌린지 못하고 5x 등. 레이팅은 -7. :-( 그래도 패스패스에 의미를 둬야겠다. 아 그리고 하드도 나중에 결국 풀음. |
|