1.5.0
Latest Downloads on GitHubA macOS beta, judge-style testing, stress tests and checkers, submitting to online judges from the app, a debugger that watches arrays and values, tools on each test row, clangd navigation, seven more languages, and smaller, faster updates.
Added
- macOS (beta)
- macOS on Apple Silicon (#58): a DMG and a zip for M1 and later. It uses GCC from Homebrew, LLDB for debugging and clangd for code suggestions. Install steps are in the README.
- Mac-style app: native window buttons, ⌘ shortcuts and labels, and C/C++ files can be opened from Finder.
- Debugger on Mac: LLDB names crashes (a stack overflow too), lists threads, and changes a value while paused, as on Windows and Linux.
- The app is not signed with an Apple Developer account, so the first launch must be allowed once, and updates are downloaded by hand.
- Online judges
- Submit to Online Judge (Ctrl+Alt+S) through the new Sameko Companion browser extension: Codeforces, AtCoder, CSES and DMOJ-based judges (VNOI, LQDOJ). It submits from your logged-in browser and shows the verdict in the app. The extension is not on the browser stores yet, so Submit and the extension section appear only after one has connected.
- More judges in the extension: HNOJ (hnoj.edu.vn), LTOJ (laptrinhonline.club) and 28tech (oj.28tech.com.vn).
- Sameko Companion for Firefox (128+), next to Chrome and Edge.
- One-file submit: quoted includes of your own headers (
#include "lib/dsu.hpp") are pasted into the submitted file, since a judge takes one file. Other includes are sent as written. - Open the app from the browser: the extension's Open button starts Sameko Dev C++ through a
samekodev://link (it only opens the app; the uninstaller removes the link).
- Testing
- Problems judged through files: a solution that reads
BAI.INPand writesBAI.OUTis judged as written. The names are read fromfreopenorfstreamin your code, including#define NAME, or set in Problem options. - Manage tests: turn single tests on or off, hide passed tests, use a program's output as the expected output, import a whole folder of tests (large files stay on disk), and save tests to a folder.
- Problem options: time and memory limit per problem, input and output files, interactor.
- Interactor: a testlib interactor plays against your solution and gives the verdict, in Run All Tests and on a single test.
- Stopwatch for each problem, and a head comment (name, link, limits, date) for files made from an online judge.
- Stress test (STRESS tab): runs a generator, a brute force and your solution on seeded tests until the first wrong answer; the failing test can be added to your tests.
- Checkers: judge a problem's tests with a testlib checker, or compare ignoring case.
testlib.hships with the app. - Memory limit for tests (default 256 MB; Competitive Companion problems bring their own), reported as MLE.
- Large Stack (256 MB, on by default): deep recursion no longer overflows, as on judges.
- Interactive problems by hand: you answer the program's queries in the terminal. Your replies have their own colour, and the run ends with
Queries: N | Your replies: M. - Flush warning: a C/C++ solution that prints
?queries but never flushes is warned when it starts. It works locally, but a judge gives Idleness limit exceeded.
- Problems judged through files: a solution that reads
- Tools on a test row
- Debug a test: start the debugger from a test row with that test's input on stdin.
- Re-run with checks: build and run a failed test with STL checks and supported sanitizers, then inspect the diagnostics.
- Test input graph: draw a test's input as a graph (edge list,
n mheader, parent array, several test cases), drag nodes, zoom, and see which lines could not be read. - Profile a test: run the selected input through a profiling build and show the top 15 functions from gprof.
- Debugger
- Watchpoints: pause when a watched expression changes and see its old and new values.
- Array and vector watch view: inspect the first 200 numeric elements and see which indices changed since the last stop.
- Change a value while paused: Alt+click a variable's value in the debugger.
- Crashes are shown in the debugger: it stops at your line with the error's name and a hint, instead of a bare "Paused". A stack overflow no longer freezes the panel.
- Threads panel: a program with several threads lists them; click one to see its stack and variables.
- std::map shows
[key] = valueinstead of keys and values as separate items, and std::string is one value.
- Editor
- Go to Definition and Find All References: F12 and Shift+F12 use clangd to navigate C/C++ symbols across files.
- Clangd Quick Fix: Ctrl+. and the editor lightbulb apply suggested edits with undo support.
- Find in Files: Ctrl+Shift+F searches the Explorer folder with case and regex options and opens matching lines.
- Rename Symbol (F2), parameter hints while typing a call, and Go to Symbol (Ctrl+Shift+O), all from clangd.
- Go to File (Ctrl+P): open a tab or a file of the Explorer folder by typing part of its name;
name:12goes to line 12. - More shortcuts: Open Folder (Ctrl+K Ctrl+O), Command Palette (Ctrl+Shift+P), Reopen Closed Tab (Ctrl+Shift+T), Close All Tabs (Ctrl+K Ctrl+W), Ctrl+B for the sidebar and Ctrl+` for the terminal.
- Compile error explanations: the first GCC build error gets a short hint in English, Vietnamese or Chinese when it matches a common case.
- Full-width punctuation fix: Quick Fix can replace full-width punctuation on C/C++ error lines with ASCII.
- Snippets per language: the editor suggests only the snippets of the file's language.
- Languages and app
- Other languages (#66, asked for by @hulgv): build and run Python, Java, Kotlin, Rust, Go, Pascal and JavaScript with the compiler already on your machine. Tests, stress tests and the external console work for them; IntelliSense and the debugger stay C/C++.
- Templates for the other languages, and a choice of what New File creates.
- View › Reset Layout.
- Portable zip keeps its data in
data\next to the exe (#76, requested by @wudream813).
Changed
- Run All Tests judges like an online judge: tests are built with -O2 into their own program, output is compared word by word with real numbers within 1e-6, and the time limit counts from the program's start.
- Faster judging of large outputs: Run All Tests compares in place and stops at the first difference (20 MB output: 1.1 s / 460 MB before, 0.3 s / 44 MB now). The diff view no longer copies or draws the whole output.
- TESTS panel redesigned: verdict, details, time and memory on each row, and a verdict bar.
- Crashes are named (stack overflow, access violation, division by zero…) instead of a bare exit code.
- A test without an expected output is RAN, not AC.
- Updates download only what changed, keep GCC when it did not change, and show a progress window. The first update from 1.4.1 still downloads the whole installer, since 1.4.1 cannot fetch only the changes.
- Lighter on memory and disk: clangd uses about half the memory (127 MB to 62 MB on a typical file), precompiled headers keep 3 variants and drop those unused for 14 days, and the app is about 75 MB smaller on disk.
- Debugger help is shorter, grouped by what you are doing, and readable on every theme.
- Rounded Chinese font (#73, suggested by @Onlyanadvisor): the Simplified Chinese interface uses WenYuan Rounded SC (SIL OFL 1.1), cut to the interface's characters (about 240 KB).
Fixed
- IntelliSense no longer fills the disk: clangd kept a 13 MB preamble-*.pch file in TEMP for each C++ file opened, and they were never deleted (several GB after a few months). It now keeps them in memory.
- Typing
else {and pressing Enter now opens an indented block. The suggestion list stayed open after the{, so Enter inserted clangd'selsesnippet without indentation, and Tab then turned it intoelse if (condition). Reported by @JuggyBob. - Antivirus or Windows blocking a program: the message says so and names the folder to exclude.
- Run keeps working after an antivirus deletes the app's run helper.
- Output card verdict: a program that prints the right answer but then crashes is RE, not AC, and the verdict follows the compare mode (Words, Ignore case) as TESTS does.
- End of input: Ctrl+D in the terminal (or Ctrl+Z in an empty box) sends EOF, so
while (cin >> x)can finish. A program still running 2 s after the Input box was sent gets a hint that it may be waiting for more input. - Stress test rechecks every test that looked like TLE in a parallel round, not only the first, so a real TLE is no longer reported as "All tests passed". It keeps its Tests/Max values, and stopping before any test ran is no longer shown as passed.
- A file changed in another editor is no longer overwritten by Build or Run Tests while its Reload prompt is unanswered.
- Build and Debug wait while tests or a stress test are running.
- Adding a test with + keeps the text you typed.
- Samples under a "Ví dụ" heading are now read from VNOJ-style problem pages.
- Submitting twice with a double click no longer sends two submissions; the problem link is remembered after a restart.
- A submission whose browser was closed ends with a message instead of showing "Judging" forever.
- Competitive Companion accepts problems only from browser extensions, not from web pages.
- Python started through
pyis timed and limited correctly; Java is no longer given MLE below the limit. - Restore session prompt is translated (#74, reported by @Onlyanadvisor).
- Linux memory limit: a program that ends quickly is measured exactly, so going over the limit is always MLE.
- Stop on Linux also ends the processes the program started.
- Linux without g++: the app shows the command to install it instead of pointing to MinGW.
- Linux and macOS prompts printed before reading input now appear right away, without a flush.
- Programs that print a lot are judged at full speed: Run All Tests and stress tests no longer build with realtime output, which made a million lines of
printftake 12 s instead of 0.4 s and could give a false TLE. - Debugger: watching a
std::vectorbefore it is constructed no longer freezes the session. - IntelliSense safety: clangd may run only the compiler the app detected, never a program named by a project's
compile_commands.json. - Undocking a panel keeps the view you were on, and menu shortcuts no longer overlap their labels.
- Minimap switch is greyed out while Performance Mode turns the minimap off.
- Docking panels: dragging Input/Output and the bottom panel around no longer leaves the wrong view showing.
- Narrow panels: the TESTS header (Run All, Submit and the verdict) and the Input card's test switcher no longer overlap or get cut off when the debugger or the I/O column leaves them little room; labels shorten to icons instead.
- Linux: the AppImage registers
samekodev://links, Ptyxis, GNOME Console, foot and Ghostty work as the external terminal, C/C++ files can be opened with Sameko, and a blocked program no longer blames Windows.