Replies: 8 comments 9 replies
-
감상평
나누고 싶은 이야기2.5장
2.6장
다음주에 뵈어용
|
Beta Was this translation helpful? Give feedback.
-
감상평코루틴이라는 개념을 이해하기 위해 콜백부터 빌드업하는 과정이 아주 인상깊었다. (갓샤오펑 쵝오) 으하하 2장 정리 중에 있는데 속도가 안난다 큰일이다 ㄷㄷ ㅎㅎㅎㅎㅎㅎㅎㅎ ;; 우헤헤 |
Beta Was this translation helpful? Give feedback.
-
느낀점블로킹,논블로킹 방식에 대한 개념을 한번 더 훑고 지나갈 수 있어서 좋았다. 이벤트 기반 프로프로그래밍은 자바스크립트에서 시작된 개념인줄로만 알았는데
가 궁금해졌다. *이벤트 루프는 자바스크립트 엔진이 아닌 런타임에서 가지고 있는 하나의 장치고, 단지 자바스크립트 코드를 실행하기위해 자바스크립트 엔진을 이용할 뿐이다. (역주: 실제로 V8 엔진에는 이벤트 루프를 관리하는 코드가 없다.) void MessagePumpDefault::Run(Delegate* delegate) {
AutoReset<bool> auto_reset_keep_running(&keep_running_, true);
for (;;) {
#if defined(OS_APPLE)
mac::ScopedNSAutoreleasePool autorelease_pool;
#endif
Delegate::NextWorkInfo next_work_info = delegate->DoWork();
bool has_more_immediate_work = next_work_info.is_immediate();
if (!keep_running_)
break;
if (has_more_immediate_work)
continue;
has_more_immediate_work = delegate->DoIdleWork();
if (!keep_running_)
break;
if (has_more_immediate_work)
continue;
if (next_work_info.delayed_run_time.is_max()) {
event_.Wait();
} else {
event_.TimedWait(next_work_info.remaining_delay());
}
// Since event_ is auto-reset, we don't need to do anything special here
// other than service each delegate method.
}
} *실제 이벤트 루프가 어떻게 구현되어 있는지 알아본 사람의 블로그를 보고 코드를 가지고 왔다. (정말정말정말대박존경스럽....) 사실 작년에 봤을때 제대로 이해하지 못했는데.. 다시 보니 정말 새롭다. 언어,런타임,실행엔진 레이어에 대한 개념도 깊게 생각해본적 없었는데 책을 읽으면서 한번 더 고민해보게 되며 점점 개념이 확립이 되어가는 느낌이었다. 또한 이벤트루프,이벤트핸들러,핸들러 함수 등 어째서 네이밍이 이렇게 되었는지에 대해 나는 한번이라도 고민해본적이 있는가? 에 대한 생각이 들었다. 궁금증
⇒ 자바스크립트가 비동기 언어인 이유는 스레드가 하나이기 때문에 어쩔 수 없이 비동기로 설계된다고 생각했는데 그게 아니었던건가..? 그럼 단일 스레드인데 동기적으로 설계도 가능한가?
라는 궁금증들이 있었고 챗지피티를 사용해 답변을 얻어냈지만 구글링을 통한 크로스체킹을 하지 못한 관계로.. 좀더 공부가 필요할 것 같다는 생각이 든다. 어떤 이슈냐 하면,,
|
Beta Was this translation helpful? Give feedback.
-
동기/비동기/블로킹/논블로킹 매번 헷갈리는 개념이었는데 책을 읽으니 어느정도 정리가 되어서 좋았습니다~
|
Beta Was this translation helpful? Give feedback.
-
감상)
메모)
|
Beta Was this translation helpful? Give feedback.
-
감상평
|
Beta Was this translation helpful? Give feedback.
-
밑줄친 부분들
소감
|
Beta Was this translation helpful? Give feedback.
-
한결님, 동희님, 주현님 다음주까지 정리..화이팅~ |
Beta Was this translation helpful? Give feedback.
-
감상평을 남겨주세요~!
due: 6/29 11시 전!
➕ 연수) 제목에 Chapter 3이라 되어 있어 Chapter 2.5-10으로 수정했습니다!
Beta Was this translation helpful? Give feedback.
All reactions