Saturday, August 8, 2009

서버 - 사이드 자바 스크립트 표준 라이브러리

009년 1월 29일 - 21:58 - 크리스 Zumbrunn
Kevin Dangoor asks what Server Side JavaScript needs and launches more talk about a standard library for Javascript on the server-side. 케빈 Dangoor 서버 사이드 자바 스크립트로 무엇을 요구하고 서버 - 측면에 자바 스크립트에 대한 표준 라이브러리에 대한 자세한 이야기가 시작됩니다.
Having a unified API for libraries in different environments would in 서로 다른 환경에서 도서관에 대한 통일된 API를하는 것이 my opinion be nice especially because it would allow higher level 특히 내 의견을 허용하기 때문에 더 높은 수준의 것이 좋은가 modules to be shared between different server-side javascript 모듈을 다른 서버 - 쪽 JavaScript 사이에 공유할 수 environments. 환경. One problem that has slowed this from happening in the 에서 일어나는 일들이 더뎌지고있다는 한 가지 문제 past has been that in Java-based environments like Helma , Sling and 과거가있다는 Helma, 슬링과 같은에서 Java - 기반 환경 Xjs , Rhino makes the direct scripting of Java packages so easy, that Xjs, Rhino를 자바 스크립트의 직접 만들어 그렇게 쉬운 패키지 some stakeholders don't believe the added burden of maintaining an 일부 투자자 믿지 못하는 유지의 추가 부담 additional API layer in javascript is reasonable for the benefit they 자바 스크립트 API를 레이어의 추가 이익을 위해 합리적인 사람들이 would get from it. 에서 얻을 것이다.
Some pointers to current server-side javascript library 현재 서버에 어떤 포인터 - 사이드 자바 스크립트 라이브러리 projects in the realm of the Helma project and to other efforts for a the Helma 프로젝트의 다른 영역에서 사업을하고 노력을 standard library for JS: JS에 대한 표준 라이브러리 :
The current Helma 1 versions come with two libraries containing 현재 Helma 1 버전을 포함하는 두 개의 라이브러리를 같이 several modules. 여러 가지 모듈을 제공합니다. The HelmaLib provides modules for core functionality 이 HelmaLib 핵심 기능에 대한 모듈을 제공합니다 such as Database, File, Ftp, Http, Smtp and SSH, some that extend 데이터베이스, 파일, FTP를는 HTTP, SMTP 및 SSH를, 같은 일부가 연장 built-in prototypes, and a few others. 내장 - 프로토 타입에, 그리고 몇 가지 다른. The Jala library adds further 이 Jala 라이브러리 추가에 추가 modules such as DNS, MP3 and XML-RPC and utility modules such as i18n, DNS를, MP3와 같은 모듈는 XML - RPC와 유틸리티 모듈 i18n 등 image manipulation, captcha, HtmlDocument, RemoteContent, Podcast, Rss 이미지 조작, captcha를, HtmlDocument, RemoteContent, Podcast를했고, RSS and other XML related modules. 그리고 다른 XML 관련 모듈을 제공합니다.
Modules are included either via a configuration file or at runtime via 모듈은 런타임에 구성 파일을 통해 또는를 통해이 포함되어있습니다 a method call. 수있는 방법을 전화. A module is only loaded once, even if included multiple 한 모듈을 단 한번에 여러 개 포함된 경우에도 로드된 times. 번. In the context of Helma 1, modules are loaded into the global Helma 1의 맥락에서, 모듈은 세계적으로로드된다 scope and they need to be nice and restrict themselves to a save 친절하게 범위와 그들이 필요로하고 있음을 스스로 제한할 namespace. 네임 스페이스.
For Helma NG , the way modules are included is changed to eliminate any possible namespace conflicts. Helma NG를 들어, 모듈을 포함하는 방법은 가능한 모든 네임 스페이스의 충돌 방지를 변경됩니다. Each module in Helma NG lives in its own 각 모듈은 자신의 삶에 Helma NG를 scope and can selectively import other modules or portions thereof into its scope. 범위선택의 범위를 다른 모듈 또는 그 일부를 가져올 수있습니다. Here again, when modules are imported in different 여기에 또 다른 모듈을 수입하는 경우 scopes, each module is only actually loaded once. 스코프 유일한 사실은 한 번 읽어 각 모듈입니다.
There has been some discussion with the goal of a unified library/ 거기 통일 도서관의 목표로 논의를하고있다 / modules architecture between different projects over in the Helma NG the Helma 넘는 NG를 서로 다른 프로젝트간에 모듈 아키텍처 group. 그룹. One of the major goals in Peter Michaux's xjs project is to provide a standard library and a shared module loading mechanism. 한 피터 미쇼의 xjs 프로젝트의 주요 목표의 공유 모듈 로딩 메커니즘 표준 라이브러리를 제공하는 것입니다.
29.1.2009, 19:58 2009년 1월 29일, 19:58

No comments: