560 blogs tracked4,950 posts indexed

#rust

9 posts · 6 companies · newest first

Curated view of this subject:Topic: Rust40
1

Monte-Carlo simulations (opens on the source site)

Monte Carlo simulations (or methods) is the technique of applying randomness and the Law of large numbers to the solution of various scientific and engineering problems. One of its first documented uses was by Stanislaw Ulam and John von Neumann for nuclear weapon simulations after WWII [1]. In this post I want to provide examples of some simple uses of Monte Carlo simulations. We'll start with the classical example of calculating the value of \pi by throwing darts. Estimating pi Suppose we take a square board and inscribe a quarter of a circle into it. We then proceed to throw darts at the…

miscmathexcerpt only · body stays at the source
From the web
2

Rusty thoughts on "Parse, don't validate" (opens on the source site)

Like many programmers, I find Alexis King's Parse, don't validate article fascinating, because it gives a name to an idiom that seems familiar and important - one I've observed and used in the past without naming it explicitly. This post is a review of the "Parse, don't validate" pattern applied to the Rust programming language (the original post uses Haskell). I was particularly interested in finding educational examples of this pattern in the Rust standard library and other well-known projects. Without repeating the original article (please read it first!), here's the gist of it. Consider…

miscrustexcerpt only · body stays at the source 9547 comments on HN (opens the discussion)
From the web
4

Focus on the Feature, Not the Fixture: GenAI powered GraphQL mocks (opens on the source site)

Expedia Group Technology — EngineeringCombine a GraphQL schema, hints and a LLM to generate contextual GraphQL mock responsesPhoto by Samuel Vazquez somewhere in New ZealandA product developer on our navigation header team spent an afternoon hand-typing a 200-line GraphQL JSON mock response so they could keep building the UI while a resolver was pending to be implemented. The schema changed the next morning. We threw the mock away. That is the boring tax on every GraphQL prototype: mocks that drift, fixtures that rot, frontends blocked on backends, and demos slipping because nobody wanted to…

llmartificial-intelligenceexcerpt only · body stays at the source
From the web
6

On programming languages, targets, and platforms (opens on the source site)

I started as a Java developer, but for some time now, I have broadened my horizons. Recently, I thought about how early languages were dedicated to a single target and platform, and now they are broadening their focus. In this post, I want to write down my thoughts in the hope that it may be useful to others, probably to my future self. Definitions You may have been wondering about the title terms.

javakotlinexcerpt only · body stays at the source
From the web
7

Functional Pipelines (opens on the source site)

One of the major shifts in developer ergonomics has been the introduction of functional pipelines to most popular languages. A pipeline is a chain of operations on a set of data that transforms the data into another shape or value. It is made functional by using lambda functions as the primary way of specifying behavior. git ls-files | grep -o "\.\w*$" | sort | uniq -c Linux has always been built around this idea; programs accept text input and produce text output. This allows you to chain programs together with pipes (|). The above example finds all tracked files in a git repo, then matches…

programmingrustexcerpt only · body stays at the source
From the web
8

I am co-authoring a book about Rust and Lambda (opens on the source site)

Announcing Crafting Lambda Functions in Rust, a new book that guides you through building efficient, reliable, and cost-effective AWS Lambda functions using Rust, written by Luciano Mammino and James Eastham. Learn why Rust and serverless are a perfect match. Early access is now available at rust-lambda.com!

rustserverlessexcerpt only · body stays at the source
From the web
9 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.