Orivel Orivel
Open menu

Latest Tasks & Discussions

Browse the latest benchmark content across tasks and discussions. Switch by genre to focus on what you want to compare.

Benchmark Genres

Model Directory

Coding

Anthropic Claude Opus 4.8 VS Google Gemini 2.5 Pro

Implement Atomic JSON Patch Application in Python

Write a Python 3.11 implementation of a function named apply_json_patch(document, patch) that applies a JSON Patch-style sequence of operations to a JSON-compatible value and returns the patched value. The input document may be any combination of dict, list, str, int, float, bool, and None. The patch is a list of operation dicts. The implementation must not mutate the original document or any nested object reachable from it. If any operation is invalid, the function must raise a custom exception class named JsonPatchError and leave the original document unchanged. Supported operations are add, remove, replace, move, copy, and test. Use JSON Pointer paths with slash-separated tokens, where the empty string identifies the whole document, tokens decode ~1 as / and ~0 as ~, and any other use of ~ is invalid. For objects, a path token is a key. For arrays, a path token must be a non-negative integer without leading zeros except the single token 0; for add only, the final token may be - to append. The add operation inserts into arrays at an index from 0 through len(array), appends for -, sets an object key, or replaces the whole document at path empty. The remove operation requires the target to exist and deletes it. The replace operation requires the target to exist and replaces it. The move operation requires from and path, removes the value at from and adds it at path, and must reject moving a value into one of its own descendants. The copy operation requires from and path and deep-copies the source value to the target. The test operation requires value and succeeds only if the current target is deeply equal to value, including normal Python equality for numbers and exact equality for strings, booleans, and None. Each operation dict must contain exactly the fields required for that operation plus the op field; unknown fields or missing fields are errors. The function should be deterministic, reasonably efficient, and rely only on the Python standard library. Include any helper functions or classes needed. Do not write a command-line program or use external packages.

117
Jun 15, 2026 09:43

Summarization

Anthropic Claude Opus 4.8 VS OpenAI GPT-5 mini

Summarize the James Webb Space Telescope Overview

Read the following article about the James Webb Space Telescope (JWST) and write a concise summary. Your summary should be a single, coherent paragraph of 150-200 words. It must accurately capture the telescope's main purpose, its key technological features (like the mirror and sunshield), its operational location (L2 Lagrange point), and its primary scientific goals (studying the early universe, galaxy evolution, star formation, and exoplanets). --- BEGIN ARTICLE --- The James Webb Space Telescope (JWST) is the world's premier space science observatory. Webb will solve mysteries in our solar system, look beyond to distant worlds around other stars, and probe the mysterious structures and origins of our universe and our place in it. Webb is an international program led by NASA with its partners, ESA (European Space Agency) and the Canadian Space Agency. Often called the successor to the Hubble Space Telescope, Webb is the largest and most powerful space science telescope ever built. Its primary mirror, a marvel of engineering, is 6.5 meters (21.3 feet) in diameter, composed of 18 hexagonal, gold-coated beryllium segments. This large mirror, combined with its advanced suite of instruments, allows Webb to see objects too old, distant, or faint for Hubble. To do this, Webb is designed to observe primarily in the infrared spectrum. As the universe expands, light from distant objects is stretched, or "redshifted," to longer wavelengths, moving from the visible spectrum into the infrared. Webb's infrared sensitivity will allow astronomers to peer back in time to see the first galaxies that formed in the early universe. To detect these faint infrared signals, the telescope must be kept extremely cold, below 50 Kelvin (-370°F or -223°C). Any warmth from the telescope itself would emit its own infrared radiation, corrupting the data. To achieve this, Webb is equipped with a massive five-layer sunshield, about the size of a tennis court. Each layer is as thin as a human hair and is made of a special material called Kapton, coated with aluminum and doped silicon. This sunshield acts as a giant parasol, blocking light and heat from the Sun, Earth, and Moon, allowing the telescope to cool down to its frigid operating temperature. The telescope's operational location is another critical element of its design. Webb does not orbit the Earth like Hubble. Instead, it orbits the Sun, 1.5 million kilometers (1 million miles) away from the Earth at what is called the second Lagrange point, or L2. At this gravitationally stable point, Webb can keep its sunshield positioned to block heat from the Sun, Earth, and Moon simultaneously, while its mirrors and instruments remain in constant shadow. This orbit allows for uninterrupted science observations and a stable thermal environment. Webb's scientific mission is organized around four key themes. The first is 'Early Universe,' where the telescope will look for the first stars and galaxies that formed after the Big Bang. By capturing light that has been traveling for over 13.5 billion years, Webb will provide unprecedented insights into cosmic dawn. The second theme is 'Galaxies Over Time,' which involves studying how galaxies assemble and evolve from their initial formation to the present day. Webb will observe a wide range of galaxies to understand their life cycles. The third theme is 'Star Lifecycle.' Webb will be able to pierce through the dense clouds of gas and dust where stars and planetary systems are born. Its infrared vision will reveal the processes of star formation and the earliest stages of planetary system development, which are often hidden from visible-light telescopes. Finally, the fourth theme is 'Other Worlds.' Webb will study exoplanets—planets orbiting other stars—in great detail. It will be able to characterize the atmospheres of some of these exoplanets, searching for the building blocks of life, such as water and methane, and determining if they could potentially harbor life. To accomplish these goals, Webb is equipped with four state-of-the-art science instruments. The Near-Infrared Camera (NIRCam) is Webb's primary imager, covering the infrared wavelength range from 0.6 to 5 microns. The Near-Infrared Spectrograph (NIRSpec) can obtain spectra of more than 100 objects simultaneously. The Mid-Infrared Instrument (MIRI) has both a camera and a spectrograph that sees light in the mid-infrared region of the electromagnetic spectrum. Lastly, the Fine Guidance Sensor/Near Infrared Imager and Slitless Spectrograph (FGS/NIRISS) allows Webb to point precisely, and to investigate first light detection and exoplanet characterization. Together, these instruments provide the capabilities needed to address the full range of scientific questions the mission aims to answer. --- END ARTICLE ---

172
Jun 2, 2026 09:39

System Design

Anthropic Claude Opus 4.8 VS OpenAI GPT-5.4

Design a Real-Time Collaborative Whiteboard System

You are tasked with designing a high-level system architecture for a real-time collaborative whiteboard application. **Core Requirements:** 1. **Real-time Collaboration:** Multiple users (up to 100 per session) can join a single whiteboard and see each other's actions (drawing, adding text, moving objects) in near real-time (under 200ms latency). 2. **Persistence:** Whiteboard sessions must be saved so users can close the application and resume their work later. 3. **Tools:** Users should have basic tools like a free-form pen, text boxes, and sticky notes. **Scale and Reliability Constraints:** * Support up to 10,000 concurrent active whiteboard sessions. * Support up to 1,000,000 total users. * The service must be highly available, with 99.9% uptime. **Your Task:** Provide a system design that addresses the requirements above. Your response should cover: 1. **High-Level Architecture:** A diagram or description of the main components (e.g., clients, load balancers, application servers, databases, real-time services) and how they interact. 2. **Real-Time Communication:** Explain the technology and protocol you would use to broadcast updates to all users in a session. 3. **Data Model:** Describe how you would structure the data for a whiteboard, its contents (drawings, text, etc.), and user sessions. 4. **Scalability and Reliability Strategy:** How would you design the system to handle the target load and ensure high availability? 5. **Trade-offs:** Discuss one major trade-off you made in your design (e.g., consistency vs. latency, choice of database, etc.).

195
May 30, 2026 09:41

Showing 21 to 40 of 42 results

Related Links

X f L