並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 46件

新着順 人気順

javascript slice stringsの検索結果1 - 40 件 / 46件

  • プロと読み解く Ruby 3.1 NEWS - クックパッド開発者ブログ

    技術部の笹田(ko1)と遠藤(mame)です。クックパッドで Ruby (MRI: Matz Ruby Implementation、いわゆる ruby コマンド) の開発をしています。お金をもらって Ruby を開発しているのでプロの Ruby コミッタです。 本日 12/25 に、ついに Ruby 3.1.0 がリリースされました(Ruby 3.1.0 リリース )。今年も Ruby 3.1 の NEWS.md ファイルの解説をします。NEWS ファイルとは何か、は以前の記事を見てください。 プロと読み解く Ruby 2.6 NEWS ファイル - クックパッド開発者ブログ プロと読み解くRuby 2.7 NEWS - クックパッド開発者ブログ プロと読み解くRuby 3.0 NEWS - クックパッド開発者ブログ 本記事は新機能を解説することもさることながら、変更が入った背景や苦労な

      プロと読み解く Ruby 3.1 NEWS - クックパッド開発者ブログ
    • Introducing Ezno

      Ezno is an experimental compiler I have been working on and off for a while. In short, it is a JavaScript compiler featuring checking, correctness and performance for building full-stack (rendering on the client and server) websites. This post is just an overview of some of the features I have been working on which I think are quite cool as well an overview on the project philosophy ;) It is still

        Introducing Ezno
      • SonarCloudと始める静的コード解析 〜ソフトウェア品質向上のための第一歩〜 - ZOZO TECH BLOG

        はじめに こんにちは。FAANSバックエンドエンジニアの浜口(@xlgorbylx)です。普段はFAANSのバックエンドシステムの開発をしています。 FAANSとは、弊社が2022年8月に正式ローンチした、アパレル店舗のショップスタッフの販売サポートツールです。例えば、ZOZOTOWN上で実店舗の在庫取り置きができる機能や、コーディネート投稿の機能などを備えています。投稿されたコーディネートはZOZOTOWNやWEAR、Yahoo!ショッピング、ブランド様のECサイト等に連携が可能です。これによりお客様のコーディネート選びをサポートし、購買体験をより充実したものにします。機能の詳細に関しましては、下記プレスリリースをご覧ください。 corp.zozo.com 本稿では、Go言語で実装されたFAANSのバックエンドシステムについて、SonarSource社の提供するSaaSである「Sonar

          SonarCloudと始める静的コード解析 〜ソフトウェア品質向上のための第一歩〜 - ZOZO TECH BLOG
        • CVE-2024-4367 - Arbitrary JavaScript execution in PDF.js - Codean Labs

          This post details CVE-2024-4367, a vulnerability in PDF.js found by Codean Labs. PDF.js is a JavaScript-based PDF viewer maintained by Mozilla. This bug allows an attacker to execute arbitrary JavaScript code as soon as a malicious PDF file is opened. This affects all Firefox users (<126) because PDF.js is used by Firefox to show PDF files, but also seriously impacts many web- and Electron-based a

            CVE-2024-4367 - Arbitrary JavaScript execution in PDF.js - Codean Labs
          • JS Self-Profiling API In Practice

            Nic Jansma (@nicj) is a software developer at Akamai building high-performance websites, apps and open-source tools. Table of Contents The JS Self-Profiling API What is Sampled Profiling? Downsides to Sampled Profiling API Document Policy API Shape Sample Interval Buffer Who to Profile When to Profile Specific Operations User Interactions Page Load Overhead Anatomy of a Profile Beaconing Size Comp

              JS Self-Profiling API In Practice
            • Hypershell: A Type-Level DSL for Shell-Scripting in Rust | Context-Generic Programming

              Discuss on Reddit, Lobsters, and Hacker News. Summary I am thrilled to introduce Hypershell, a modular, type-level domain-specific language (DSL) for writing shell-script-like programs in Rust. Hypershell is powered by context-generic programming (CGP), which makes it possible for users to extend or modify both the language syntax and semantics. Table of Contents Estimated reading time: 1~2 hours

                Hypershell: A Type-Level DSL for Shell-Scripting in Rust | Context-Generic Programming
              • Text2Landscape: Visualize a Text in Multiple Spaces with R — Force-directed networks, Biofabric, Word Embeddings, Principal Component Analysis and Self-Organizing Maps

                First Visualizations: Frequencies Let us first visualize word frequencies. We can get these frequencies with the quanteda package, which implies transforming the column of lemmas (text.lemmas$lemma) into a quanteda tokens object, then to a document-feature matrix. Doing so, we only retain significant parts of phrases (nous, proper nouns, verbs and adjectives). This only partially spares us the tas

                  Text2Landscape: Visualize a Text in Multiple Spaces with R — Force-directed networks, Biofabric, Word Embeddings, Principal Component Analysis and Self-Organizing Maps
                • June 2022 (version 1.69)

                  Update 1.69.1: The update addresses these issues. Update 1.69.2: The update addresses these issues. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the June 2022 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some of the key highlights include: 3-way merge editor - Resolve merge conflicts wit

                    June 2022 (version 1.69)
                  • How MDN’s autocomplete search works – Mozilla Hacks - the Web developer blog

                    Last month, Gregor Weber and I added an autocomplete search to MDN Web Docs, that allows you to quickly jump straight to the document you’re looking for by typing parts of the document title. This is the story about how that’s implemented. If you stick around to the end, I’ll share an “easter egg” feature that, once you’ve learned it, will make you look really cool at dinner parties. Or, perhaps y

                      How MDN’s autocomplete search works – Mozilla Hacks - the Web developer blog
                    • Rust to WebAssembly the hard way — surma.dev

                      Toggle dark mode What follows is a brain dump of everything I know about compiling Rust to WebAssembly. Enjoy. Some time ago, I wrote a blog post on how to compile C to WebAssembly without Emscripten, i.e. without the default tool that makes that process easy. In Rust, the tool that makes WebAssembly easy is called wasm-bindgen, and we are going to ditch it! At the same time, Rust is a bit differe

                        Rust to WebAssembly the hard way — surma.dev
                      • Golang Mini Reference 2022: A Quick Guide to the Modern Go Programming Language (REVIEW COPY)

                        Golang Mini Reference 2022 A Quick Guide to the Modern Go Programming Language (REVIEW COPY) Harry Yoon Version 0.9.0, 2022-08-24 REVIEW COPY This is review copy, not to be shared or distributed to others. Please forward any feedback or comments to the author. • feedback@codingbookspress.com The book is tentatively scheduled to be published on September 14th, 2022. We hope that when the release da

                        • Go 1.21 Release Notes - The Go Programming Language

                          Introduction to Go 1.21 The latest Go release, version 1.21, arrives six months after Go 1.20. Most of its changes are in the implementation of the toolchain, runtime, and libraries. As always, the release maintains the Go 1 promise of compatibility; in fact, Go 1.21 improves upon that promise. We expect almost all Go programs to continue to compile and run as before. Go 1.21 introduces a small ch

                            Go 1.21 Release Notes - The Go Programming Language
                          • AtCoderでGoをはじめてみる|Likaf

                            はじめにこんにちわ。LiKafです 月に一本継続してNoteを出していこうという取り組みの第一弾です 今回は備忘録を兼ねて『AtCoderを使ってGoをはじめてみた』記録を書いていきます Goの超基本的な文法とかが気になる方はぜひ読んでみてください。 AtCoderをよく知らない方は、 AtCoder に登録したら次にやること ~ これだけ解けば十分闘える!過去問精選 10 問 ~とかを参考にしてください (もしやったことないなら、やってみた方がいいと思います。異常に楽しいです、ガチで。) なぜやろうと思ったかなぜ無数にある言語の中からGoをやろうと思ったのかというと、答えは単純で、夏のインターンでGoを使って開発を行う機会を頂けたからです。 では、なぜAtCoderでGoの勉強をはじめようと思ったのかというと、これまでGoを読んだことも書いたこともない私にとって、最初から100行以上のコ

                              AtCoderでGoをはじめてみる|Likaf
                            • Announcing TypeScript 5.4 - TypeScript

                              Today we’re excited to announce the release of TypeScript 5.4! If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by making it possible to declare and describe types. Writing types in our code allows us to explain intent and have other tools check our code to catch mistakes like typos, issues with null and undefined, and more. Types also power TypeScript’s edi

                                Announcing TypeScript 5.4 - TypeScript
                              • Speeding up the JavaScript ecosystem - one library at a time

                                Whilst the trend is seemingly to rewrite every JavaScript build tool in other languages such as Rust or Go, the current JavaScript-based tools could be a lot faster. The build pipeline in a typical frontend project is usually composed of many different tools working together. But the diversification of tools makes it a little harder to spot performance problems for tooling maintainers as they need

                                  Speeding up the JavaScript ecosystem - one library at a time
                                • Nx Console VS Code Extension Compromised - StepSecurity

                                  Update: On May 19, 2026, GitHub publicly disclosed that approximately 3,800 of its internal source code repositories were exfiltrated after an employee's device was compromised by a poisoned VS Code extension. While GitHub did not officially name the extension, Nx CEO Jeff Cross confirmed that Nx is working with Microsoft and GitHub on the impact of the malicious Nx Console version 18.95.0, and no

                                    Nx Console VS Code Extension Compromised - StepSecurity
                                  • Growthのオペレーションツールの歩み 〜クーポン編〜 | メルカリエンジニアリング

                                    Merpay Advent Calendar 2021 の 15 日目は 2 本立てで、1 本目の記事をメルペイ Growth Platform Team のバックエンドエンジニアの@naoinaがお送りします。 2本目は Growthのオペレーションツールの歩み 〜ダッシュボード編〜 で公開されているので、そちらもよろしくお願いします。 クーポンやキャンペーンなど、Growth に欠かせない機能を実現するシステムはマイクロサービスとして構築していますが、データの登録のような人が介在するオペレーションは定常的に発生します。 その内容を設計するのは、バックエンドエンジニアではなくマーケティング、BI、プロダクトマネージャーなどの職種、部署の方であり、理想的にはそれらの方々だけで作業を完結できるような使いやすいUIを備えたシステムがあることが望ましいでしょう。 しかし、他にも様々な開発が必要に

                                      Growthのオペレーションツールの歩み 〜クーポン編〜 | メルカリエンジニアリング
                                    • GitHub - kurtextrem/awesome-performance-patches: 🚀⚡ Awesome list about performance related patches/PRs.

                                      fabian-hiller/valibot - convert Set to Array pnpm - convert objects to Set and Map preact/signals - convert Set to Linked Lists, adds lazy value evaluation TanStack/table - replace immutable spread calls with mutable arrays | blog post rollup - replace Set with BigInt | Mastodon explainer parcel-bundler/parcel - convert graph to array of BitSets, avoid new calls, Uint32Array + Wasm instead of BigI

                                        GitHub - kurtextrem/awesome-performance-patches: 🚀⚡ Awesome list about performance related patches/PRs.
                                      • State of Node.js Performance 2023

                                        The year is 2023 and we’ve released Node.js v20. It’s a significant accomplishment, and this article aims to use scientific numbers to assess the state of Node.js’ performance. All the benchmark results contain a reproducible example and hardware details. To reduce the noise for regular readers, the reproducible steps will be collapsed at the beginning of all sections. This article aims to provide

                                        • React for Two Computers — overreacted

                                          I’ve been trying to write this post at least a dozen times. I don’t mean this figuratively; at one point, I literally had a desktop folder with a dozen abandoned drafts. They had wildly different styles—from rigoruous to chaotically cryptic and insufferably meta; they would start abruptly, chew on themselves, and eventually trail off to nowhere. One by one, I threw them all away because they all s

                                            React for Two Computers — overreacted
                                          • MAI-Thinking-1: Building a Hill-Climbing Machine

                                            MAI-Thinking-1: Building a Hill-Climbing Machine The Microsoft AI Team 1 Abstract Progress in AI is driven not by a single model, but by the ability to continually improve upon the current state of models. Achieving this requires treating model development as a system-level optimization problem, for which the solution is building a hill-climbing machine for rapid improvement. Our process includes

                                            • JavaScript文字列の作成、検索、置換、その他の操作について学ぼう!初心者向け完全ガイド - deve.K's Programming Primer - プログラミング初心者のための入門ブログ

                                              本日はJavaScript文字列について学習します。 JavaScriptでの文字列の作成、検索、置換、それらその他の操作について初学者のうちに知っておくべき必要のあるすべてを網羅してもらう事を目的とした記事となります。 プリミティブ 文字列でのメソッドとプロパティ 文字列の作成 オブジェクト 文字列の比較 パディング文字列 文字列内の検索 文字列内の文字を置換する 文字列の分割(配列に変換) 長い文字列と改行 特殊文字 テンプレートリテラル タグ付きテンプレートリテラル HTMLテンプレートリテラル 最後に JavaScriptには、基本的に2つの種類の文字列があります。 それらは文字列プリミティブと文字列オブジェクトです。 文字列プリミティブは不変であり、文字列オブジェクトは可変であることが、これらの種類の主な違いの1つです。 JavaScriptには、他にもさまざまなデータ型が存在し

                                                JavaScript文字列の作成、検索、置換、その他の操作について学ぼう!初心者向け完全ガイド - deve.K's Programming Primer - プログラミング初心者のための入門ブログ
                                              • Announcing TypeScript 5.4 RC - TypeScript

                                                Today we’re excited to announce our Release Candidate of TypeScript 5.4! Between now and the stable release of TypeScript 5.4, we expect no further changes apart from critical bug fixes. To get started using the RC, you can get it through NuGet, or through npm with the following command: npm install -D typescript@rc Here’s a quick list of what’s new in TypeScript 5.4! Preserved Narrowing in Closur

                                                  Announcing TypeScript 5.4 RC - TypeScript
                                                • Amazon CodeWhisperer でアプリケーションをより速く構築する10の方法 | Amazon Web Services

                                                  Amazon Web Services ブログ Amazon CodeWhisperer でアプリケーションをより速く構築する10の方法 Amazon CodeWhisperer は強力な生成 AI ツールで、コーディングの能力を与えてくれます。CodeWhisperer をワークフローに組み込んで以来、私はアプリケーションを構築するのがより速く、より賢く、そしてより楽しくなりました。ただし、生成 AI ツールを効果的に使用する方法を学ぶには、初心者の考え方と、新しい働き方を受け入れる意欲が必要です。 CodeWhisperer を活用するためのベストプラクティスはまだ出てきていません。しかし、初期の探検家として、この素晴らしいツールを最大限に活用するためのいくつかのテクニックを発見しました。この記事では、CodeWhisperer がプログラミングワークフローをどのように強化できるかを実

                                                    Amazon CodeWhisperer でアプリケーションをより速く構築する10の方法 | Amazon Web Services
                                                  • October 2024 (version 1.95)

                                                    GitHub Pull Requests Version 0.100.0 of the GitHub Pull Requests extension adds Copilot integration: Use the @githubpr chat participant in the Chat view to search for issues, summarize issues/prs, and suggest fixes for issues. @githubpr uses a number of Language Model tools to accomplish this. There's also a new Notifications view that shows GitHub notifications, with an action to prioritize them

                                                      October 2024 (version 1.95)
                                                    • Frozen String Literals: Past, Present, Future?

                                                      If you are a Rubyist, you’ve likely been writing # frozen_string_literal: true at the top of most of your Ruby source code files, or at the very least, that you’ve seen it in some other projects. Based on informal discussions at conferences and online, it seems that what this magic comment really is about is not always well understood, so I figured it would be worth talking about why it’s there, w

                                                      • Speeding up the JavaScript ecosystem - eslint

                                                        We've talked quite a bit about linting in the past two posts of this series, so I thought it's time to give eslint the proper limelight it deserves. Overall eslint is so flexible, that you can even swap out the parser for a completely different one. That's not a rare scenario either as with the rise of JSX and TypeScript that is frequently done. Enriched by a healthy ecosystem of plugins and prese

                                                          Speeding up the JavaScript ecosystem - eslint
                                                        • prompts.chat - AI Prompts Community

                                                          --- name: skill-creator description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations. license: Complete terms in LICENSE.txt --- # Skill Creator This skill provides guidance for creating effective skills. ## About Skills S

                                                            prompts.chat - AI Prompts Community
                                                          • jscodeshift + OpenAI API でソースコード内の日本語文字列を一括で翻訳する - ROUTE06 Tech Blog

                                                            こんにちは、ROUTE06 でソフトウェアエンジニアをしている@MH4GFです。 私が関わるリポジトリでの共通言語を日本語から英語に変えることになり、既存のコードベースに散在する日本語文字列を一括で変換する方法を模索しました。 最終的に jscodeshift と OpenAI API を組み合わせて一括置換することで解決できました。今回はその手法について紹介します。 スクリプトの概要 早速、主要なコード部分と詳細な説明を示します。 #!/usr/bin/env zx import OpenAI from "openai"; import jscodeshift from "jscodeshift"; // コマンドライン引数の解析 const argv = minimist(process.argv.slice(2), { boolean: ["dry-run"], alias: { d

                                                              jscodeshift + OpenAI API でソースコード内の日本語文字列を一括で翻訳する - ROUTE06 Tech Blog
                                                            • Unicode is harder than you think · mcilloni's blog

                                                              Reading the excellent article by JeanHeyd Meneide on how broken string encoding in C/C++ is made me realise that Unicode is a topic that is often overlooked by a large number of developers. In my experience, there’s a lot of confusion and wrong expectations on what Unicode is, and what best practices to follow when dealing with strings that may contain characters outside of the ASCII range. This a

                                                              • Yes, I can connect to a DB in CSS

                                                                As they’re wont to do, a certain tweet was floating around the interwebs for a while the other week. Recruiters be like: We’re looking for someone who can connect to the database using CSS. It’s been a hell of a long time since I last embarked on a quality shitpost project1, in fact it’s been so long that back then I probably didn’t even have the word shitpost in my vocabulary. To that end, I was

                                                                • Building docfind: Fast Client-Side Search with Rust and WebAssembly

                                                                  Version 1.108 is now available! Read about the new features and fixes from December. January 15, 2026 by João Moreno If you've visited the VS Code website recently, you might have noticed something new: a fast, responsive search experience that feels almost instant. Behind that experience is docfind, a search engine we built that runs entirely in your browser using WebAssembly. In this post, I wan

                                                                    Building docfind: Fast Client-Side Search with Rust and WebAssembly
                                                                  • Go 1.22 Release Notes - The Go Programming Language

                                                                    Introduction to Go 1.22 The latest Go release, version 1.22, arrives six months after Go 1.21. Most of its changes are in the implementation of the toolchain, runtime, and libraries. As always, the release maintains the Go 1 promise of compatibility. We expect almost all Go programs to continue to compile and run as before. Changes to the language Go 1.22 makes two changes to “for” loops. Previous

                                                                      Go 1.22 Release Notes - The Go Programming Language
                                                                    • GitHub - dupontcyborg/numpy-ts: Full NumPy, in TypeScript/JavaScript (94% coverage)

                                                                      import * as np from 'numpy-ts'; // Array creation with dtype support const A = np.array([[1, 2], [3, 4]], 'float32'); const B = np.ones([2, 2], 'int32'); // Broadcasting and chained operations const result = A.add(5).multiply(2); // Linear algebra const C = A.matmul(B); const trace = A.trace(); // Reductions with axis support const colMeans = A.mean(0); // [2.0, 3.0] // NumPy-style slicing with st

                                                                        GitHub - dupontcyborg/numpy-ts: Full NumPy, in TypeScript/JavaScript (94% coverage)
                                                                      • Rust Server Components

                                                                        I didn't want to get lost in the maze of popular frameworks like Next.js, so I chose to do something crazy: I wrote my solution in Rust. It's still slightly complex, but I can outline it right here in this blog article. Can you say the same for Next.js? Do you mean you created your own version of Next.js? Absolutely not! That would need a tremendous amount of work, and I simply worked on it in my

                                                                          Rust Server Components
                                                                        • Range Over Function Types - The Go Programming Language

                                                                          Range over function types is a new language feature in the Go 1.23 release. This blog post will explain why we are adding this new feature, what exactly it is, and how to use it. Why? Since Go 1.18 we’ve had the ability to write new generic container types in Go. For example, let’s consider this very simple Set type, a generic type implemented on top of a map. // Set holds a set of elements. type

                                                                            Range Over Function Types - The Go Programming Language
                                                                          • v3 is out!

                                                                            🎉 After many months of development, v3 is out! For most developers, upgrading won’t require any changes. For some, it will be pretty trivial. However, the release brings tons of good stuff, so for the starter, here’s a quick overview of the most notable changes: The library is now 100% TypeScript with brand-new handcrafted types. Removed arguments checking and conversion code from all functions,

                                                                            • GhosttyをWSL2にインストールして使う

                                                                              インストール手順Ghosttyはコミュニティによってメンテナンスされているインストールスクリプトやパッケージが利用可能である。 コミュニティ版パッケージを利用する公式ドキュメントでも紹介されている、Ubuntu向けのインストールスクリプトを利用するのが手軽である。 Ghostty Ubuntu Install 以下のコマンドを実行する。 Installing/Updating Ghostty... Downloading ghostty_1.2.3-0.ppa1_amd64_24.04.deb... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 10

                                                                              • バージョン指定してcreate-react-appを実行 - Qiita

                                                                                { "name": "sample-4.0.3", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.15", "@types/node": "^12.0.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", "typescript": "^4.

                                                                                  バージョン指定してcreate-react-appを実行 - Qiita
                                                                                • Building a TypeScript CLI with Node.js and Commander - LogRocket Blog

                                                                                  Editor’s note: This post was updated on 13 April 2023 to include instructions on how to use GitHub Actions to publish the Node.js CLI to npm so it will be accessible to all users. The command line has thousands of tools, such as awk, sed, grep, and find available at your disposal that cut development time and automate tedious tasks. Creating a command line tool in Node.js isn’t very complicated, t

                                                                                    Building a TypeScript CLI with Node.js and Commander - LogRocket Blog