Skip to content
#

programming-language

Here are 5,787 public repositories matching this topic...

julia
BambOoxX
BambOoxX commented Jun 21, 2022

This subject was initially discussed in https://discourse.julialang.org/t/efficient-way-to-split-string-at-specific-index/83115/17 regarding a way to split a string into equal-length substrings.

The solutions discussed involved (for a string composed of 10 blocks of 8 strings)

  • using a comprehension split8(str::String) = [str[i+1:8] for i in 0:8:length(str)]
  • using a comprehension and `S
good first issue strings iteration
zygoloid
zygoloid commented Aug 6, 2022

We currently have no lexical support for character literals. While in principle we could reuse string literals for this purpose, it would make code more self-documenting and readable if we had a distinct lexical syntax for character literals versus string literals. Based on the syntactic choices made in other languages, single-quoted text ('x') seems likely to be the best option here. We need a

good first issue Design idea
axic
axic commented Jun 28, 2022

Whiskers' regex looks for <..> as opposed to tokenizing the input, so it is not able to detect truncated/mistyped input.

For example it can't detect that <!b is not terminated in<?b> X <!b Y </b>.

With some heuristics it could be improved: match for <?, <! and </ and only allow identifiers which are terminated with >, otherwise it is invalid.

_Originally posted by @axic in h

ponyc
ergl
ergl commented Aug 5, 2022

The example below prints "Hello, world" when using printf, and " Hello, world" (note the extra leading space) when using @pony_os_std_print (which is what StdStream.print is using).

Note that @pony_os_std_print will put as many leading spaces as \0 are present in the original string.

use @printf[I32](fmt: Pointer[U8] tag, ...)
use @pony_os_stdout[Pointer[U8]]()
use @pony
help wanted bug good first issue discuss during sync

Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!

  • Updated Aug 10, 2022
  • Red
madskjeldgaard
madskjeldgaard commented Apr 6, 2022

Motivation

The Git class currently doesn't support submodules which prevents for example using submodules in Quark repos.

Description of Proposed Feature

Add a submodule method to Git and add submodule recursion to the Quark install step, eg adding the --recurse-submodules git flag to the clone command. This will download an

enhancement good first issue quarks
lucasavila00
lucasavila00 commented Aug 8, 2022
import gleam/javascript/promise

pub type Task(a) =
  fn() -> promise.Promise(a)

pub fn main() {
  1
}

compiles to this

import * as promise from "../../gleam_javascript/dist/gleam/javascript/promise.d.ts";

export type Task = () => promise.Promise$<RC>;

export function main(): number;

where RC does not exist.

bug help wanted good first issue area:codegen

Improve this page

Add a description, image, and links to the programming-language topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the programming-language topic, visit your repo's landing page and select "manage topics."

Learn more