並び順

ブックマーク数

期間指定

  • から
  • まで

201 - 240 件 / 438件

新着順 人気順

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

  • (Re)writing an interpreter in Rust

    (Re)writing an interpreter in Rust By Danny van Kooten on Nov 17, 2022 on Permalink. Two years ago I wrote my first interpreter for a toy programming language called Monkey, in C. The thing works and is pretty fast, but I remember a lot of frustration dealing with segfaults or hard-to-track down memory leaks as soon as I introduced heap allocated values. Much of this is undoubtedly due to me not b

      (Re)writing an interpreter in Rust
    • 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

      • 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
        • (An ((Even Better) Lisp) Interpreter (in Python))

          In a previous essay I showed how to write a simple Lisp interpreter in 90 lines of Python: lis.py. In this essay I make the implementation, lispy.py, three times more complicated, but more complete. Each section handles an addition. (1) New data types: string, boolean, complex, port Adding a new data type to Lispy has three parts: the internal representation of the data, the procedures that operat

          • Let’s Write a Web Assembly Interpreter (Part 1)

            Hey everyone. I’m a bit obsessed with web assembly, so I thought i’d tried to write some semi-higher quality information about what I’ve learned. Some months ago I just started reading the web assembly spec and poking around at bytes. It all started as just a fundamental question “what’s even in here?” What makes the magic of all this “faster than JavaScript” stuff work? It ended up being pretty f

              Let’s Write a Web Assembly Interpreter (Part 1)
            • GitHub - wuub/SublimeREPL: SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)

              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 - wuub/SublimeREPL: SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)
              • 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をサンドボックス実行
                  • 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
                    • 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
                        • Gauche - A Scheme Interpreter

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

                          • Answers and Questions » Blog Archive » Shumway: a SWF interpreter entirely in JavaScript

                            Today, Mozilla Research publicly announced the Shumway project. Shumway is JS/HTML library which displays SWF (Flash) content entirely using open web technologies. Live demo below: Click the car and then use the arrow keys to drive. I am very excited about this project. There is a lot of Flash content on the web, and Flash is not available for many mobile users, including most new users of Firefox

                            • 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 ,

                                • Windows11でOpen InterpreterのLocalモデルを動かす方法

                                  # はじめに Open Interpreterは、OpenAIのコードインタープリターをローカルで実行するためのオープンソースの実装です。このツールを使用すると、ユーザーは自分のコンピュータで言語モデルを使用してコードを実行できます。具体的には、Python、JavaScript、Shellなどのコードをローカルで実行

                                    Windows11でOpen InterpreterのLocalモデルを動かす方法
                                  • 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

                                    • 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
                                        • Open Interpreterのアップデート - 2023年9月26日|npaka

                                          2023年9月26日の「Open Interpreter」にアップデートをまとめました。 ・The Generator Update 1. Open Interpreterの主なアップデート「Open Interpreter」の主なアップデートは、次のとおりです。 ・Open Interpreterをアプリに組み込むことが容易に ・100以上の新しいLLMをサポート ・カスタム設定ファイル ・支出制限 ・チャットの再開 1-1. Open Interpreterをアプリに組み込むことが容易に「Open Interpreter」は、Pythonのジェネレータベースでゼロから再構築されました。これによって、開発者が「Open Interpreter」をアプリに組み込むことが容易になりました。 ・AIのコードの取得 ・AIのコードを1行ずつ取得 ・AIのメッセージの取得 1-2. 100以上の新

                                            Open Interpreterのアップデート - 2023年9月26日|npaka
                                          • 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 - まめめも
                                            • 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
                                              • 【コラム】ダイナミック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)
                                                  • GitHub - jcubic/lips: Scheme based powerful lisp 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 - jcubic/lips: Scheme based powerful lisp interpreter in JavaScript
                                                    • 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:

                                                        • (How to Write a (Lisp) Interpreter (in Python))

                                                          This page has two purposes: to describe how to implement computer language interpreters in general, and in particular to build an interpreter for most of the Scheme dialect of Lisp using Python 3 as the implementation language. I call my language and interpreter Lispy (lis.py). Years ago, I showed how to write a semi-practical Scheme interpreter Java and in in Common Lisp). This time around the go

                                                          • 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 - 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
                                                                • 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
                                                                  • 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

                                                                    • 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
                                                                      • 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.
                                                                        • 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
                                                                            • 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