並び順

ブックマーク数

期間指定

  • から
  • まで

201 - 240 件 / 427件

新着順 人気順

interpreterの検索結果201 - 240 件 / 427件

  • Schemeで書くかCで書くか - Gauche - A Scheme Interpreter

    Schemeで書くかCで書くか Scheme処理系をSchemeで書くのは、evalを使うという反則技無しでも、 Cで書くより楽である。その快適さを知っているSchemeインプリメンテータは、 Cで処理系を書く場合でも、最低限のプリミティブだけをCで書いておいて残りはSchemeで… という誘惑にどうしてもかられてしまう。 それに、そのアプローチはエンジニアリング的にも悪いことではない。 なるべく基本的な部分や性能が必要な部分だけをCで書いたいわばmicro-Scheme処理系を まずしっかりと作り、処理系の残りの部分はmicro-Schemeを使って書く。そうしておけば、 処理系自体の保守が楽だし、拡張する場合もmicro-Scheme処理系をリコンパイルしたり する手間が無くて良い。多くのScheme処理系はこのアプローチを取っているようである。 Gaucheでは、しかし、Scheme

    • GitHub - NeilFraser/JS-Interpreter: A sandboxed JavaScript interpreter in JavaScript.

      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

        GitHub - NeilFraser/JS-Interpreter: A sandboxed JavaScript interpreter in JavaScript.
      • JS-Interpreter – JavaScriptをサンドボックス実行

        JavaScriptが多用されるようになると、その安全性について考えるようになります。特にユーザが自由にJavaScriptを書けるような環境を提供する場合はそうです。一般的にそれは怖いので、ドメインを分けたり、そもそもJavaScriptを書けないようにしています。 しかしそれではJavaScriptの可能性をつぶすことにもなりかねません。安全にJavaScriptを実行できるようにする、それがJS-Interpreterです。 JS-Interpreterの使い方 JS-InterpreterはJavaScriptのコードをパースして実行します。全体を実行することも、行単位で実行していくこともできるようです。documentやlocationといった悪用されがちなオブジェクトは使えなくなっています。 JavaScriptをサンドボックス化できれば、利用範囲がさらに広がるのではないでしょ

          JS-Interpreter – JavaScriptをサンドボックス実行
        • GitHub - WebAssembly/spec: WebAssembly specification, reference interpreter, and test suite.

          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

            GitHub - WebAssembly/spec: WebAssembly specification, reference interpreter, and test suite.
          • GitHub - sebastienros/jint: Javascript Interpreter for .NET

            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              GitHub - sebastienros/jint: Javascript Interpreter for .NET
            • How to Write a Simple Interpreter in JavaScript

              Introduction to the compiling/interpreting process by making a simple calculator application in JavaScript Download source - 2.9 KB Writing Interpreters and Compilers Writing an interpreter or a compiler is one of the most educational tasks in programming because you can become familiarized with the details of the code interpretation and evaluation process. You can obtain much deeper knowledge of

              • Gauche - A Scheme Interpreter

                VMのスタック操作 (未完) GaucheのVMはごく単純なスタックマシンである。 だが、Schemeの場合、first class continuationを実現するために、 スタックフレームがヒープにセーブされたり、逆にヒープからスタックに復元されたりという 操作が入って来るので、うっかりすると自分でも混乱してバグを持ち込むことがある。 後で思い出せるように、ここに整理しておこう。 基本レジスタ スタック操作に深くかかわるのは次のレジスタ群。 ScmEnvFrame *env 現在の環境のトップ。いわゆるstatic link。直接には、 最も内側の静的スコープで見えている環境を指している。 upポインタをたぐってゆけば上の環境に行ける。upポインタはNULLで終端される。 ScmContFrame *cont 現在のコンティニュエーションフレームのトップ。 いわゆるactivatio

                • LangChainによるCode Interpreterオープンソース実装を試す|はまち

                  先日OpenAIからChatGPTのCode Interpreter が公開されて、その能力の高さと応用範囲の広さから界隈で大騒ぎになっていますね。そのコードインタープリター機能をFunction Callingを利用して、LangChainでオープンソース実装を行う試みも始まったようです。 というわけで、さっそく簡単に試食してみます。なお、技術的な詳細などはLangChainの公式ブログやGitHubリポジトリなどをご参照ください。 概要LangChainエージェント用のPythonコード実行環境として、専用のJupyterカーネルであるCodeBoxを準備し、その中でPythonインタープリターを実行することで機能を実現しているとのことです。 入力ファイルとして、ローカルのファイルも指定できますが、URLを指定するとネット情報も取得できる。 Google Colabで試してみる簡単にG

                    LangChainによるCode Interpreterオープンソース実装を試す|はまち
                  • A Julia interpreter and debugger

                    The authors are pleased to announce the release of a fully-featured debugger for Julia. You can now easily debug and introspect Julia code in a variety of ways: Step into functions and manually walk through your code while inspecting its state Set breakpoints and trap errors, allowing you to discover what went wrong at the point of trouble Interactively update and replace existing code to rapidly

                    • Rucheme / Scheme(subset) interpreter on Ruby

                      What's Rucheme? How to get Rucheme? How to install Rucheme?Ruby strscan Rucheme How to use Rucheme?How to use Rucheme Interactive Frontend? How to see Detail of Evaluation? How Rucheme execute?Proper Tail recursion Binding with Ruby Why do you develop Rucheme?(or Chatting) ToDo Bibliography Fri, 21 Mar 2003 19:34:05 +0900 , v3 Sun, 09 Mar 2003 15:08:21 +0900 , v2 Fri, 07 Mar 2003 10:04:55 +0900 ,

                      • open-interpreter-windows11

                        ネットワーク構築やサーバ構築をメインに自身が学んだこと、作成した物をまとめています

                        • JSqueak: A simple Squeak interpreter that is usably fast

                          Please note: JSqueak is not a Squeak system for general use. While this version will run a few interesting examples, end-users should refer to the Squeak home page for suitable implementations and documentation. This is a download page that offers to developers the tools needed to run a Squeak image in a Java environment. Welcome to the JSqueak download page. JSqueak is a Squeak interpreter writte

                          • GitHub - babashka/babashka: Native, fast starting Clojure interpreter for scripting

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              GitHub - babashka/babashka: Native, fast starting Clojure interpreter for scripting
                            • Former Fukushima Plant Worker - Press Conference (with interpreter)

                              Inside of Fukushima Plant (Voyeur Spy Video) http://www.youtube.com/watch?v=rujSht24PR4 Tomohiko Suzuki, Former Fukushima Daiichi Nuclear Power Plant Worker, Press Conference (with interpreter)

                              • あなたは書ける?いや読める?·Kit's JavaScript Brainfuck Interpreter MOONGIFT

                                世の中には色々なプログラミング言語が存在する。動作環境や目的によって使い分けるべきプログラミング言語ではあるが、世の中には理解するのすら難解な言語も存在する。例えばスペース、タブ、改行だけで記述するWhitespaceもその一つだ。 きちんと出力されるのが驚き そして><+-.,[]などの起動だけで記述するのがBrainfuckだ。あまり良い言葉ではないので通常はBrainf*ckと書いたりする。そのBrainf*ckインタプリタをJavaScriptで記述したのがKit's JavaScript Brainfuck Interpreterだ。 今回紹介するオープンソース・ソフトウェアはKit's JavaScript Brainfuck Interpreter、Brainf*ckをJavaScript上で実行するソフトウェアだ。 Kit's JavaScript Brainfuck In

                                  あなたは書ける?いや読める?·Kit's JavaScript Brainfuck Interpreter MOONGIFT
                                • Linux - : bad interpreter: そのようなファイルやディレクトリはありません

                                  このエラーは改行コードの違いにより起こるエラーです。 FTPのASCIIモードで更新するファイルを転送している場合などは このような問題は起こりにくいのですが、 Windows上でファイル編集して、そのままSamba経由で ファイルを保存している場合などこの問題にあたりやすいです。 このような方法でLinux上のファイルを読み書きしている場合 いつも気をつけておかないと無駄な時間をすごすことになりかねます。 さて、改行コードの直し方ですが、 一番手っ取り早いのはFTPのASCIIモードで転送することでしょうか。 これなら自動的に改行コードを変換してくれます。 ここではLinux上で改行コードの変換の仕方について扱いと思います。 nkf -Lu [入力ファイル] > [出力ファイル] これで改行コードが変換されたファイルが生成されます。 入

                                  • Little Lisp interpreter

                                    Little Lisp is an interpreter that supports function invocation, lambdas, lets, ifs, numbers, strings, a few library functions, and lists. I wrote it for a lightning talk at the Recurse Center to show how easy it is to write an interpreter. The code is 116 lines of JavaScript. I will explain how it works. First, let’s learn some Lisp. An atom, the simplest Lisp form:

                                    • Haskellの型パズルで作るMini Interpreter

                                      「効率よく素数を計算するプログラムを作る課題」を出したら「コンパイル時に素数判定を行うプログラムが優勝した」なんて話がありますが[要出典]、今回は型レベル文字列で数式を渡すとコンパイル時に計算を行ってくれる型レベルインタプリタを作ってみようと思います[1] 動作イメージはこんな感じ > :kind! Calc "(1 + 1) * (2 + 0) + 10" Calc "(1 + 1) * (2 + 0) + 10" :: Nat = 14 GHCiで :kind! を使うと与えられた型の型シノニムや型族による変換を評価してくれます。つまり上記のプログラムは数式を表す型レベル文字列を評価してNatカインドの14という型に評価されているというわけです。 元ネタはQuramyさんのこの記事です 今朝この記事を引用した友人が 「文字列型を型レベルで扱える似たような機能って他の静的型付け言語にもあ

                                        Haskellの型パズルで作るMini Interpreter
                                      • Ch -- an embeddable C/C++ interpreter, C and C++ scripting language

                                        Home        |        For Teachers and Students        |        Products        |       Support       |       Download       |       Store       |        Company Ch is a C/C++ interpreter and scripting language environment. It is used by teachers, students, engineers and scientists around the world to learn math, computing, C/C++, and write cross-platform code and embedded scripts quickly and effic

                                        • GitHub - felixhao28/JSCPP: A simple C++ interpreter written in JavaScript

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                            GitHub - felixhao28/JSCPP: A simple C++ interpreter written in JavaScript
                                          • GitHub - shroominic/codeinterpreter-api: 👾 Open source implementation of the ChatGPT Code Interpreter

                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                              GitHub - shroominic/codeinterpreter-api: 👾 Open source implementation of the ChatGPT Code Interpreter
                                            • My experience crafting an interpreter with Rust

                                              Last year I finally decided to learn some Rust. The official book by Steve Klabnik and Carol Nichols is excellent, but even after reading it and working on some small code exercises, I felt that I needed more to really understand the language. I wanted to work on a small project to get some hands-on experience, but most of my ideas didn’t feel very well suited for Rust. Then I started reading the

                                                My experience crafting an interpreter with Rust
                                              • brainfuck interpreter in Coq - まめめも

                                                Haskell 、Erlang の次のブームは Coq に違いありません。とりあえず基本ということで、Coq でひねりのない brainfuck インタプリタを書いてみました。動作例。Coq のコードが色づけできないとは何事か。 Eval compute in (finite_execute " +++++++++[>++++++++>+++++++++++>+++++<<< -]>.>++.+++++++..+++.>-.------------.<++ ++++++.--------.+++.------.--------.>+. " "" 500). = "Hello, world!"%string : string 残念ながら (?) Coq では停止性が保障された関数しか定義できません。ここでは最大評価ステップを指定しないといけないという仕様にしてごまかしています (引数の 50

                                                  brainfuck interpreter in Coq - まめめも
                                                • 【コラム】ダイナミックObjective-C (116) デザインパターンをObjective-Cで - Interpreter (2) | エンタープライズ | マイコミジャーナル

                                                  Interpreterデザインパターンは、非常にプログラミング言語よりのパターンだ。自分で、新しくて、それでいながら簡易なプログラミング言語をデザインするときに使う事になるだろう。それ以外の場合は、なかなかお目にかかれないパターンだ。 Cocoaにそのようなパターンを使っているクラスがあるのだろうか? 実は、ピッタリのものがある。それは、Core Dataで使われている、オブジェクトを抽出するための文法だ。 Cocoa Predicates Core Dataは、MVCアーキテクチャでいうと、モデルをサポートするものとなる。モデルクラスの作成を強力にバックアプする。クラスのモデリングのための専用ツールを用意し、データの永続性をほぼ完全に実現している。 Core Dataは、その出自にEnterprise Objects Framework (EOF)の技術がある。EOFもCocoaと並んで

                                                  • A Lisp Interpreter in Go (2)

                                                    続 Go 言語による Lisp インタープリタ 2015-05-27 (鈴) 1. はじめに 2. パッケージ編成と基本的な使い方 3. 無限多倍長整数と浮動小数点数の混合演算 4. ゴルーチンによる並行実行のための future/force 4.1 インタープリタのスレッド・セーフ化 4.2 future と force の実装 5. その他の修正 6. 簡単な速度比較 7. おわりに lisp-1.3.zip: Lisp インタープリタのソース一式 (40746 バイト) 1. はじめに 前編 では伝統的な仕様に近い,しかしマクロ展開での変数捕捉の問題を解決した Lisp インタープリタを Dart 版実装 の移植として与えた。 Go 言語への移植での主な論点は,オブジェクトの動的な振舞のための実行時型情報をどこがもつのかという図式と, プログラム実行時の例外の取り扱いが,典型的なオブ

                                                      A Lisp Interpreter in Go (2)
                                                    • Simple Scheme interpreter in Perl - Shohei Yoshida's Diary

                                                      昨日 Brainfuckを書いてみたので、今日は Scheme(Lisp)の処理系を書いてみました。 当然本格的なものではなく、簡単なものです。 Lispy: Scheme Interpreter in Python の Perl版になります。 kidd/hascheme · GitHub に lis.pyにインスパイアされて書いたという Scheme in Perlがあったの ですが、本格的な感じだし、いろいろモジュール使いまくっていたので、 とりあえず元のものに忠実に作ってみました。 コード 実行 ファイルを標準入力にリダイレクトした場合、元の式と結果を表示するように してみました。Schemeとは若干挙動が違うものがあるようにも思えますが、 lis.pyと同じように動作していると思われます。 % perl lis.pl < test.txt 12345678 => 12345678

                                                        Simple Scheme interpreter in Perl - Shohei Yoshida's Diary
                                                      • Amazon Bedrock で Interpreter を開発 ! ~日本語だけで AWS Lambda のコード生成とデプロイとテストまで完結~ - builders.flash☆ - 変化を求めるデベロッパーを応援するウェブマガジン | AWS

                                                        Builder の皆様こんにちは ! 機械学習ソリューションアーキテクトの呉です。 2023 年 9 月 28 日 (日本時間) に大手 AI 企業が提供する高性能な基盤モデル (FM) を単一の API で選択できるフルマネージド型サービス「Amazon Bedrock」が一般提供開始となり、AWS のアカウントを持っていれば、API を叩くだけで誰でも 生成系 AI を試せるようになりました。(ちなみに前回の 記事 を読んでいただければ、生成系 AI とは何 ? や、API ではなくそもそも生成系 AI をどうやって動かせるのか、どうやって Fine Tune するのか、みたいなことを学べるので、ぜひご一読いただけると幸いです)。 自前でモデルを用意せずとも、API を叩くだけで生成系 AI を使えるということは、機械学習の経験がないアプリケーション開発者でも簡単に生成系 AI を組み

                                                          Amazon Bedrock で Interpreter を開発 ! ~日本語だけで AWS Lambda のコード生成とデプロイとテストまで完結~ - builders.flash☆ - 変化を求めるデベロッパーを応援するウェブマガジン | AWS
                                                        • Writing An Interpreter In 15 Minutes With Ruby

                                                          Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. At the last regular London Ruby User Group meetup, James Coglan gave a talk on how to implement a Scheme interpreter in 15 minutes. He recorded a video of the coding in progress beforehand so he could focus on the narration so unfortunately the video (available in a higher resolution here from Vimeo) is without sound. Ther

                                                          • GitHub - int3/metajs: Visualize your Javascript with a CPS metacircular interpreter.

                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                              GitHub - int3/metajs: Visualize your Javascript with a CPS metacircular interpreter.
                                                            • Ruby Templating: Baking an Interpreter | AppSignal Blog

                                                              We hope you’ve got your stroopwafels warmed on top of your coffee because today we’re gluing things up with sticky stroop (the syrup that makes the two halves of a stroopwafel stick together). In the first two parts of our series, we baked a Lexer and a Parser and now, we’re adding the Interpreter and gluing things together by pouring stroop over them. Ingredients Alright! Let’s get the kitchen re

                                                                Ruby Templating: Baking an Interpreter | AppSignal Blog
                                                              • Extending and Embedding the Python Interpreter

                                                                Pythonインタプリタの拡張と組み込み Guido van Rossum Corporation for National Research Initiatives 1895 Preston White Drive, Reston, VA 20191, USA E-mail: guido@python.org March 22, 2000 Release 1.5.2 日本語訳: 青木宣明 (Aoki Nobuaki) E-mail: nobu _at_ strawhat.net 2000年7月29日

                                                                • GitHub - microsoft/schemy: A lightweight embeddable Scheme-like interpreter for configuration

                                                                  Schemy was originally designed at Microsoft 365 to define complex machine learning model workflows that handle web API requests. Since Schemy scripts can be easier to develop, modify, and deploy than full fledged .NET application or modules, the development and maintenance become more agile, and concerns are better separated - request routing is handled by web server, request handling logics are d

                                                                    GitHub - microsoft/schemy: A lightweight embeddable Scheme-like interpreter for configuration
                                                                  • Open Interpreter搭載のオープンソース「01」を試す|ニケちゃん

                                                                    こんにちは、ニケです。 色々あって最近 Open Interpreter のDiscordサーバーのMODになりました。 今回はその Open Interpreter から新しいオープンソースプロジェクトである「01」が発表されたので紹介したいと思います。 01 とは?Open Interpreterが搭載されたオープンソースプロジェクトで、2024年3月21日に発表されました。 「オーワン」と読むそうです。 Introducing the 01 Developer Preview. Order or build your own today: https://t.co/ROEcj9jVPX The 01 Light is a portable voice interface that controls your home computer. It can see your screen,

                                                                      Open Interpreter搭載のオープンソース「01」を試す|ニケちゃん
                                                                    • GitHub - syuu1228/uosv: µOSv is lightweight edition of OSv, which uses mruby interpreter instead of Java VM for its system language.

                                                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                        GitHub - syuu1228/uosv: µOSv is lightweight edition of OSv, which uses mruby interpreter instead of Java VM for its system language.
                                                                      • inside javascriptcore's low-level interpreter — wingolog

                                                                        Good day, hackers! And hello to the rest of you, too, though I fear that this article isn't for you. In the vertical inches that follow, we're going to nerd out with JavaScriptCore's new low-level interpreter. So for those of you that are still with me, refill that coffee cup, and get ready for a look into a lovely hack! hot corn, cold corn Earlier this year, JavaScriptCore got a new interpreter,

                                                                        • GitHub - ajyoon/systemf: a brainfuck interpreter supporting linux syscalls with an example HTTP server

                                                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                            GitHub - ajyoon/systemf: a brainfuck interpreter supporting linux syscalls with an example HTTP server
                                                                          • How to Write an Interpreter in One Day

                                                                            How to Write an Interpreter in One Day by Daniel Franke On a Friday evening I was chatting with my Programming Language Principles instructor, Professor Manuel Bermúdez. That afternoon he had introduced the class to an obscure language called RPAL, the Right-reference Pedagogical Algorithmic Language, designed by Wozencraft and Evans for the purpose of teaching functional programming. I had never

                                                                            • GitHub - Constellation/iv: ECMAScript Lexer / Parser / Interpreter / VM / method JIT written in C++

                                                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                GitHub - Constellation/iv: ECMAScript Lexer / Parser / Interpreter / VM / method JIT written in C++
                                                                              • GitHub - yoshihiro503/ocamltter: ocamltter is a Twitter client in OCaml. This client run on the OCaml toplevel interpreter. Then each operation on the client is just a OCaml function and you can develop a twitter program interactively.

                                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                  GitHub - yoshihiro503/ocamltter: ocamltter is a Twitter client in OCaml. This client run on the OCaml toplevel interpreter. Then each operation on the client is just a OCaml function and you can develop a twitter program interactively.
                                                                                • GitHub - go-interpreter/wagon: wagon, a WebAssembly-based Go interpreter, for Go.

                                                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                                                                                    GitHub - go-interpreter/wagon: wagon, a WebAssembly-based Go interpreter, for Go.