'C++0x'에 해당되는 글 19건
- 2010/07/03 My Recent Tweets 20100623 (1)
- 2010/06/10 My Recent Tweets 20100604
- 2009/11/24 My Recent Tweets 20091120
- 2009/10/20 차세대 게임개발 언어로 D에 주목하는 이유 - 2 (6)
- 2009/10/01 My Recent Tweets 20090928
- 2009/09/19 차세대 게임개발 언어로 D에 주목하는 이유 - 1 (10)
- 2009/08/26 My Recent Tweets 20090826
- 2009/08/07 잘 알려지지 않은 C++0x의 유용한 기능들 - 마지막 (2)
- 2009/07/29 잘 알려지지 않은 C++0x의 유용한 기능들 - 두번째 (2)
- 2009/07/27 My Recent Tweets 20090727
- My Recent Tweets 20100623
Tweet
- Tweets
- 2010/07/03 01:51
- ActorCore, Ambient Occlusion, C++0x, Final Fantasy XIV, Forrst, Gamefest 2010, git, google c++ testing framework, haskell, Instance Cloud Reduction, IO, Kanban, Manycore, MLAA, nosql, NPR, Order Independent Transparency, Pair Programming, parallel pattern, programming cheatsheets, random distribution, RValue Reference, shadow mapping, SSAO, The D Programming Language, Tim Sweeney, Visual Studio Tips, wwdc10, xp2010
-
프로그래밍programming
- RT ibm_dw_kr: 작고 아름다운 언어 Io, Part 3: 데이터와 코드가 한 몸 되어 https://www.ibm.com/developerworks/kr/library/20100615/index.html #dev #
- RT rickasaurus: Manuel Simoni's Letter to a Young Programming Language Enthusiast http://axisofeval.blogspot.com/2010/06/letter-to-young-pl-enthusiast.html #dev #
- 젊은 프로그래밍 언어 팬보이에게 보내는 편지...
- RT stroughtonsmith: The WWDC10 session videos are now available! Fast! Well done jurewitz and team #dev #
- WWDC10 세션 비디오들이 무료로 공개되었군요.
- RT ch9: Sara Ford's 101 Visual Studio Tips in 55 Minutes Challenge http://bit.ly/bY63wy #dev #
- 아직 저도 못봤지만; Visual Studio Tips의 저자이니만큼 유용한 내용이 많을듯.
- RT TonyAlbrecht: "int m = 1<< (30 - __cntlzw(n))" does the trick. There's nothing better to make you think for yourself than to ask.. #dev #
- RT rickasaurus: From StackOverflow: What is your longest-held programming assumption that turned out 2 b incorrect? http://is.gd/cQCAP #dev #
- 스택오버플로의 또다른 흥미로운 질답
- RT WalterBright: #d_lang Andrei Alexandrescu's book The D Programming Language is now shipping! http://tinyurl.com/3x5ao3b #dev #
- 드디어 나오는군요.
- RT rickasaurus: RT Sadache: RT reddit_haskell: First-Class Concurrency in Haskell http://bit.ly/d91fUI #dev #
- RT bionicbeagle: Uhm... step away from the compiler, please! C++ is wonderful :P http://bit.ly/d31UVw #dev #
- Castor : http://mpprogramming.com/Cpp/Default.aspx Logic paradigm for C++ #dev #
- Adobe Source Libraries: peer-reviewed and portable C++ source libraries intended to be widely usef... http://stlab.adobe.com/index.html #dev #
- RT looselytyped: Git Reference - http://gitref.org/ - by the github team. Great resource by people who really understand Git. #git #dev #
- hginit에 대항하는(사실 대항한다고 보는건 어려운게, 전자는 튜토리얼 성격, 후자는 레퍼런스 성격입니다만) Git 참고서 사이트
- RT ibm_dw_kr: Google #C++ #testing #framework에 대한 간단한 소개 https://www.ibm.com/developerworks/kr/library/au-googletestingframework.html #dev #
- quicklycode - Cheat sheets and programming stuff: http://www.quicklycode.com/ #dev #
- 프로그래밍 관련 컨닝 페이퍼 모음 사이트
- C++ Rvalue References Explained http://thbecker.net/articles/rvalue_references/section_01.html #dev #
- C++0x의 rvalue 참조에 대해 잘 설명해놓았습니다.
- RT aycangulez: Reinvent the wheel often http://bit.ly/c7UK9b #dev #
- 흔히 바퀴를 다시 발명하는 짓은 하지마라라고 합니다만... 그 역에도 중요한 진실이 숨어있는듯.
- RT VSTS2010: Visual Studio 2010 Feature Packs 입니다. VS2010이 일부 MEF 기반으로 설계되면서 멋진 확장 기능들이 홍수 처럼 쏟아지네요^^ http://bit.ly/aF2Vsm #dev #
- RT RonJeffries: RT josephpelrine: pair programming simply explained. i love it. http://bit.ly/9rM4mb [me too] #dev #
- ㅎㅎ;
- RT codemonkeyism: RT devpg: RT roidrage: Slides for my NoSQL talk at #berlinbuzzwords: http://roidi.us/BfjC ... #dev #
- NoSQL에 대한 슬라이드
- RT xiles: 국내 소프트웨어 개발사/개발자 사이트 모음: http://www.kippler.com/doc/software_developer/#dev #
- RT VSTS2010: [ #vs2010korea ]Asynchronous Agents Library - agent. 1 ( 상태 ) http://durl.me/mrjp #dev #
방법론methodology
- RT martinfowler: Some advice on setting up a team room for agile projects: http://martinfowler.com/bliki/TeamRoom.html #methodology #
- 애자일 프로젝트를 위한 팀룸 셋업에 관한 마틴파울러의 조언
- RT LeanKitKanban: RT paul_boos: My #prezi of Mindmapping + Personal Kanban: http://bit.ly/bKSPCA works best if discussed #methodology #
- 마인드맵과 개인 칸반보드를 활용한 생상선 향상에 관한 Prezi 슬라이드
- RT michaelkeeling: Video of talks from #xp2010 - keynotes, great introductions to craftsmanship, lean, .. http://bit.ly/bffZCZ #methodology #
- xp2010 강연 동영상들. 볼 건 정말 많군요...
- RT LeanKitKanban: RT dennisstevens: Just Posted: Kanban and When Will This Be Done? http://bit.ly/ca4ISf #kanban #pmot #baot #methodology #
- 칸반을 활용한 일정 추정에 대한 좋은 글
그래픽스graphics
- RT nvidiadeveloper: Texture Tools 2.08 now available for download http://bit.ly/bY39kW #graphics #
- 엔비디아 텍스처 도구가 더욱 강력하게 업데이트 되었군요.
- RT aqnuep: OpenGL 3.2 Nature Demo updated: http://is.gd/cWzPJ #graphics #
- Instance Cloud Reduction이라고 저자가 자칭하는 GPU 기반 인스턴스 컬링 기법
- RT morgan3d: Detailed Microsoft presentation on current Shadow Mapping best practices http://bit.ly/arY2H3 #graphics #
- Gamefest 2010에서 발표된 슬라이드로 최신 그림자 맵팅 기법들을 잘 정리해서 설명해줍니다.
- RT repi: RT tuan_kuranes: Graphics Trick: Distributing stuff http://bit.ly/bauPah #graphics #
- 이미지의 효과적인 샘플링에 필수적인 표본 분포 기법을 잘 정리해놓은 블로그글
- RT repi: RT SemiAccurate: part 2 Andrew Richards and Tim Sweeney http://bit.ly/9STCj0 #graphics #
- 그래픽스 하드웨어의 미래에 대한 두 전문가의 대담. 구린 음질로 알아듣기가 상당히 힘들군요...
- RT CDemerjian: Part 1: http://www.semiaccurate.com/2010/06/14/tim-sweeney-and-andrew-richards-debate-future-graphics-hardware/ #graphics #
- 위 대담의 첫번째 동영상. 방금 확인해보니 다섯번째까지 나왔더군요.
- RT jgkim999: Geeks3D.com - DirectX 11: Microsoft GameFest 2010 Presentations Download Links http://bit.ly/cYlQNh #graphics #
- 기타 GameFest 2010 강연자료를 받을 수 있는 곳
- RT morgan3d: New algorithm for dashed & other stylized 3D lines that doesn't cause swimming under animation: http://bit.ly/aITRph #graphics #
- 비실사적 렌더링 관련 논문
- RT repi: Texture Compression of Light Maps using Smooth Profile Functions paper http://goo.gl/xtTc uses test content from Mirr... #graphics #
- 조명맵의 압축에 관한 최신 논문
- Fast and Accurate Single-Pass A-Buffer using OpenGL 4.0: http://bit.ly/bpu04x #graphics #
- OIP(Order Independent Transparency)를 위한 OpenGL 4.0 기반의 '단일 패스' A-Buffer 기법
- RT ChristinaCoffin: RT ivanassen: MLAA on the GPU: http://bit.ly/bdVeil #rendering #graphics #
- 최근 각광을 받고 있는 안티알리아싱 기법인 MLAA의 GPU 구현에 관한 논문
- RT repi: Nvidia Parallel Nsight June 2010 Beta out: supports DX11, shader debugging, frame profiling/debu... http://bit.ly/90pL0J #graphics #
- 유용해보이는 엔비디아의 또다른 디버깅 및 프로파일링 도구
- RT meshula: Updated my old page on SSAO shading with more recent information and links. (fixed link :) #fb http://bit.ly/d74K2u #graphics #
- SSAO 기법에 다양한 변종들에 관한 깔끔한 정리
- RT meshula: RT @_osa_: Two Methods for Fast Ray-Cast Ambient Occlusion: http://www.tml.tkk.fi/~samuli/ (via syoyo mattpharr) :) #graphics #
- 유로그래픽스 2010에 실린 Ambient Occlusion에 관한 논문
병렬성parallelism
- RT SoftTalkBlog: Experimenting with Intel Concurrent Collections for Haskell http://bit.ly/bZlTbi #parallelism #programming #
- 인텔의 해스켈용 CnC 라이브러리의 실험 결과
- RT IntelDevTools New blog post by michaelmccool analyzing the most troublesome parallel pattern: scatter http://bit.ly/armsyi #parallelism #
- 병렬 패턴 중 scatter에 관한 글
- RT syoyo: SPAP: A Programming Language for Heterogeneous Many-Core Systems: http://www.kunzhou.net/2010/SPAP-TR.pdf #parallelism #
- 이종결합 many-core 시스템을 위한 프로그래밍 언어에 관한 논문
- RT bjoernknafla: Great rant by C. Bloom how to write parallel code: http://j.mp/d48UD6 #parallelism #
- 병렬 코드 작성에 관한 훌륭한 조언
- RT codaset: Just released first revision of ActorCore, a concurrency library for C. http://codaset.com/jer/actorcore #parallelism #
- C용 액터모델 기반 병렬 라이브러리
게임개발gamedev
- RT SnappyTouch: RT mysterycoconut New blog post "Levels" http://bit.ly/cNO2Bf, in which I manage to not explain a thing about H.. #gamedev #
- 한 인디게임개발자의 게임개발에 관한 실용적 조언
- RT morgan3d: Board/Video gaming blog from new developer, 10x10 Room, with inside details of their design ... http://10x10room.com/ #gamedev #
- 신생 비디오/보드 게임개발사 블로그
- RT repi: RT NVIDIAGeForce: Download the Final Fantasy XIV Online Benchmark here:http://bit.ly/aIOl8I #gamedev #
- 얼마 전 E3에서 공개된 파이널판타지 XIV 온라인 벤치마크 다운로드 링크
- RT jacking75: DirectX SDK (June 2010) 공개. VS2005 지원안함, VS2010은 수동으로 등록 필요. SDK의 DirectSetup WinXP SP2 지원안함 http://bit.ly/a34LGH #gamedev #
- RT young_writing "Oh my God! What do we do? Better do nothing." Gamasutra - StarCraft II: Building On The Beta http://goo.gl/X7DR #gamedev #
- 블리자드의 스타크래프트 2 베타 테스트에 대한 유용한 인터뷰
- RT SnappyTouch: Interested in contributing to Game Engine Gems 2? Submit your proposal here: http://bit.ly/bitUrS #gamedev #
- 책 Game Engine Gems 2 글 기고 신청을 받고있군요.
기타etc
- Forrst: Microblogging for Designers and Developers: http://mashable.com/2010/06/19/forrst/ #
- 개발자 및 디자이너를 위한 마이크로블로깅 서비스. 저도 드디어 초대를 받아 사용중....
- RT RatRaceTrap: "The question is not 'Is there life after death?' The question is, 'Is there life before death?'" -- Alan Cohen #quote #
- Top 10 Beautiful Minimalist Icon Sets: http://mashable.com/2010/06/17/minimalist-icon-sets/ #
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Tweets' 카테고리의 다른 글
| My Recent Tweets 20100623 (1) | 2010/07/03 |
|---|---|
| My Recent Tweets 20100604 (0) | 2010/06/10 |
| My Recent Tweets 20100226 (0) | 2010/03/02 |
| My Recent Tweets 20100208 (0) | 2010/02/10 |
| My Recent Tweets 20100118 (0) | 2010/01/19 |
| My Recent Tweets 20100104 (0) | 2010/01/05 |
- My Recent Tweets 20100604
Tweet
- Tweets
- 2010/06/10 06:32
- Asynchronous Agents Library, Bump Mapping, C++ template metaprogramming, C++0x, data oriented design, Depth of Field, EDRAM, GLSL, haskell, HDR, HLSL, Larrabee, Lean, monad, navigation mesh, NDC, nosql, parallel progarmming, Python, Regular Expression, screen space in-scattering, Scrum, Sculptris, SIGGRAPH 2010, Unit test
-
프로그래밍programming
- RT unclebobmartin: WTF is a Monad presentation now uploaded at: http://bit.ly/aBMIaL Have fun. #dev #
- RT daniel_collin: RT Keyframe: oh google IO videos have been posted http://bit.ly/5N5iHO #dev #
- 구글 IO 강연 영상들이 공개되었습니다.
- RT VSTS2010: [ #vs2010korea ][Plus C++0x] 람다(Lambda) 이야기 (마지막회) http://durl.me/mdrh #dev #
- RT aDevilInMe: "CPU Caches and Why You Care" Scott Meyers. #pdf http://bit.ly/dvC9Pj #dev #
- 캐시가 성능에 미치는 영향에 관한 좋은 자료
- Open Source Bridge Talk: Multicore Haskell Now http://donsbot.wordpress.com/2010/06/01/open-source-bridge-talk-multicore-haskell-now/ #dev #
- 해스켈의 병렬 지원에 관한 슬라이드
- RT rickasaurus: Grokking Functional Data Structures (great post) http://is.gd/cyeSz #fsharp #dev #
- 함수형 자료 구조에 관한 소개글
- RT VSTS2010: [ #vs2010korea ][Plus C++0x] 람다(Lambda) 이야기 (3) http://durl.me/m23w #dev #
- RT codemonkeyism: #myNoSQL is a very useful service http://bit.ly/cCezeB #dev #
- 데이타베이스계의 새바람 NoSQL 관련 소식을 모아 전해주는 사이트
- RT sigfpe: Constructing Intermediate Values http://bit.ly/a785oI #dev #
- 어렵네요;
- RT VSTS2010: [ #vs2010korea ]Asynchronous Agents Library 소개 http://durl.me/kke7 #dev #
- VS 2010과 함께 등장한 네이티브용 병렬 라이브러리 중 하나인 AAL에 관한 소개글
- RT javawork: http://goo.gl/bUcU - 오픈소스 라이센스의 유형별로 잘 정리되어 있네요. 라이센스 별로 클릭하면 자세한 설명 페이지도 있습니다. #dev #
- RT esstory: [예약도서] Blog2Book, 프로그래머가 몰랐던 멀티코어 CPU 이야기 http://shar.es/mjYQ3 - 김민장님이 책을 냈네요. 이건 무조건 사야해 #dev #
- 기대됩니다.
- RT rickasaurus: Learn Python The Hard Way http://is.gd/coXRH /via loufranco #dev #
- 또하나의 파이썬 학습 자료
- RT rickasaurus: The Computer Language Benchmarks Game http://is.gd/coBR8 #dev #
- 재미삼아 볼만한 프로그래밍 언어 벤치마크 자료
- RT rickasaurus: MetaFun: Compile Haskell-like code to C++ template metaprograms http://bit.ly/anL3lT #dev #
- C++ 템플릿 메타프로그래밍은 함수형 언어와 매우 유사한 코딩 환경을 제공합니다. 한 친구가 해스켈로 코딩하면 자동으로 C++ 템플릿 메타프로그램으로 변환해주는 도구를 만들었군요!
- RT rickasaurus: Advanced programming languages http://is.gd/cnaMc /via @_Rahul_G_ #dev #
- 본업에서 쓰이는 언어 이외에 통찰을 얻기 위해 공부해볼만한 프로그래밍 언어들 소개
- RT ibm_dw_kr: 작고 아름다운 언어 #Io, Part 2: 프로토타입 기반 객체 지향 프로그래밍 http://bit.ly/cdVjXD #dev #
- RT meshula: An interesting article on a C++ channel communication system. http://bit.ly/9qiT2I #dev #
- 채널 기반 C++ 메시징 시스템. 병렬처리를 위한 한가지 대안이 될 수 있을듯.
- RT rickasaurus: What are your favorite programming-related academic papers? http://is.gd/cjhND #dev #
- 주옥같은 논문들이 많이 언급되어 있군요.
- RT ShinNoNoir: "Regular expression engine in 14 lines of Python" by redditor psykotic http://bit.ly/aNy3Qo #dev #
- 14줄의 파이썬 코드로 이루어진 정규표현식 엔진
방법론methodology
- RT PsychodudeCom: Looking Back at Lean - 6 lessons for winning: http://bit.ly/auckGg #methodology #
- 린 철학에 대한 깔끔한 정리
- RT codemonkeyism: Worth thinking about: Defensive Scrum Anti Pattern http://bit.ly/9cNfCM #methodology #
- 스크럼을 방어용으로 잘못 활용하는 예들
- RT afterwise: It's ok not to write unit tests; http://bit.ly/bX9U7a #methodology #
- 단위테스트에 대한 맹신에 일침을 가하는 글
그래픽스graphics
- RT morgan3d: I released the details of the colored transparent shadow work I did a t NVIDIA: http://bit.ly/cgJ973 #graphics #
- 유색 그림자 기법에 관한 최신 글
- RT msinilo: Humus on EDRAM: http://www.humus.name/index.php?ID=309 (good rant) #graphics #
- Xbox360에 쓰여 유명한 EDRAM에 관한 의견
- RT meshula: Screen space in-scattering demo. #fb http://bit.ly/ajPBP9 #graphics #
- 화면 공간 in-scattering 기법 GL 데모
- RT aras_p: Bump Mapping Unparametrized Surfaces on the GPU: http://bit.ly/9N3XiE #graphics #
- 게임개발사 너티독의 개발자가 쓴 범프맵핑 기법에 관한 논문
- Why Intel Larrabee Really Stumbled: Developer Analysis: http://goo.gl/YLY2 #graphics #
- 최근 취소된 인텔 라라비에 대한 분석
- RT meshula: Good looking DOF and HDR effect using DX11 features. #fb http://bit.ly/cHtMlq #graphics #
- DX11 기능을 이용한 피사계 심도 및 HDR 효과 데모
- RT tatsuma_mu: SIGGRAPH 2010 : Technical Papers Trailer http://bit.ly/ad8EiN #graphics #
- 시그래프 2010 기술논문 트레일러
- RT meshula: Ray-Box Intersection algo v/ tuan kuranes http://bit.ly/avgUGU #graphics #
- 광선추적렌더링에 필수적인 광선-상자 교차 검출 알고리즘에 관한 논문
- RT aras_p: New blog post: Compiling HLSL into GLSL in 2010 http://bit.ly/amFH2c #graphics #
- HLSL을 GLSL로 컴파일하기
병렬성parallelism
- RT a_williams: RT mfeathers: The resurgence of parallelism (interesting discussion of determinacy): http://bit.ly/civUkr #parallelism #
- 새롭게 각광 받는 병렬성에 관한 CACM 글
- RT IntelDevTools: Dr_Dobbs: A Design Pattern Language for Engineering (Parallel) Software http://bit.ly/c8fymF #parallelism #
- 병렬 소프트웨어 개발을 위한 패턴 언어
- RT IntelDevTools: Announcing Intel Concurrent Collections for Haskell 0.1 http://bit.ly/aqXw2C #parallelism #
- 인텔에서 개발한 해스켈용 병렬 컬렉션 라이브러리
- RT a_williams: My latest article on enforcing associations between mutexes and data is now up at http://bit.ly/d6IcnP #parallelism #
- 뮤텍스와 그가 보호하는 데이터 간의 연동을 강제하는 기법에 관한 글
- RT IntelDevTools: “Structured Parallel Programming with Deterministic Patterns” http://bit.ly/cxGrHk #parallelism #
- 역시 패턴 기반의 병렬 프로그래밍에 관한 인텔 글
게임개발gamedev
- RT bjoernknafla: RT niklasfrykholm: New blog post: "Avoiding Content Locks and Conflicts" -- http://bitsquid.blogspot.com/ #gamedev #
- 게임에서 XML이나 JSON 기반의 컨텐츠의 충돌 처리 및 병합에 관한 글
- RT rigmania: NDC 후기입니다. 아직 몇 개 남았지만 여기까지 정리해서 올립니다. 이제 제 블로그도 원래 취지에 맞게 걸그룹 소식을 올리도록 하... http://parkpd.egloos.com/tag/NDC #NDC_10 #gamedev #
- RT repi: "How data rules the world: Telemetry in Battlefield Heroes" from STHLM Gamedev Forum is now up on... http://bit.ly/b4AaVg #gamedev #
- 스톡홀름 게임개발자 포럼에서 전도유망한 스웨덴 개발사 DICE의 멤버가 발표한 슬라이드
- RT themadpeacock: Check this video out -- Will Wright Keynote at GameTech 2010 http://bit.ly/9MVQ4y #gamedev #
- 저도 아직 못본...;
- RT repi: Posted the updated slides for my "Parallel Futures of a Game Engine (v2.0)" talk I did @ STHLM #gamedev Forum http://bit.ly/cwTc5z #
- 역시 스톡홀름 포럼에서 발표된 게임엔진의 병렬화에 관한 발표자료
- RT niklasfrykholm: "Practical Examples in Data Oriented Design" -- slides from my talk at Sthlm #gamedev Forum: http://bit.ly/cLdPLA #
- 요즘 게임 개발에서의 핫트렌드 중 하나인 데이터 지향 설계에 관해 쉽게 설명해줍니다.
- RT imqwerty2: 데브캣 스튜디오 Publications Blog가 오픈하였습니다. http://bit.ly/csYEvg #gamedev #
- 멋집니다, 데브캣!
- RT ChristinaCoffin: The Aesthetics of Unique Video Game Characters: http://bit.ly/aIuP35 by Shaylyn Hamm http://bit.ly/b9eMGG #Art #gamedev #
- 비디오 게임 캐릭터의 미학
- RT eiaserinnys: NDC2010 "완벽한 MMO 클라이언트 설계에의 도전 : M2 아키텍처 리뷰" 강연 자료를 공개합니다. http://bit.ly/bHlPjc 고의성 낚시 제목에 고통받으신 많은 분들께 죄송할 뿐이고;;; #gamedev #
- RT tatsuma_mu: RT CrEEp3r Cryengine 2 Fantasymodification - http://bit.ly/d66fH1 #leveldesign #gamedev #gamedesign #
- 아름다운 판타지풍의 CryENGINE 2 모드
- RT tatsuma_mu: http://bit.ly/9IA6rV google pacman source. #gamedev #
- 얼머전 구글 로고에 데뷔한 인터액티브 팩맨 소스코드
- RT Wolfire: Reviewing Sculptris http://bit.ly/9NQD09 #gamedev #
- 지브러쉬 등에 견줄만한 공짜 모델링 툴
- RT Wolfire: Automatic navigation meshes http://bit.ly/dqZqxF #gamedev #
- 괜춘한 네비게이션 메쉬 라이브러리에 대한 소개
기타etc
- “Doing nothing is better than being busy doing nothing.” ~Lao Tzu #quote #
- RT DeliciousHot: Kaleidoscope — File comparison for Mac http://is.gd/cz8gn #
- 깔삼해보이는 맥용 파일 비교 툴. 맥에서 개발하시는 분에게 강추
- RT sioum: The Secret Powers of Time http://bit.ly/as8RJu #
- RT dailyrt: Hello world! http://chirrps.com is a revolutionary Twitter search engine combined with the best Twitter directory on the planet #
- RT nicolerichie "I'd rather regret the things I've done than regret the things I haven't done." - Lucille Ball (http://chirrps.com) #
- 유럽 출시 둘째날, 드디어 iPad 겟! (미국으로 신혼여행 떠난 동료에게 부탁했었으나, SF 애플스토어에선 iPad가 일시 품절이란 소식에...) #
- RT tferriss: "Letters from a Stoic" free (a large portion) on Google Books: http://ping.fm/kvMP1 (Thx, Craig!) #
- RT PsychodudeCom: 50 Useful Blogs for Writers: http://bit.ly/bZklhC #
- 영어 글쓰기에 유용한 블로그 50선
- RT themindfulist: "Pain is inevitable. Suffering is optional." Any problems in your life this quote applies to? (Hint: ALL of them!) #quote #
- RT Twitter_Tips: It's Official: Apple Is Now Worth More Than Microsoft: http://j.mp/9QiXGM #
- lol RT rickasaurus: Top 10 Things That Annoy Programmers http://is.gd/cpUYA #
- 프로그래머를 화나게 하는 10가지 ㅎㅎ
- What now is always what I want. - JJ #quote #
- RT esstory: Stretching Clock http://shar.es/mj6cf - 자다 일어 나서 스트레칭 먼저 하면 개운하겠네요 이런 베게 아주 좋아 ㅎ #
- RT DeliciousHot: Top 40 Useful Sites To Learn New Skills http://is.gd/cocmX #
- RT go2web20: Soluto: Anti-Frustration Software http://bit.ly/Soluto #Israel #Go2web20 #
- PC 문제 해결을 위한 흥미로운 접근
- RT iwisenet: As I have not worried to be born, I do not worry to die.-F.García Lorca #quote http://bit.ly/dw0Qnh #
- RT princeofcode: Duck Duck Go, a search-engine for programmers: http://bit.ly/a2qARB (via hackernewsbot) #
- 소스 코드 검색에 뛰어난 새로운 검색 엔진
- RT PsychodudeCom: Running A Software Business On 5 Hours A Week: http://bit.ly/9ZGK39 #
- 일주일에 5시간 투자로 소프트웨어 비즈니스 꾸려나가기에 관한 진솔하고 유용한 글
- RT mushman1970: RT 기대가 큽니다. 글고 수고 많았습니다. BKLove: 트위터 매쉬업 서비스 트윗믹스가 오픈했습니다. 대한민국에서 가장 뜨거운 이슈를 확인해보세요 :) http://tweetmix.net/" #
'Tweets' 카테고리의 다른 글
| My Recent Tweets 20100623 (1) | 2010/07/03 |
|---|---|
| My Recent Tweets 20100604 (0) | 2010/06/10 |
| My Recent Tweets 20100226 (0) | 2010/03/02 |
| My Recent Tweets 20100208 (0) | 2010/02/10 |
| My Recent Tweets 20100118 (0) | 2010/01/19 |
| My Recent Tweets 20100104 (0) | 2010/01/05 |
- My Recent Tweets 20091120
Tweet
- Tweets
- 2009/11/24 07:08
- Ambient Occlusion, Android, C++0x, code review, Deferred Rendering, delaunay triangulation, Erlang, Frostbite, functional programming, Gerrit, Golang, haskell, Kanban, Lisp, MacRuby, maven, Megatexture, mercurial, MinWin, MIT, parallelism, PDC09, permutation, pystring, QuickThread, Regular Expression, SC09, Stackless Python, The Pragmatic Bookshelf, wings3d, WPF, 정규표현식
-
프로그래밍programming
- RT programmingjoy: LtU: Scratch: Programming for All #programming http://bit.ly/1FZc4P #
- 아이들을 위한 프로그래밍 언어
- RT programmingjoy: Inside "MinWin": The Windows 7 Kernel Slims Down #programming http://bit.ly/1Wj6d6 #
- 서버 및 임베디드 플랫폼을 위한 윈도 최소 버전에 관한 아르스 테크니카 글
- RT rickasaurus: RT IdeaKitchn: RT TommyLee The #PDC09 session videos are now becoming available at http://bit.ly/45XnrF. #programming #
- 얼마 전 있었던 PDC09 세션 비디오들. 저도 아직 보지는 못했다는...;
- RT programmingjoy: Buy Bad Code Offsets Today! #programming http://bit.ly/1Rb8vI #
- 지저분한 코드를 위한 면죄부!? 저도 좀 사둬야 할 듯 ㅋㅋ
- Next permutation — When C++ gets it right: http://su.pr/2OlYCd #C++ #programming #
- 흥미로운 코딩 퀴즈
- RT programmingjoy: 40% off Thanksgiving PragSale now through 11/25 #programming http://bit.ly/3dvA6y #
- 유용한 책들이 많이 선보이는 "The Pragmatic Bookshelf"에서 추수감사절맞이 40% 세일을 진행 중입니다. 25일까지이니 서두르시길
- RT programmingjoy: Sun announces First-class methods for Java 7 at Devoxx 2009 conference #programming http://bit.ly/1ULrFh #
- 함수형 접근이 대세...
- RT meshula: Ambient Occlusion benchmark http://bit.ly/1idsyh by aobench ported to #golang http://bit.ly/2oYfKL , also Hask... #programming #
- Ambient Occlusion 연산 수행을 통한 벤치마크 프로그램. 정말 다양한 언어와 플랫폼으로 포팅되어 있습니다. 흥미롭군요... 제가 요즘 공부 중인 Haskell도 성능이 나쁘지 않네요. C나 ㅎㄷㄷ한 일본 친구가 만든 GPU 버전에 비하면 많이 느리지만요;
- RT programmingjoy: MacRuby 0.5 beta 2 is out #programming http://bit.ly/1N2IQS #
- 이런 프로젝트도 있었군요.
- RT a_williams: New blog entry: November 2009 C++ Standards Committee Mailing http://bit.ly/2KFhyr #C++ #programming #
- 2009년 11월 C++ 표준 위원회 모임에 관한 블로그 글
- RT programmingjoy: 25 Tips for Intermediate Git Users #programming http://bit.ly/31n7W2 #
- RT programmingjoy: Types in Haskell: Types are Propositions, Programs are Proofs #programming http://bit.ly/3vrMOG #
- 해스켈... 심오합니다.
- RT KageKirin: pystring - C++ functions matching ... of python string methods with std::string http://tinyurl.com/y9ofn5v #C++ #programming #
- C++ STL string과도 호환되면서 파이썬 문자열 연산 기능들을 지원하는 라이브러리
- RT programmingjoy: headache relief for programmers - regular expression generator #programming http://bit.ly/FeWmS #
- 온라인 정규표현식 생성기
- RT programmingjoy: Build,Compile, and test your first Android Application[video lecture] #programming http://bit.ly/Sr1UD #
- 안드로이드 개발 튜토리얼 동영상
- RT programmingjoy: Mercurial DVCS v1.4 released! #programming http://bit.ly/CGD4L #
- RT programmingjoy: Why Go Matters, or why Go won't take over the world, just one country. #programming http://bit.ly/4cJn3I #
- 요즘 뜨거운 감자인 Go 프로그래밍 언어에 대한 글. 그나저나 이름 문제는 해결이 되었는지 모르겠군요;
- RT programmingjoy: Tweet your builds with Maven Twitter Plugin #programming http://bit.ly/4o6Msw #
- 빌드 결과를 트윗해주는 Maven 플러그인
- RT programmingjoy: Comparing Go and Stackless Python #programming http://bit.ly/180HzP #
- Go의 비동기 루틴 및 채널 개념을 유사하게 지원하는 스택리스 파이썬
- RT programmingjoy: Installing Google's Go Language on Mac OS X Leopard - a walkthrough #programming http://bit.ly/3MfE6y #
- 맥오에스에 Go 언어 설치하기
- cdecl: C gibberish ↔ English http://su.pr/2ysi0g #C++ #programming #
- 복잡한 C 언어 선언을 영어로 번역해주는 서비스; 소스도 제공하는군요.
- RT programmingjoy: Stackless Python outperforms Google's Go #programming http://bit.ly/1AZnd8 #
- 스택리스 파이썬과 Go의 간단한 성능 비교
- RT programmingjoy: Asynchronous Go API idioms #programming http://bit.ly/3odziz #
- Go 언어에 관한 또 다른 글
- RT programmingjoy: The Go I Forgot: Concurrency and Go-Routines - MarkCC #programming http://bit.ly/zREJP #
- Go Go Rush!
- RT programmingjoy: Multicore programming in Go #programming http://bit.ly/1PbF2G #
- 또 고!
- RT programmingjoy: How Programmers Need To Relate To Humans And Vice-Versa [interesting read] #programming http://bit.ly/JsUMG #
- 프로그래머가 어떻게 일반인(?)들과 소통해야 하는가에 관한 흥미로운 글
- RT programmingjoy: A Brief Introduction to Lisp (short video series) #programming http://bit.ly/AuWaP #
- 리스프 소개 동영상
- RT rickasaurus: The Most Intriguing Concept In Google's Go Language http://is.gd/4UgvC #programming #
- RT programmingjoy: Portraits rendered with delaunay triangulation #programming http://bit.ly/uoyXE #
- Delaunay triangulation을 이용한 초상화. ㅎㅎ 재밌군요...
- The parallelism shift and C++'s memory model (pdf): http://su.pr/5YoGzE #C++ #programming #
- 병렬성과 C++0x의 메모리 모델에 관한 주옥같은 문서
- Overriding Virtual Functions? Use C++0x Attributes to Avoid Bugs: http://su.pr/2dzyCt #C++ #programming #
- C++0x의 attribute를 이용해 버그 피하기
- RT programmingjoy: C, Erlang, Java , (Google) Go Web Server performance test #programming http://bit.ly/13KtGD #
- 여러 언어를 이용한 웹서버 성능 비교
- RT itshooter: 6460A Visual Studio 2008- Windows Presentation Foundation : 99eBooks | Online Books Library http://bit.ly/29iwSE #programming #
- WPF에 관한 공짜 이북
- RT programmingjoy: Summary of all the MIT Introduction to Algorithms lectures #programming http://bit.ly/3iiPaP #
- MIT 알고리즘 강좌 요약
- RT programmingjoy: Gerrit: Google-style code review meets git #programming http://bit.ly/3XBdRi #
- Git과 연동되는 웹 기반 코드 리뷰 시스템
- RT programmingjoy: Is Python Slow? #programming http://bit.ly/4jyzWm #
- Solving ordinary differential equations in C++: http://su.pr/5DR286 #C++ #programming #
- 미분방정식을 풀기 위한 C++ 라이브러리
- A new #programming language from Google RT GoogleCode: Hey! Ho! Let's Go! Introducing a new experimental language - Go http://bit.ly/28z8CM #
- RT programmingjoy: Philosophizing about Programming; or "Why I'm learning to love functional programming" #programming http://bit.ly/2Se1sm #
- 내가 함수형 언어를 배우는 이유
개발방법론methodology
- RT LeanKitKanban: RT henrikkniberg: Kanban kick-start example, illustrating a bunch of ... http://tinyurl.com/kanbanexample #methodology #
- 바로 시작하는 칸반
그래픽스graphics
- RT tatsuma_mu: RT repi RT tuan_kuranes: Real Time Global Illumination Using Temporal Coherence http://bit.ly/RRwXu #graphics #
- 실시간 전역 조명에 관한 논문
- RT meshula: Wow! RT @_osa_ _osa_ Origami Simulator http://bit.ly/23BvU4 (via morphocode) generates crease pattern and folding... #graphics #
- 종이접기 시뮬레이터...
- RT repi: Been waiting for these! RT IanMcNaughton: RT ATIGraphics: RT pcper AMD Radeon HD 5970 2GB Review http://bit.ly/2RWjGi #graphics #
- 현재로선 궁극의 그래픽 카드 라데온 HD 5970 2GB에 대한 리뷰
- RT meshula: bjoernknafla Despite Erlang's stated goals, wings3d http://wings3d.com is the most impressive application of Erlang! #graphics #
- 얼랭으로 만들어진 3차원 모델러
- RT repi: AMD's interview with me about Frostbite2 & DX11 is up: http://bit.ly/3cfWgB Full longer pdf ver... http://bit.ly/4usBmA #graphics #
- DX11을 지원하는 프로스트바이트2 엔진에 관한 인터뷰
- RT meshula: RT tuan_kuranes: deferred rendering in frameranger. http://bit.ly/2KuyUq #gamedev #graphics #
- 지연 렌더링 기법에 관한 글
- RT meshula: Megatexture demo under MIT license. http://bit.ly/3fbFDs #graphics #
- id Tech 5 엔진으로 유명해진 메가텍스처 기법을 C#으로 구현한 예. 관련 기법을 연구 중인 분들께 매우 유용할 듯.
병렬성parallelism
- RT SoftTalkBlog: Universal cloud for programmers - full details on Intel's new Parallel Universe - http://bit.ly/2JGynD #intel #parallelism #
- 인텔이 제시하는 병렬 테스팅 플랫폼
- RT programmingjoy: QuickThread: A New C++ Multicore Library #programming http://bit.ly/gKAQJ #parallelism #
- 새로운 C++ 멀티코어 라이브러리
- RT bjoernknafla: Via ACM: #SC09 papers online (public): http://bit.ly/3alCA4 (choose "Papers" for "Selected Activities") #parallelism #
- 역시 얼마 전 있었던 SuperComputing09 발표 논문들
- RT SoftTalkBlog: Parallel programming tips from tibor19 at TechEd - http://bit.ly/4vACYF #tee09 #parallelism #
- 병렬 프로그래밍 팁
- RT bjoernknafla: RT rickmolloy: new blog post describing the Concurrency Runtime samples for Beta2 http://bit.ly/27wW0k #parallelism #
- VS2010 베타2와 함께 나온 새로운 Concurrency Runtime 예제들
- RT SoftTalkBlog: TechEd: How the Concurrency Coordination Runtime helps with a new parallel programmin... http://bit.ly/2OCLny #parallelism #
- RT repi: Slides for my "Parallel Futures of a Game Engine" keynote is now up! Get it while it's hot: http://repi.se #parallelism #gamedev #
- 게임 엔진 병렬화의 미래에 대한 매우 심도 있는 전망
게임개발gamedev
- RT inCrysis: CryEngine 3 now available for FREE for educational institutions http://bit.ly/uqZeh #gamedev #
- RT bjoernknafla: RT mlesniak: Video of the tools for the Love MMORPG: Totally impressive. Just Wow. http://bit.ly/14YkqU #gamedev #
- Love라는 이름의 MMORPG의 매우 인상적인 툴 시연
- RT tatsuma_mu: External Lightmapping Tool for Unity released. http://bit.ly/1mGDy9 #gamedev #
- RT meshula: Wide ranging tome! RT tatsuma_mu: Core Techniques and Algorithms in Game Programming http://bit.ly/ivTye #gamedev #programming #
- 게임 프로그래밍에서의 핵심 기법과 알고리즘에 대한 광범위한 자료
- RT repi: RT msinilo: *Great* GDC 2k9 presentation on state-based scripting in Uncharted2 - http://bit.ly/1au88G #programming #gamedev #
- Uncharted2에 쓰인 상태 기반 스크립팅에 대한 슬라이드 자료
기타etc
- RT rigmania: PMD Copy/Paste Detector(CPD) 좋네요. http://parkpd.egloos.com/1969980 #
- Copy/Paste 코딩을 검출해내기 위한 도구
- RT xiles: 아주 기본적인 작업만 하시고, 적은 디스크 공간에 윈도우7을 설치해보고 싶다면 Tiny Windows 7을 사용해보세요. http://bit.ly/3NIg3K #
- 크라이텍 10주년 파티 http://yfrog.com/3ng72tj #
- 어느덧 이번 주군요...
- 한글 트위터 사용자 디렉토리 http://KoreanTwitters.com 에 지금 등록했습니다: #프랑크푸르트 #게임개발 #프로그래밍 #크라이텍 #IT #
- RT jasonfried: So clever. A scroll-bar clock: http://bit.ly/3LYExJ #
- 스크롤바를 이용한 시계
- RT eHub: Tweetwally http://bit.ly/1hV9US #
- RT DeliciousHot: 25 Ways to Use Google (That You've Never Heard Of) http://bit.ly/3lGPQ4 #
- 유용한 구글 활용법들
- RT gamearchitect: 10 Useful Tools for Finding the Perfect Domain Name: http://bit.ly/3gtAZK #
- RT tatsuma_mu: Jobs at Apple "Job title Game/Media Software Engineer" http://bit.ly/34hG9Z #
- RT Silverchime: 스케치업용 여성형 액션 피규레이션. http://bit.ly/47m7WE 제작자분의 센스가 대단하군요. #
- RT repi: ArsTechnica article with some more public details of the AMD Fusion single die CPU/GPU http://bit.ly/1ZxuIs Makes sense as a firs #
- RT ㅋㅋ spolsky: StackOverflow discovers the rare --> operator in C++. http://bit.ly/BFlq7 #
- RT pomad: http://tr.im/ERil screener 라는 트윗 연동 서비스네요.. ㅋㅋ 재밌군요... #
- RT DeliciousHot: 100 Useful Links for eBook Lovers http://is.gd/4U2hs #
- RT gamearchitect: Google Wave Cheat Sheet: http://bit.ly/4twxeh #
- RT gamearchitect: 100 Open Courses to Learn Any New Language: http://bit.ly/3KlLB5 #
- RT gamearchitect: How to Develop Your Photography Skills - 11 steps (with pictures): http://bit.ly/gba1U #
- RT SingleFunction: News - 10 Free Tools & Resources to Find Icons For Your Website http://bit.ly/z7WHC #
![]() ashlin, february 2008 by ∆ matt caplin ∆ |
p.s. 최근 블로깅에 약간 슬럼프 상태입니다... ㅠㅠ 그래서 업데이트가 많이 뜸했죠. 얼마 전 100,000 카운트도 돌파하고 했는데... 좀 더 분발해 보겠습니다. :)
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Tweets' 카테고리의 다른 글
| My Recent Tweets 20100104 (0) | 2010/01/05 |
|---|---|
| My Recent Tweets 20091207 (2) | 2009/12/10 |
| My Recent Tweets 20091120 (0) | 2009/11/24 |
| My Recent Tweets 20091104 (0) | 2009/11/06 |
| My Recent Tweets 20091021 (0) | 2009/10/22 |
| My Recent Tweets 20090928 (0) | 2009/10/01 |
- 차세대 게임개발 언어로 D에 주목하는 이유 - 2
Tweet
- Game Development
- 2009/10/20 21:10
- Alexander Stepanov, C++0x, concept, D programming language, D 언어, generic programming, lambda, metaprogramming, Range, 람다, 메타프로그래밍
-
이전글: 차세대 게임개발 언어로 D에 주목하는 이유 - 1
람다
함수형 언어의 대두와 함께 최근 각종 언어에서 람다의 지원이 유행인데요. C++0x에서도 지원 예정입니다. D는 역시 아주 깔끔하고 간소한 문법으로 익명 함수를 지원하고 있습니다.
위에서 다음 줄에 주목해주세요.
기본적으로 다음과 같은 문법으로 정렬 시의 정렬 함수를 지정해 줄 수 있습니다.
!(...) 안의 다음 부분이 실제 람다식입니다.
이와 같이 인자형이나 리턴 타입을 따로 명시해줄 필요도 없습니다. 또한, 전역 변수가 아닌 freqs 변수를 람다 함수 내에서 접근하고 있는데요. 이러한 기능으로 매우 강력한 람다식이 가능해집니다. 보통은 이런 기능을 위해 성능이 희생되는 경우가 많은데, D언어는 "지역 인스턴스화(local instantiation)"이라는 고유의 기능으로 간접 호출 없이 이러한 기능을 제공하고 있습니다.
참고자료
How Nested Functions Work - part1 by Walter Bright
How Nested Functions Work - part2 by Walter Bright
템플릿
C++에서 템플릿은 고급 기법에 속합니다. 대부분의 프로그래머들은 형 매개변수화 정도로만 템플릿을 사용하고, 코드생성엔진으로 템플릿 메타프로그래밍을 활용하는 것은 선택받은(?) 일부를 위한 흑마법의 영역으로 남겨져 있습니다. D는 이러한 템플릿의 강력함을 쉽게 활용할 수 있도록 설계되었습니다.
어떤 언어가 제너릭 프로그래밍을 제대로 지원하는지 평가하는데 일명 STL의 창시자인 Alexander Stepanov가 제시한 "스테파노프의 리트머스 테스트"가 유용합니다. 해당 언어 내에서 다음 세 함수를 구현할 수 있느냐가 바로 그 테스트입니다.
1. max 제너릭 함수
함수 정의 중간에 나오는 if가 신기하실 겁니다. 사용자가 크기 비교가 불가능한 타입들을 max 함수의 두 인자로 주었을 때, 깔끔한 에러 메시지를 출력하기 위해 제한을 거는 역할을 합니다. C++0x에 도입될뻔했던 concept의 기능을 어느정도 수행한다 보시면 되겠습니다.
아래와 같이 인자를 세 개 이상 받는 경우도 간단히 처리가능합니다.
2. swap 제너릭 함수
의외로 각 경우에 모두 최적으로 돌아가도록 구현하기 매우 힘든 경우 중 하나입니다. D에서는 위와 같이 구현하면 되는데요, pointsTo 함수를 어떻게 구현하는지는 설명하지 않겠습니다. (궁금하신 분은 책을 구입해주세요. ^^)
3. linearSearch 제너릭 함수
선형검색 제너릭 함수는 위처럼 D가 기본지원하는 range 개념을 이용해 매우 간단하게 구현됩니다.
참고자료
An Interview with A. Stepanov
이번 회는 여기까지입니다. 사실 짧은 내용과 부족한 글솜씨로 D의 강력함과 깔끔함을 충실히 전달하기가 힘들군요; 책을 사보고 싶은 욕구가 생기실 정도로만 동기부여가 되었으면 좋겠습니다. ^^
기타 참고자료
D (programming language) - Wikipedia
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
람다
함수형 언어의 대두와 함께 최근 각종 언어에서 람다의 지원이 유행인데요. C++0x에서도 지원 예정입니다. D는 역시 아주 깔끔하고 간소한 문법으로 익명 함수를 지원하고 있습니다.
위에서 다음 줄에 주목해주세요.
기본적으로 다음과 같은 문법으로 정렬 시의 정렬 함수를 지정해 줄 수 있습니다.
!(...) 안의 다음 부분이 실제 람다식입니다.
이와 같이 인자형이나 리턴 타입을 따로 명시해줄 필요도 없습니다. 또한, 전역 변수가 아닌 freqs 변수를 람다 함수 내에서 접근하고 있는데요. 이러한 기능으로 매우 강력한 람다식이 가능해집니다. 보통은 이런 기능을 위해 성능이 희생되는 경우가 많은데, D언어는 "지역 인스턴스화(local instantiation)"이라는 고유의 기능으로 간접 호출 없이 이러한 기능을 제공하고 있습니다.
참고자료
How Nested Functions Work - part1 by Walter Bright
How Nested Functions Work - part2 by Walter Bright
템플릿
C++에서 템플릿은 고급 기법에 속합니다. 대부분의 프로그래머들은 형 매개변수화 정도로만 템플릿을 사용하고, 코드생성엔진으로 템플릿 메타프로그래밍을 활용하는 것은 선택받은(?) 일부를 위한 흑마법의 영역으로 남겨져 있습니다. D는 이러한 템플릿의 강력함을 쉽게 활용할 수 있도록 설계되었습니다.
어떤 언어가 제너릭 프로그래밍을 제대로 지원하는지 평가하는데 일명 STL의 창시자인 Alexander Stepanov가 제시한 "스테파노프의 리트머스 테스트"가 유용합니다. 해당 언어 내에서 다음 세 함수를 구현할 수 있느냐가 바로 그 테스트입니다.
1. n>=2 의 원소들 중에서 최대값을 알려주는 제너릭 함수. 이 함수는 모든 정렬 가능 타입에 적용할 수 있어야 한다.D로 이러한 것들이 어떻게 가능한지 간단히 결과만 보여드리겠습니다.
2. 두 값을 효율적으로(예를 들면, 상수 메모리 소모) 뒤바꾸는(swap) 제너릭 함수
3. 임의의 컬렉션에서 한 아이템을 선형 검색하는 제너릭 함수. 컬렉션은 빌트인 타입일 수도 혹은 언어가 정의한 일련의 프로토콜을 만족하는 사용자정의 타입일 수도 있다.
1. max 제너릭 함수
함수 정의 중간에 나오는 if가 신기하실 겁니다. 사용자가 크기 비교가 불가능한 타입들을 max 함수의 두 인자로 주었을 때, 깔끔한 에러 메시지를 출력하기 위해 제한을 거는 역할을 합니다. C++0x에 도입될뻔했던 concept의 기능을 어느정도 수행한다 보시면 되겠습니다.
아래와 같이 인자를 세 개 이상 받는 경우도 간단히 처리가능합니다.
2. swap 제너릭 함수
의외로 각 경우에 모두 최적으로 돌아가도록 구현하기 매우 힘든 경우 중 하나입니다. D에서는 위와 같이 구현하면 되는데요, pointsTo 함수를 어떻게 구현하는지는 설명하지 않겠습니다. (궁금하신 분은 책을 구입해주세요. ^^)
3. linearSearch 제너릭 함수
선형검색 제너릭 함수는 위처럼 D가 기본지원하는 range 개념을 이용해 매우 간단하게 구현됩니다.
참고자료
An Interview with A. Stepanov
이번 회는 여기까지입니다. 사실 짧은 내용과 부족한 글솜씨로 D의 강력함과 깔끔함을 충실히 전달하기가 힘들군요; 책을 사보고 싶은 욕구가 생기실 정도로만 동기부여가 되었으면 좋겠습니다. ^^
기타 참고자료
D (programming language) - Wikipedia
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Game Development' 카테고리의 다른 글
| 차세대 게임개발 언어로 D에 주목하는 이유 - 마지막 (0) | 2009/12/18 |
|---|---|
| 크라이텍 아카데미 (0) | 2009/12/02 |
| 차세대 게임개발 언어로 D에 주목하는 이유 - 2 (6) | 2009/10/20 |
| 크라이엔진 3 발표와 크라이텍코리아 구인 (0) | 2009/10/18 |
| 분산버전관리 머큐리얼로 개인작업 관리하기 (2) | 2009/10/03 |
| 차세대 게임개발 언어로 D에 주목하는 이유 - 1 (10) | 2009/09/19 |
- My Recent Tweets 20090928
Tweet
- Tweets
- 2009/10/01 22:26
- bazaar, bitbucket, boost.python, C++0x, Clojure, git, github, Grand Central Dispatch, inheritance, Kanban, learnivore, llvm, Markov Chain, mercurial, Pair Programming, Python, rvalue, Scala, Scrum, Software Engineering, stackoverflow, Sublime, template metaprogramming, vim, 상속, 스크럼, 알고리즘, 자료구조, 짝프로그래밍, 칸반, 파이썬
-
- RT programmingjoy: How to write boost.python converters #programming http://bit.ly/4FkKrN #C++ #python #programming #
- 부스트 파이썬에 사용자 타입에 대한 지원을 추가하는 방법에 관한 튜토리얼
- RT codemonkeyism: Stack Overflow Tag trends http://bit.ly/4jhcCG #programming #
- 프로그래머들의 소셜질답사이트 스택오버플로에서의 태그 통계
- RT programmingjoy: Tech Comics: "Programmers are Artists" #programming http://bit.ly/21kLZm #
- RT programmingjoy: Bazaar 2.0.0 is released #programming http://bit.ly/3IQ7UD #
- 최근 대세인 DVCS들의 경쟁이 활발하군요.
- RT gamearchitect: Learnivore - programming screencasts: http://bit.ly/1osZ9 #programming #
- 스크린캐스트 프로그래밍 강좌 사이트
- Template Metaprogramming Made Easy (Huh?): http://su.pr/7q80je #programming #
- 템플릿 메타프로그래밍에 대한 훌륭한 소개
- RT henricodolfing: Bugs can be serious : 9 Software Disasters http://slidesha.re/178aB3 #programming #
- RT programmingjoy: GitHub and open source development #programming http://bit.ly/XAzvh #
- RT ohyecloudy: c++ idioms 참 많군요. 틈나는대로 정리를 시작. 두번째로 Construct On First Use를 정리했습니다. http://digg.com/u3CupE #programming #
- RT unclebobmartin: Blog: "A Mess is not a Technical Debt." http://bit.ly/28Jy5j #programming #
- 100 Vim commands every programmer should know: http://su.pr/6xtfXk #programming #
- RT fac9: bjoernknafla http://okmij.org/ftp/Computation/Subtyping/ The best critique of OO inheritance I've ever seen. #programming #
- 개체지향 상속개념의 한계를 논하는 글
- RT bjoernknafla: RT Flawe: Dictionary of algorithms and data structures: http://bit.ly/xg1m #programming #
- 자료구조 및 알고리즘 사전
- bitbucket - Github for Mercurial: http://su.pr/3mn66c #programming #
- 개인적인 느낌으로는 git 다음으로 주목받고 있는 DVCS인 머큐리얼 기반 프로젝트 호스팅 사이트
- What is readability, or simple != readable: http://su.pr/3t7xod It's about code reading. #programming #
- RT programmingjoy: Rich Hickey's Keynote: A Deconstruction of Object Oriented Time #programming http://bit.ly/3uhdWh #
- 병렬 시대가 오면서 역시 개체지향의 시대가 저물고 있음을 예견하고 있는 슬라이드
- RT DeliciousHot: gnuu.org: Writing Your Own Toy Compiler Using Flex, Bison and LLVM http://is.gd/3qNH1 #programming #
- 최근의 또다른 대세인 LLVM을 이용한 간단 컴파일러 제작
- RT programmingjoy: Never mind the language, the programmer is what matters #programming http://bit.ly/4ocouy #
- Great articles about C++0x rvalue ref & move semantics http://su.pr/2ZKFI0 http://su.pr/1Uv05E #programming #
- C++0x의 rvalue 참조와 무브 시만틱을 가장 잘 설명한 글
- Use C++0x's Inheriting Constructors to Reduce Boilerplate Code in Class Hierarchies: http://su.pr/2cVhcl #programming #
- RT programmingjoy: Google Delivers New Java-like Language: Noop #programming http://bit.ly/TDLxn #
- RT programmingjoy: Guava: Google Core Libraries for Java #programming http://bit.ly/17t3J3 #
- RT DeliciousHot: Dive Into Python 3 http://is.gd/3n1gk #programming #
- 파이썬 3 이북
- RT KageKirin: #Git merging by example #programming nice tutorial http://tinyurl.com/6p23qz #
- 예제로 알아보는 git 머징
- RT programmingjoy: Animated visualization of source code history - Gource #programming http://bit.ly/T8bHk #
- How the LLVM Compiler Infrastructure Works: http://su.pr/2yh24p #programming #
- Sleepy is a C/C++ CPU profiler for Windows systems: http://su.pr/211x8y #programming #
- RT SpreeTree: RT reviewboard: Review Board 1.0.2 is released - http://bit.ly/TkpXT #programming #
- 코드리뷰 공짜 툴
- Delta: the coolest tool you’ve never heard of: http://su.pr/18xjmS #programming #
- 텍스트 파일에서 문제가 되는 부분을 꼭 집어내는데 유용할 툴
- RT programmingjoy: How to generate better test data using Markov chains #programming http://bit.ly/18vkM7 #
- 마코프 체인에 대한 쉬운 소개
개발방법론methodology
- SEED: Software Engineering Evidence Database http://su.pr/28U6e9 #programming #
- 소프트웨어 공학에 물증(?)을 마련하기 위한 시도
- RT codemonkeyism: RT ITValueCreator: Visualizing Agile Projects Using Kanban Boards http://bit.ly/2csx56 RT drydevelopment: #IT #
- 애자일의 새로운 도구로 급부상 중인 칸반 보드에 대한 소개
- Web Kanban board: http://su.pr/1wdnte #
- Scrum-ban - A task card without a limit is not a kanban in the same way that a photocopy of a dollar bill is not money. http://su.pr/2Wh0n7 #
- 스크럼 + 칸반
- RT programmingjoy: Pair programming follow-up by the author #programming http://bit.ly/2MZAqb #
- 짝프로그래밍이 쉽지 않은 이유
- "Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live." http://su.pr/5cepZE #
- RT programmingjoy: Article on pair programming in the New York Times #programming http://bit.ly/2bTtnw #
- 짝프로그래밍이 유익한 이유
- RT programmingjoy: Zen says: Kill your ScrumMaster #programming http://bit.ly/QeZ5s #
- 선과 스크럼
게임개발gamedev
- RT jacking75: Mike Capps 의 TGS: Epic's Mike Capps On Developing Epic-Style http://parkpd.egloos.com/1952636 #gamedev #
- RT gamearchitect: Open Game Art - Free, legal art for open source game projects: http://bit.ly/AT9EU #gamedev #
- World of Warcraft: 13,250 blade servers, 75,000+ CPU Cores, 112.5TB RAM and 1.3PB of data. #awesome #warcraft #blizzard http://is.gd/3vIjJ #
- RT KageKirin: Crytek's CryEngine 3.0 set to debut next month http://tinyurl.com/mup7de #
병행성concurrency
- Ownership Systems against Data Races: http://su.pr/2VJx33 #C++ #programming #
- C++에서의 데이터 레이스 방지를 위한 방편 소개
- Intel Concurrent Collections for C++ 0.4 for Windows and Linux: http://su.pr/32O3pT #programming #concurrency #
- 인텔에서 발표한 또다른 병행 프로그래밍 도구. TBB 보다 고수준에서 동작하는 도구임.
- RT SoftTalkBlog: Ct & Cilk++ to be available for developers in 2010, according to Inte... at http://bit.ly/3dZ06q #programming #concurrency #
- RT programmingjoy: Ottoman: A lightweight,reliable key-value store with multi-version concurrency control #programming http://bit.ly/1YqkL8 #
- RT programmingjoy: Faking Fibers with Grand Central #programming http://bit.ly/15fAnV #concurrency #
- 역시 애플의 새 운영체제 스노우레오파드와 함께 유명해진 Grand Central Dispatch에 대한 글
- RT DeliciousHot: Scala vs Clojure – Round 2: Concurrency! « Best In Class – The Blog http://is.gd/3oMTy #programming #
- JVM 기반 두 함수형 언어 Scala와 Clojure의 병행성 관련 비교글
그래픽스graphics
- RT programmingjoy: CAIR - Content Aware Image Resizer #programming http://bit.ly/BbM2v #graphics #
- RT repi: AnandTech Radeon 5870 review: http://bit.ly/Nu0KA #graphics #
- 드디어 첫 DX11 지원 그래픽카드의 등장이군요.
- RT programmingjoy: 4D Quaternion Julia Set Ray Tracer #programming http://bit.ly/xczS8 #graphics #
- RT KageKirin: AMD supports OpenCL Bullet; Are Havok and PhysX in trouble? #programming http://tinyurl.com/mhnruo #graphics #
- Nvidia에 PhysX가 있다면, AMD는 Bullet인가요!?
트위터twitter
- RT hur: 위키 기반의 트위터 한국 사용자 디렉토리. 잘 만들면 좋은 디렉토리가 되겠네요. http://twitme.kr/ #
- RT DeliciousHot: 6 Incredible Twitter Powered Art Projects http://is.gd/3IpsU #
- RT eHub: Artwiculate http://bit.ly/yYBDS #
- 영단어 공부에 도움이 될듯
- RT gamearchitect: 10 code snippets to interact with Twitter: http://bit.ly/TSjQr #
- RT apedix: DOS윈도우에서 트위터 사용하기 'Quitter' http://durl.me/5vs7 #
기타etc
- RT programmingjoy: Apple and Intel team up on Light Peak - A 10Gb/s optical port intended to replace USB, Firewire etc. http://bit.ly/6rAGz #
- RT ohyecloudy: Secrets of Simplicity - 후~ slideshare에 슬라이드 고수들이 역시 많군요. 단순하게 만드는 4가지 방법을 소개하고 있습니다. http://digg.com/u3DDl0 #
- RT channyun: 오픈뱅크 2009 http://ff.im/-8yBD5 #
- RT gamearchitect: 41 Image and Icon Search Engines: http://bit.ly/1fWqyI #
- RT chanjin: 창조학교의 칙센미하이 멘토와 함께 긍정심리학 분야의 대가인 마틴 셀리그먼의 '긍정심리학을 말하다.'입 니다. http://j.mp/p2MHf 역시 TED의 동영상입니다. ^_^ #
- RT gamearchitect: 10 Revealing Infographics about the Web: http://bit.ly/S4xFu #
- RT isotype: RT pythagoras0: 구글 닥스도 이제 수식지원을 하는군요. 웹상의 수식표현 경연대회 http://bit.ly/eAWpu 어떤 녀석이 예쁜가요. (할일이 느는 느낌이다.) #
- RT seungwoonlee: Yammer for Outlook : http://bit.ly/zbpd4 : 오 야머를 아웃룩에서 ... 이제 야머도 좀 더 활용을? ^^; #
- RT programmingjoy: Sublime Text editor for Windows (check out its "minimaps") #programming http://bit.ly/2OfAAG #
- 앞으로의 발전이 기대되는 깔끔한 텍스트편집기
- RT RyanWiancko: http://bit.ly/iHL40 - Utah's little experiment with 4 day work weeks is proving a success. Less energy used, happier wor... #
- 이젠 주4일 근무인가요? lol
- RT Dapy: paperinz™ 팔로워 분의 사진들을 내트위터 배경 이미지로 사용하기 - Twilk http://paperinz.com/1308 #
- RT sioum: UCLA의 Terrence Tao 교수가 올해 국제수학올림피아드 50주년 기념 행사에서 고등학생 상대로 소수에 대하여 강연한내용을 논문으로 정리하였네요. http://bit.ly/3FnCEi http://bit.ly/qjfzP #
- 심오하고 흥미로운 소수의 세계
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Tweets' 카테고리의 다른 글
| My Recent Tweets 20091104 (0) | 2009/11/06 |
|---|---|
| My Recent Tweets 20091021 (0) | 2009/10/22 |
| My Recent Tweets 20090928 (0) | 2009/10/01 |
| My Recent Tweets 20090909 (0) | 2009/09/10 |
| My Recent Tweets 20090826 (0) | 2009/08/26 |
| My Recent Tweets 20090812 (0) | 2009/08/13 |
- 차세대 게임개발 언어로 D에 주목하는 이유 - 1
Tweet
- Game Development
- 2009/09/19 06:44
- Andrei Alexandrescu, array slicing, binarysearch, C++0x, D programming language, D 언어, unittest, 단위테스트, 이진검색
-
예전 모회사에서 새 게임 프로젝트를 준비할 때, C++ 대신 D 언어를 심각하게 고려한 적이 있습니다. 3년도 더 된 이야기입니다만... 결국 정식 디버거도 없는 열악한 개발 환경 등을 고려할 때 무리다 판단했었습니다.
그 사이 D도 더디지만 발전하여 D 2.0 스펙이 나왔더군요. 그리고 책도 출간 예정입니다. 그것도 C++ 구루의 한명인 Andrei Alexandrescu에 의해서 말입니다. 아직 몇개월이 더 지나야 책이 최종 출간될 것 같습니다만... 저는 출간 전 작성 중인 책을 미리 구입해 볼 수 있는 서비스를 통해 미완성본을 읽어보았습니다.
역시 그였습니다. D 1.0에서도 C++의 가려운 점을 많이 긁어주고 있다 생각했었는데, 그의 합류로 탄생한 D 2.0은 한층 더 발전한 느낌입니다. C++도 차기표준 C++0x로 많은 개선이 예정되어 있으나 그에 견주어도 여전히 매력적입니다.
그래서 차세대 게임개발 언어로서의 D의 강점을 앞으로 몇회에 걸쳐 다뤄볼까합니다. 자, 바로 시작해보죠.
- C++, Objective-C와 마찬가지로 C와의 하위호환성을 유지합니다.
- 이를 통해 게임개발에 필수적인 DirectX, OpenGL 등과 운영체제 API의 활용이 가능합니다.
- 그 밖에도 많은 공개/상용 C 라이브러리들을 D 언어와 조합하여 쓸 수 있습니다.
- 마지막 한 방울의 성능까지 짜내야할 부분에서 저수준으로 접근하는 것이 가능합니다.
- 언어 차원의 단위테스트/연관배열(일명, 사전)/배열쪼개기 지원
- Type-generic한 이진검색 구현의 예입니다.
- 8,9줄에서 파이썬에서와 유사한 배열쪼개기(array slicing) 기능을 확인하실 수 있습니다.
- C++0x에서와 같은 auto를 통한 타입 유추도 확인하실 수 있죠.
- unittest 키워드로 아주 간편하게 단위테스트를 작성할 수 있습니다. 이러한 단위테스트들은 컴파일 시 -unittest 인자를 주면 main 진입 전에 자동으로 수행됩니다.
참고자료
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Game Development' 카테고리의 다른 글
| 크라이엔진 3 발표와 크라이텍코리아 구인 (0) | 2009/10/18 |
|---|---|
| 분산버전관리 머큐리얼로 개인작업 관리하기 (2) | 2009/10/03 |
| 차세대 게임개발 언어로 D에 주목하는 이유 - 1 (10) | 2009/09/19 |
| gamescom 간단 참관기 (6) | 2009/09/02 |
| GDC Europe 2009 참관기 (2) | 2009/08/25 |
| GDC 유럽 2009 참관 세션 스케줄 (5) | 2009/08/14 |
- My Recent Tweets 20090826
Tweet
- Tweets
- 2009/08/26 23:13
- C++0x, Clojure, HPG2009, html-to-pdf, id software, J, lace, RCS, Scala, SIGGRAPH2009, 멀티스레딩., 버전관리시스템, 병렬프로그래밍, 트위터
-
![]() Escher a Firenze? by aldoaldoz |
그래픽스graphics
- HPG 2009 Report: http://su.pr/3Yl4gr #graphics #
- 리얼타임렌더링 블로그의 High Performance Graphics 2009 참관기
- SIGGRAPH 2009: Beyond Programmable Shading: http://su.pr/20WYnh #graphics #
- SIGGRAPH 2009: Beyond Programmable Shading 의 발표 자료들 얻을수 있는 곳
![]() Geek... / Thanks to all Viewed 7,655 ++ by Pipe |
프로그래밍programming
- RT programmingjoy: Michael C. Feathers: Seven Blind Alleys in Software Design #programming http://bit.ly/7EKfl #
- "Working Effectively with Legacy Code"의 저자 Michael Feathers가 노르웨이 개발자 컨퍼런스에 발표한 '소프트웨어 설계의 일곱 막다른 골목'
- The World's Most Mind-Bending Language Has the Best Development Environment: http://su.pr/6jXTdg about "J" #programming language #
- Lace is a cross-platform build system supporting modular multi-platform cross-compiling projects: http://su.pr/2yF9se #programming #
- 게임개발을 염두에 두고 만들어진 다플랫폼 빌드 시스템
- RT programmingjoy: The Programming Aphorisms of Strunk and White #programming http://bit.ly/198DuN #
- 프로그래밍에 대한 통찰을 주는 글쓰기 책에 관한 소개
- RT programmingjoy: Clojure vs Scala, Part 2 #programming http://bit.ly/t40r4 #
- 자바 환경에서 돌아가는 두 함수형 언어에 대한 흥미로운 비교
- RT programmingjoy: Making Sense of Revision Control Systems - ACM Queue #programming http://bit.ly/1jRrUW #
- 최근 유행하는 분산버전관리시스템과 기존의 중앙관리식 시스템의 장단점을 명쾌하게 설명해줍니다.
- RT mike_acton: RT bjoernknafla Great overview slides of low-lvl parallel programming by TonyAlbrecht : http://bit.ly/a2GkO #programming #
- 저수준 병렬 프로그래밍에 대한 아주 괜찮은 슬라이드
- RT programmingjoy: On Source Code Annotations #programming http://bit.ly/Bgg8i #
- "TODO:" 등과 같은 소스 코드 주석에 관한 소고
- RT a_williams: New blog entry: Multithreading in C++0x part 7: Locking multiple mutexes without deadlock http://bit.ly/1817Ji #programming #
- C++0x에서의 멀티스레딩에 관한 시리즈글 7번째
- Dirty Coding Tricks: http://su.pr/6JcbuE #programming #
- 스케줄에 쫓기면 누가나 한번쯤 저지르게 되는 프로그래밍 미봉책들
- RT jacking75: Hard Code 라는 책을 오늘 다 봤는데 7장. 경력 개발이라는 모험, 8장. 인간 개조 프로젝트를 가장 재미있게 읽었습니다. 저자가 눈치 안보고 막까고 솔직하게 이야기해서 책이 재미있더군요 #
- RT bjoernknafla SpreeTree: 'Be Explicit – Assignment Operators & Copy Constructors'. http://spreetree.net/blog/?p=269. #programming #
- 대입연산자와 복사생성자의 올바른 사용에 관한 깔끔한 정리
- What Every Programmer Should Know About Memory: http://su.pr/25vX8Y #
- 제목 그대로 개발자가 메모리에 관하여 알아야할 모든 것을 정리한 pdf 문서
- RT rickasaurus: "The Art of Picking Intel Registers" is a very well written article: http://is.gd/2fmnd #programming #
- 인텔 CPU의 레지스터에 대한 명쾌한 소개. 어셈블리에 관심있는 분들이라면 필독
- RT a_williams: New blog entry: Multithreading in C++0x part 6: Lazy initialization and double-checked locking wi.. http://bit.ly/8EgLC #
- C++0x에서의 멀티스레딩에 관한 시리즈글 6번째
![]() Perfection by ~jjjohn~ |
기타etc
- Europe's Best Paid Cities: http://su.pr/1No9Sm (Frankfurt is no. 9) #
- 프랑크푸르트가 유럽에서 아홉번째로 페이가 좋은 곳이라는군요...
- RT SingleFunction: HTML-To-PDF-Converter is a very easy to use and free HTML to PDF Converter. http://tr.im/x1m5 #
- 유용해보이는 HTML-To-PDF 변환 웹어플
- RT SingleFunction: Heapr allows you to search Google, Wolfram Alpha, Twitter, and Flickr all at once... http://tr.im/x1ty #
- 조합 검색엔진
- Twinslator - translate before you tweet: http://su.pr/2ywmwP #
- 트윗 번역기
- RT spolsky: superuser now open to the public: it's the StackOverflow site for power users. http://superuser.com #
- 파워유저를 위한 StackOverflow 형식의 소셜 질답 사이트 SuperUser
- I recommend these guys. bjoernknafla unclebobmartin #followfriday #ff #programming #
- 프로그래머분들이 팔로우하면 좋은 트위터들
- RT KageKirin: YouTube - Rage QuakeCon 2009 Trailer http://tinyurl.com/n4hvdb #
- 얼마전 QuakeCon에서 공개된 id Software의 신작 Rage 트레일러
- Global Internet Speeds: http://su.pr/2BeEXL 역시 한국인가요. ++b 독일도 나쁘진 않군요... #
- RT drchoi: 트위터(twitter)에서 원하는 글만 골라내어 매일매일 블로그나 일기장에 기록해 보자 http://drchoi.or.kr/1229 #
- 저는 아직 파이썬 스크립트를 쓰고 있습니다만, 지금 이 글처럼 트윗글들을 별도 정리해놓는데 유용해보이는 서비스
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Tweets' 카테고리의 다른 글
| My Recent Tweets 20090928 (0) | 2009/10/01 |
|---|---|
| My Recent Tweets 20090909 (0) | 2009/09/10 |
| My Recent Tweets 20090826 (0) | 2009/08/26 |
| My Recent Tweets 20090812 (0) | 2009/08/13 |
| My Recent Tweets 20090806 (0) | 2009/08/06 |
| My Recent Tweets 20090727 (0) | 2009/07/27 |
- 잘 알려지지 않은 C++0x의 유용한 기능들 - 마지막
Tweet
- Game Development
- 2009/08/07 23:52
- Bjarne Stroustrup, C++, C++0x, constexpr, CPP, literal, nullptr, raw string, template alias, typedef, Using, 리터럴, 초기화목록, 템플릿별칭
-
잘 알려지지 않은 C++0x의 유용한 기능들 - 첫번째
잘 알려지지 않은 C++0x의 유용한 기능들 - 두번째
널포인터nullptr
정수 0 이 아닌 널 포인터 지칭 전용의 리터럴 nullptr가 생겼습니다.
날 문자열 리터럴raw string literals
문자열에서 특수문자를 나타내기 위해 백슬래쉬로 이스케잎 처리 해주는 것은, 정규표현식 등에서 매우 번거로운 작업이 됩니다. (정규표현식의 경우 캐릭터 클래스라는 것에서 별도 용도로 백슬래쉬를 쓰기 때문이죠.) 가령, 정규표현식에서 백슬래쉬로 분리되어 있는 두 단어를 나타내는 \w\\w를 문자열로 표현하려면 다음과 같이 해야 합니다.
날 문자열 리터럴을 사용하면 다음과 같이 표현 가능합니다.
이 때, 그럼 문자열 내에 ]" 표현이 있는 경우 어떻게 하는가 하는 의문이 들 수 있습니다. 이런 경우도 해결할 수 있도록, [ 앞과 ] 뒤에 쓰이는 구분자를 일치만 시켜주면 쌍따옴표와 대괄호 사이에 얼마든지 추가 구분자를 포함시킬 수 있도록 하였습니다. 다음과 같이 말이죠.
템플릿 별칭template alias
다음과 같이 일부 템플릿 인자만을 원하는 타입으로 지정하여 일반 템플릿처럼 작동하는 식별자를 만들 수 있습니다.
이 때 using 구문이 쓰이며, 이는 다음처럼 기존 typedef의 대용으로 쓰일 수도 있습니다.
초기화 구문 단일화uniform initialization syntax and semantics
C++은 타입과 초기화 문맥에 근거해 개체를 초기화할 수 있는 여러가지 방법을 제공해 왔습니다.
그리고 다음과 같은 혼란도 있었죠.
이러한 혼란을 없애고자 {}-초기화 목록을 일관되게 사용할 수 있도록 했습니다.
사용자정의 리터럴user-defined literals
C++은 여러 내장 타입들에 대한 리터럴을 제공합니다.
그러나 C++98에서는 사용자정의 타입에 대한 리터럴을 정의할 수 없었죠. 가령, 다음과 같은 것들 말입니다.
C++0x에서는 다음 문법으로 사용자정의 리터럴을 지원합니다.
컴파일시점 계산을 위해 constexpr을 사용함에 주목하세요. 이를 다음과 같이 활용할 수 있습니다.
이러한 사용자정의 리터럴을 위한 접미사는 보통 한두글자로 매우 짧을텐데요, 이럴 경우 쉽게 충돌이 발생할 수 있습니다. 그를 방지하려면 다음처럼 namespace를 사용하시면 됩니다.
이상으로 C++0x의 잘 알려지지 않은 기능들에 대한 연재를 마칩니다. 이상을 포함한 더 자세한 정보는 Bjarne Stroustrup 선생이 운영하는 다음 웹페이지에서 확인하실 수 있습니다.
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
잘 알려지지 않은 C++0x의 유용한 기능들 - 두번째
널포인터nullptr
정수 0 이 아닌 널 포인터 지칭 전용의 리터럴 nullptr가 생겼습니다.
날 문자열 리터럴raw string literals
문자열에서 특수문자를 나타내기 위해 백슬래쉬로 이스케잎 처리 해주는 것은, 정규표현식 등에서 매우 번거로운 작업이 됩니다. (정규표현식의 경우 캐릭터 클래스라는 것에서 별도 용도로 백슬래쉬를 쓰기 때문이죠.) 가령, 정규표현식에서 백슬래쉬로 분리되어 있는 두 단어를 나타내는 \w\\w를 문자열로 표현하려면 다음과 같이 해야 합니다.
날 문자열 리터럴을 사용하면 다음과 같이 표현 가능합니다.
이 때, 그럼 문자열 내에 ]" 표현이 있는 경우 어떻게 하는가 하는 의문이 들 수 있습니다. 이런 경우도 해결할 수 있도록, [ 앞과 ] 뒤에 쓰이는 구분자를 일치만 시켜주면 쌍따옴표와 대괄호 사이에 얼마든지 추가 구분자를 포함시킬 수 있도록 하였습니다. 다음과 같이 말이죠.
템플릿 별칭template alias
다음과 같이 일부 템플릿 인자만을 원하는 타입으로 지정하여 일반 템플릿처럼 작동하는 식별자를 만들 수 있습니다.
이 때 using 구문이 쓰이며, 이는 다음처럼 기존 typedef의 대용으로 쓰일 수도 있습니다.
초기화 구문 단일화uniform initialization syntax and semantics
C++은 타입과 초기화 문맥에 근거해 개체를 초기화할 수 있는 여러가지 방법을 제공해 왔습니다.
그리고 다음과 같은 혼란도 있었죠.
이러한 혼란을 없애고자 {}-초기화 목록을 일관되게 사용할 수 있도록 했습니다.
사용자정의 리터럴user-defined literals
C++은 여러 내장 타입들에 대한 리터럴을 제공합니다.
그러나 C++98에서는 사용자정의 타입에 대한 리터럴을 정의할 수 없었죠. 가령, 다음과 같은 것들 말입니다.
C++0x에서는 다음 문법으로 사용자정의 리터럴을 지원합니다.
컴파일시점 계산을 위해 constexpr을 사용함에 주목하세요. 이를 다음과 같이 활용할 수 있습니다.
이러한 사용자정의 리터럴을 위한 접미사는 보통 한두글자로 매우 짧을텐데요, 이럴 경우 쉽게 충돌이 발생할 수 있습니다. 그를 방지하려면 다음처럼 namespace를 사용하시면 됩니다.
이상으로 C++0x의 잘 알려지지 않은 기능들에 대한 연재를 마칩니다. 이상을 포함한 더 자세한 정보는 Bjarne Stroustrup 선생이 운영하는 다음 웹페이지에서 확인하실 수 있습니다.
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Game Development' 카테고리의 다른 글
| GDC Europe 2009 참관기 (2) | 2009/08/25 |
|---|---|
| GDC 유럽 2009 참관 세션 스케줄 (5) | 2009/08/14 |
| 잘 알려지지 않은 C++0x의 유용한 기능들 - 마지막 (2) | 2009/08/07 |
| 크라이텍 한국 지사에서 일할 프로그래머분들 모십니다 (14) | 2009/08/01 |
| 잘 알려지지 않은 C++0x의 유용한 기능들 - 두번째 (2) | 2009/07/29 |
| 잘 알려지지 않은 C++0x의 유용한 기능들 - 첫번째 (8) | 2009/07/23 |
- 잘 알려지지 않은 C++0x의 유용한 기능들 - 두번째
Tweet
- Game Development
- 2009/07/29 05:02
- C++, C++0x, decltype, explicit, initializer, initializer lists, lambda, Range, 람다, 범위
-
명시적 변환 연산자explicit conversion operators
C++98에서는 혼란을 유발하는 암묵적 변환을 방지하지 위해 다음과 같이 변환 생성자에 명시적이어야 함을 지정할 수 있었습니다.
하지만 가능한 변환을 정의하는 방법은 이것 말고 하나가 더 있죠. 해당 클래스를 수정할 수 없는 경우, 상대편 클래스에 변환 연산자를 정의해주는 것이 그것입니다.
이 경우 이전에는 명시성 지정이 불가능했는데 C++0x에서 다음과 같이 가능해졌습니다.
범위 for 구문range for statement
begin()과 end() 함수로 규정되는 범위에 대한 반복을 간편한 문법으로 제공하는 기능입니다.
반환형 접미 구문suffix return type syntax
다음과 같은 함수 템플릿이 있습니다.
이 경우 반환형이 무엇일까요? 물론, x*y의 타입입니다만, 그를 어떻게 나타내느냐는 것이죠. C++0x의 decltype을 사용할 수 있습니다.
하지만 그 시점에 x, y가 스코프에 없기 때문에 오류입니다. 다음과 같이 하면 됩니다.
하지만 역시 만족스럽지 않습니다. 그래서 나온 해법이 반환형을 인자 다음에 선언할 수 있게 하는 겁니다.
[]는 람다에서 도입된 것으로 "반환형이 유도될 수 있거나 나중에 지정될 것임"을 나타냅니다. 이와 같이 함수가 리턴문으로만 구성된 경우에는 다음과 같이 decltype도 생략할 수 있습니다.
클래스 내 멤버 초기화in-class member initializers
C++98에서는 정수형의 static const 멤버에 대해서만 클래스 내 초기화가 가능했습니다.
C++0x에서는 비정적 데이터 멤버를 선언 시에 초기화할 수 있습니다. 이는 생성자가 많은 다음과 같은 경우에 아주 유용합니다.
hash_algorithm과 s 변수가 하나의 초기값만을 가짐에도 각 생성자마다 작업을 되풀이해야 합니다. 유지보수에 쥐약이죠. 이를 다음과 같이 할 수 있습니다.
생성자 초기화 목록이 클래스 내 선언 시점 초기화보다 우선한다는 점을 이용하면, 다음처럼 더 간단히 할 수도 있습니다.
목록 초기화initializer lists
다음과 같은 것들이 가능합니다.
목록 초기화가 더 이상 배열에만 국한되지 않는 것이죠. {}-목록을 받아들이는 것은 std::initializer_list<T> 타입의 인자를 가지는 함수들(보통 생성자)입니다. 가령,
컨테이너는 다음과 같이 "목록 초기화 생성자"를 제공할 수 있습니다.
표준 라이브러리의 컨테이너들은 이제 목록 초기화 생성자를 지원하고, 범위 for 구문에 나온 것처럼 이러한 초기화 목록은 범위(range)로도 활용 가능합니다.
이번 회는 여기까지입니다. 다음 회면 대충 마무리될듯. ^^
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Game Development' 카테고리의 다른 글
| 잘 알려지지 않은 C++0x의 유용한 기능들 - 마지막 (2) | 2009/08/07 |
|---|---|
| 크라이텍 한국 지사에서 일할 프로그래머분들 모십니다 (14) | 2009/08/01 |
| 잘 알려지지 않은 C++0x의 유용한 기능들 - 두번째 (2) | 2009/07/29 |
| 잘 알려지지 않은 C++0x의 유용한 기능들 - 첫번째 (8) | 2009/07/23 |
| Parallelism이란 무엇인가?! (0) | 2009/07/22 |
| 두가지 C++ 차세대 병렬 플랫폼 간단 비교 (1) | 2009/07/21 |
- My Recent Tweets 20090727
Tweet
- Tweets
- 2009/07/27 23:11
- Boost.Build, C++0x, C++예외, code review, continuation, DeMarco, fabricate, functional programming, metaprogramming, multicore, n-queens, parameterized motion, Regex, Regular Expression, thread local storage, vertex normal, 멀티코어, 메타프로그래밍, 정규표현, 정점법선, 최적화, 코드리뷰
-
RT programmingjoy: fabricate: The better "make". Finds dependencies automatically for any language. #programming http://bit.ly/MoR8R #- make 대체도구로 제시되는 파이썬 기반 빌드툴
RT programmingjoy: Yaaec (Yet another attempt to explain continuations) #programming http://bit.ly/INTd2 #- Continuation 개념에 대한 괜찮은 설명
RT programmingjoy: Breaking It Down: Regular Expressions for Regular Programmers #programming http://bit.ly/ArgNI #- 정규표현식 소개글
On the computation of vertex normals: http://su.pr/1femtY #- 정점 법선의 여러 계산법에 관한 고찰
C++ Exceptions: Pros and Cons: http://su.pr/7hmQLj #- 잘 쓰이지 않는 C++ 예외의 장단점을 명쾌하게 정리
Energy Conservation In Games: http://su.pr/2kwTNV #- 게임 조명계산에 에너지보존 법칙을 적용하기
RT programmingjoy: Sketchy Lisp - An Introduction to Functional Programming in Scheme #programming http://bit.ly/jImAj #- 함수적 프로그래밍에 대한 소개 문서
RT programmingjoy: What's the best first language for a programmer? #programming http://bit.ly/19PDtT #- 처음 배우는 프로그래밍 언어로 무엇이 좋을까요?
"Dexter" Season4 is coming! http://su.pr/97t508 기대됩니다! ^^ #- 제가 제일 좋아하는 미드 '덱스터'의 시즌4 트레일러입니다.
RT KageKirin: RT programmingjoy "Easy code review tools" - http://ping.fm/uc3A4 #- 오픈 소스 코드리뷰 도구들을 정래해놓았습니다.
프로그래머분들에게 programmingjoy 를 추천합니다! #followingfriday #- 프로그래머분들은 꼭 follow하시길!
RT cjunekim: RT estherderby More insights in 3x5 format: Agile in a Flash: http://agileinaflash.blogspot.com/ #- 코드 내 약어 작명 규칙
Inspiring! RT programmingjoy: N-Queens in a Tweet #programming http://bit.ly/vPOln #- 재미있는 프로그래밍 퀴즈
RT programmingjoy: What is Metaprogramming? #programming http://bit.ly/15Y75S #- 메타프로그래밍에 대한 명쾌한 소개
RT bjoernknafla: RT a_williams: Bjarne Stroustup's take on the removal of concepts from C++0x: http://bit.ly/XDlGN #- C++0x에서 cocept 제거된 것에 대한 Bjane Stroustup의 한마디
RT programmingjoy: Case study: Improving the performance of matrix multiplication by 296,260x :: PDF #programming http://bit.ly/SxaWF #- 알고리즘 및 하드웨어를 고려한 행렬 곱셈의 최적화를 보여주는 pdf 문서
Nobody Hates Software More Than Software Developers: http://su.pr/1jdZnt #- 다른 누구보다 개발자가 소프트웨어를 더 싫어하게 되는 현상에 대한 흥미로운 고찰 ^^
RT programmingjoy: Large scale MapReduce: Java vs C++ #programming http://bit.ly/BF1ng #- 이게 야후가 구글을 따라갈 수 없는 한가지 이유라는군요...
RT SoftTalkBlog: Actors: an alternative approach to locking and STM for parallel programming and multicore. http://bit.ly/2u3MeF #- 액터 기반 병렬 프로그래밍에 대한 소개
The Rise and Fall of C++0x Concepts: http://su.pr/9Fbnmi #- C++0x에서 concept 기능이 빠지게 된 것에 관한 또다른 글
Concepts in Multicore Programming - Lecture 2 & 3: http://su.pr/22hwjP http://su.pr/1HePLX #- 멀티코어 프로그래밍에 관한 흥미로운 강연. 영어 필수.
RT KageKirin: "Boost.Build: Building C projects" - #boost #tutorial http://ping.fm/MpJ2t #- Boost.Build 도구를 설명합니다.
RT martinfowler: DeMarco: "strict control is something that matters a lot on relatively useless projects " http://bit.ly/k32gm #- 톰 디마르코의 소프트웨어 공학에 대한 사망선고?!
Cross Platform Thread Local Storage: http://su.pr/2javVd #\- C++0x 표준 이전에 플랫폼 독립적 스레드 로컬 저장소를 구현하는 방법
Top 10 Programming Fonts: http://su.pr/300sKi #- 인기있는 프로그래밍용 폰트
The Removal of Concepts From C++0x: http://su.pr/1Zdbey #- 역시 C++0x의 concept 기능 누락 결정에 대한 또다른 글
A Beautiful Method to Find Peace of Mind: http://su.pr/2v8cks #- 마음의 평화를 얻기 위한 방법
Blizzard Tour from Joystiq: http://su.pr/2XNJm9 #- 블리자드 사무실 풍경
Multicore Programming Workshop - Lecture 1: http://su.pr/2usxY9 #- 위에 언급한 멀티코어 강연의 첫번째 비디오
2 great papers about parameterized motion: http://su.pr/9WX4bd http://su.pr/2ixBm2 #- 모션의 매개변수화에 관한 훌륭한 두 논문. 게임 속 고품질 애니메이션에 관심있는 분들에게 추천
* 이 포스트는 blogkorea [블코채널 : 웹, 컴퓨터, it에 관련된 유용한 정보 및 소식] 에 링크 되어있습니다.
'Tweets' 카테고리의 다른 글
| My Recent Tweets 20090812 (0) | 2009/08/13 |
|---|---|
| My Recent Tweets 20090806 (0) | 2009/08/06 |
| My Recent Tweets 20090727 (0) | 2009/07/27 |
| My Recent Tweets 20090715 (0) | 2009/07/15 |
| My Recent Tweets 20090705 (0) | 2009/07/06 |
| My Recent Tweets 20090624 (0) | 2009/06/25 |















Recent comment