XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Exercism - Latest topics

Latest topics

The function line in darts.scm is somewhat misleading

The darts.scm given to students in the Darts exercise contains: (import (rnrs)) (define (score arg) 'implement-me!) despite that the tests of this exercise call the score function with two arguments. If you look at test.scm, you will find lines like: (test-success "1. Missed target" = score '(-9 9) 0) It is not unreasonable that a student thinks that the test runs (score '(-9 9)) for this particular test. Of course, you can find that the test actually runs (apply #'score '(-9 9)), if you go…

Segmentation fault - C++ Power of Troy

Hey folks, I’ve got a segmentation fault error when running my code for the Power of Troy exercise. I’ve looked around on forums but I’m struggling to understand what it might mean. Does anyone have any pointers (no pun intended)? The compiler output is: make[2]: *** [CMakeFiles/test_power-of-troy.dir/build.make:70: CMakeFiles/test_power-of-troy] Segmentation fault (core dumped) make[1]: *** [CMakeFiles/Makefile2:122: CMakeFiles/test_power-of-troy.dir/all] Error 2 make: *** [Makefile:91: all]…

Use GNUstep for cross-platform support?

I don’t know Objective-C, but I went down a deep rabbit hole at lunch. This track uses XCTest which is exclusive to Apple. Our test runners are Linux-based so this track doesn’t have a test runner at the moment. I wonder if we can switch over to GNUstep, which is cross-platform Objective-C and generally compatible with Apple’s implementation. Unfortunately, I couldn’t identify a currently maintained, third-party Objective-C testing framework available, so this is where things get interesting.…

I'm lost; how do I run the tests

The instructions in “HELP.md” seem to be out of date; the “objc” gem apparently no longer exists and I’m bewildered by the Xcode instructions, which seem to be for a long out-of-date version of Xcode. Does anyone have this working with Xcode 26? 12 posts - 4 participants Read full topic

Missing exercise names and blurbs on Scheme

The instructions themselves are translated but the exercise names are blurbs are missing for these linked exercises. Other Scheme exercises seem fine. Exercism Book Store in Scheme on Exercism Can you solve Book Store in Scheme? Improve your Scheme skills with support from our world-class team of mentors. Exercism Intergalactic Transmission in Scheme on Exercism Can you solve Intergalactic Transmission in Scheme? Improve your Scheme skills with support from our world-class team of mentors.…

Missing ReScript track-specific docs for Hungarian but not German

The Hungarian translation is missing ReScript’s track-specific documents at Exercism's ReScript Track Docs. The side bar is empty on load. If I switch to English, the documents are present, and if I switch to German, the German translations of those files are present. Besides the empty sidebar, the docs themselves are completely empty in Hungarian like Installing ReScript locally | Exercism's Docs. If I switch to German, the translated content does show on that page as expected 4 posts - 2…

Any knowledgable PowerShell users who can look at a PR?

The script is in the configlet repo, fetch-configlet.ps1 github.com/exercism/configlet fix: make compatible with v5 and v7 exercism:main ← exercism:fix-powershell opened 07:21AM - 09 Apr 26 UTC vaeng +28 -7 I had problems using the existing script with windows 11 and powershell 5. I upd…ated my ps version to 7.6 and still had errors. As I don't know powershell, I used AI to finda solution and this seems to work. I am worried about backwards comatibility and general AI use for things I don't…

Including other files as module is ... interesting

GDscript makes it interesting to include/import other files. For the resistor-color-* exercises, I like to just include the previous ones so I’m not copy-pasting. GDscript forces you to handle *.gd files as classes. For example, If I have files resistor_color_duo.gd and resistor_color.gd, then the -duo script starts with var ResistorColor = load(resource path of resistor_color) var rc = ResistorColor.new() # Now I can do: var code = rc.color_code("yellow") That’s a little extra boilerplate than…

Templates for resistor-color exercises

attn @IsaacG I found it odd that each of the first three in the series want a function called “color_code”. I’d like to contribute some templates. I’m writing a template for resistor-color, and I notice the quote filter doesn’t seem to add quotes: am I using it correctly? return [solution_script.{{ case["property"] | camel_to_snake }}({{ case["input"]["color"] | quote }}), {{ case["expected"] }}] That renders like return [solution_script.color_code(white), 9] camel_to_kebab functioned, but not…

The `bin/verify-exercises-in-docker` script

I hit a slight snag when updating this file on the Scheme track. The script creates a temporary directory on the local file system: tmp_dir=$(mktemp -d -t "exercism-verify-${slug}-XXXXX") then mounts this in Docker.: --mount type=tmpfs,dst=/tmp \ There is an implicit assumption about where the tmp directory is located. This works (on Ubuntu-related OS’s) if Docker is installed from the apt repository, but not if installed from Snap - which does weird and silly things when creating tmp…

Email notifications on thread topics stopped working after June

Hey folks, I’m not subscribed to too many threads but there was one with recent activity Create new track for GDScript - #267 by codingthat that I missed because I never got email notifications, even though I had been getting them in June and nothing changed in my forum settings. Thread is still set to notify on every reply. Nothing in the spam box. Anyone else seeing this? Either way, any ideas why it would stop working? Thanks in advance ^^ I had the forum in a tab group on Firefox that I…

The hexadecimal code of 9241 is incorrect

The hexadecimal representation of 9241 is 0x2419. int m_morales{9241}; // base 10: 0-9 int a_apaec{0x24CD}; // base 16: 0-9 and A-F int m_gargan{0b10010000011001}; // base 2: 0-1 int b_reilly{022031}; // base 8: 0-7 // Leading with a 0 not the letter o. github.com MelancholyMing/cpp/blob/e6e47e11fb47e561d0eca71c6197163695b44caf/concepts/numbers/about.md?plain # About The built-in number types in C++ can be divided into integers and floating points. Integers are whole numbers like `0`, `691`, or…

Gigasecond: two tests fail locally probably due to summer time change in timezone

Two tests fail locally although they pass when submitted. Can we find a solution to this? The possible reason according to Alex Lohr is: it’s very probably the switch from summer time to winter time breaking the tests. The test servers run fixed on GMT. Failure → ./gigasecond_spec.lua @ 4 gigasecond date only specification of time ./gigasecond_spec.lua:9: Expected objects to be equal. Passed in: (string) ‘12/31/42’ Expected: (string) ‘01/01/43’ Failure → ./gigasecond_spec.lua @ 36 gigasecond…

Monetize platform - exercism Pro

To make a clone of this platform but for companies. Exercism Pro - where users will solve real problems, but in the manner of Exercism. Companies will describe tasks in detail and in a format like on Exercism.org: 66% goes to the developer whose solution is well-tested and approved by the company; 34% goes to Exercism. 1 post - 1 participant Read full topic

Slightly improved ERT emacs setup

If anyone else can make use of that: I extended the proposed way to run tests from inside emacs with two improvements for less friction: No need to open the tests file. Hit one key from the source file and the *-test.el files are collected and ran automatically based on the current file’s location. when showing ERT results, keep cursor inside the source buffer (defun elisp-ert-lookup-and-run-all () "collect all local *-test.el files and run them." (interactive) (let* ((dir (file-name-directory…

Working in the online editor: problem with indentation

When you hit enter in the online editor, your indentation level is preserved BUT the indentation uses spaces. Even though config.json specifies tabs This results in the following error The solution file could not be parsed. SCRIPT ERROR: Parse Error: Used space character for indentation instead of tab as used before in the file. at: GDScript::reload (/mnt/exercism-iteration/darts.gd:3) GDScript backtrace (most recent call first): [0] load_script (res://test_runner.gd:402) [1]…

Problem with the new Scheme/List Ops exercise

Something strange is happening with this new exercise (it went live yesterday), which I am still struggling to diagnose. Local testing works perfectly, with both Guile and Chez. CI on the GitHub repo also works perfectly. In Exercism’s online editor, testing just gives a deeply unhelpful “syntax error” message, with no details. I can see this, and @Borderite has also reported it. I saw this yesterday with the old test runner, and again today with the new one. The problem seems to be with the…

Bump test runner from v2 to v3

I have a draft PR started at Bump to v3 by BNAndras · Pull Request #88 · exercism/coffeescript-test-runner · GitHub that will bump CoffeeScript’s test runner from v2 to v3. I’m reusing JavaScript’s opt-in approach for exercises so all the hard work is done, and I should have something later this week. 2 posts - 1 participant Read full topic

Insiders benefits not translated when logged out, but are when logged in

When logged out, Exercism doesn’t translate the Insiders benefits to Hungarian. but the rest of the page is translated. When logged in, Exercism translates the Insiders benefits to Hungarian as well as the rest of the page. This inconsistency affects people without accounts yet looking up Insider information. However, as someone with an existing Insiders account, the main reason I log out is to check this page, and it’s not because of the benefits. The Insiders criteria only show up if you’re…

Help with Space Age exercise

Heya, trying to solve the Space Age exercise. I’ve come up with a few solutions that work and compile locally using gcc and clang but I can’t get them to compile within Exercism. I’m wondering if this is because I need to be using specific syntax, and if so, does anyone have a hint or two they could share to get me on the right track? 9 posts - 3 participants Read full topic

Dependabot fails for latest changes to its config

Maintainers got a changed Dependabot config file pushed into their repos. That did not fail the tracks CI, but does fail when Dependabot wants to use it: Dependabot couldn't parse the config file at .github/dependabot.yml Dependabot couldn't parse the config file at .github/dependabot.yml. The error raised was: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 13 column 13 Please ensure the config file is a valid YAML file. An online YAML linter…

Adding new practice exercises

A topic for announcing/requesting the ownership of creating new practice exercises. I thought this would be tidier than a new topic per exercise. Done Exercises (click for more details) Claimed Exercises (click for more details) Unclaimed Exercises (click for more details) 3 posts - 2 participants Read full topic

Blocked by CloudFlare

Posting from my home computer now. I was able to log in on my work laptop yesterday and the day before but today I keep getting the message that I’ve been blocked, with the following Cloudflare Ray ID: a475001e0b7fd384 1 post - 1 participant Read full topic