XS is a Perl foreign function interface through which a program can call a C or C++ subroutine. XS or xsub is an abbreviation of "eXtendable Subroutine"...
6 KB (657 words) - 08:01, 28 September 2023
television series XS: The Opera Opus (1984-6) no wave opera XS (Perl), an interface through which computer programs written in Perl can call C language...
1 KB (183 words) - 05:55, 4 March 2024
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms...
98 KB (9,625 words) - 16:25, 8 November 2024
Perl environment; however, certain modules (XS modules) require a working C compiler and development environment to install successfully. Most Perl distributions...
3 KB (342 words) - 05:54, 13 May 2024
vectorization of simple C snippets and interfaces them with the Perl host language via Perl's XS compiler. Some modules are written in Fortran, with a C/PP...
8 KB (971 words) - 07:45, 3 December 2023
Enumerated type (section Perl)
<xs:element name="cardsuit"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Clubs"/> <xs:enumeration value="Diamonds"/> <xs:enumeration...
34 KB (4,434 words) - 15:35, 28 September 2024
Append (category Articles with example Perl code)
:: [a] -> [a] -> [a] append xs ys = foldr (:) ys xs This is essentially a reimplementation of Haskell's ++ operator. In Perl, the push function is equivalent...
6 KB (717 words) - 01:54, 27 June 2024
tool for the XS programmer". "B::C - Perl compiler's C backend". "Acme::Perl::VM - A Perl5 Virtual Machine in Pure Perl (APVM)". The Perl internals: running...
7 KB (930 words) - 09:32, 17 February 2024
(x:xs) = quickSort [a | a <- xs, a < x] -- Sort the left part of the list ++ [x] ++ -- Insert pivot between two sorted parts quickSort [a | a <- xs, a...
50 KB (4,569 words) - 04:06, 11 October 2024
merge_sort(xs) = merge(merge_sort(left), merge_sort(right)) where (left, right) = split(xs, length(xs) / 2) merge :: ([a], [a]) -> [a] merge([], xs) = xs merge(xs...
49 KB (6,727 words) - 03:39, 13 November 2024
Data Structures: longest common substring Perl/XS implementation of the dynamic programming algorithm Perl/XS implementation of the suffix tree algorithm...
8 KB (1,063 words) - 02:46, 14 August 2024
Serialization (section Perl)
configured by a flag. Several Perl modules available from CPAN provide serialization mechanisms, including Storable , JSON::XS and FreezeThaw. Storable includes...
42 KB (4,961 words) - 19:03, 10 November 2024
The example below shows the definition of a variable xs being a file list with three elements. let xs : [File] = ['a.txt', 'b.txt', 'c.txt' : File]; Lists...
19 KB (1,834 words) - 13:30, 20 November 2023
where n = |xs| + |ys|. *) fun merge cmp (xs, []) = xs | merge cmp (xs, y :: ys) = let fun loop (a, acc) (xs, []) = List.revAppend (a :: acc, xs) | loop (a...
32 KB (3,714 words) - 02:01, 13 June 2024
(x:y:xs) = foldl1 f (f x y : xs) foldr1 f [x] = x foldr1 f (x:xs) = f x (foldr1 f xs) foldt1 f [x] = x foldt1 f (x:y:xs) = foldt1 f (f x y : pairs f xs) foldi1...
39 KB (2,779 words) - 11:02, 30 September 2024
Kotlin. "Lua 5.3 Reference Manual". www.lua.org. "goto - perldoc.perl.org". perldoc.perl.org. "baruchel/tco". GitHub. 29 March 2022. Rossum, Guido Van (22...
40 KB (4,175 words) - 17:42, 14 October 2024
Generator (computer programming) (category Articles with example Perl code)
standard adaptor function, takeWhile p [] = [] takeWhile p (x:xs) | p x = x : takeWhile p xs | otherwise = [] which walks down the list and stops on the...
26 KB (3,106 words) - 12:17, 30 September 2024
two variants, Nil for an empty list and Cons x xs for the combination of a new element x with a list xs to create a new list. Here is an example of how...
17 KB (2,095 words) - 21:20, 9 November 2024
order compared to the given list. fun reverse [] = [] | reverse (x :: xs) = (reverse xs) @ [x] This implementation of reverse, while correct and clear, is...
13 KB (1,461 words) - 10:36, 14 May 2024
implemented as: map :: (a -> b) -> [a] -> [b] map _ [] = [] map f (x : xs) = f x : map f xs In Haskell, the polymorphic function map :: (a -> b) -> [a] -> [b]...
23 KB (1,572 words) - 07:51, 22 October 2024
Objective-C OAPromise OCaml Lazy Perl Future Perl Promises Perl Reflex Perl Promise::ES6 "Promise::XS – Fast promises in Perl – metacpan.org". metacpan.org...
44 KB (4,639 words) - 22:36, 9 July 2024
them. xs:schema element that defines a schema: <?xml version="1.0" encoding="UTF-8" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"></xs:schema>...
57 KB (7,069 words) - 16:41, 2 November 2024
language Haskell: map :: (a -> b) -> [a] -> [b] map f [] = [] map f (x:xs) = f x : map f xs Languages where functions are not first-class often still allow one...
27 KB (2,522 words) - 02:43, 7 September 2024
existing list. In Haskell syntax: [] -- an empty list x:xs -- an element x constructed on a list xs The structure for a list with some elements is thus element:list...
22 KB (2,564 words) - 14:11, 12 November 2024
programming languages are JavaServer Pages (JSP), Active Server Pages (ASP), Perl, PHP, Python, Ruby, ColdFusion, and others. CommonJS § Implementations ArangoDB...
9 KB (111 words) - 20:00, 26 July 2024
partition([X|Xs], Pivot, Smalls, Bigs) :- ( X @< Pivot -> Smalls = [X|Rest], partition(Xs, Pivot, Rest, Bigs) ; Bigs = [X|Rest], partition(Xs, Pivot, Smalls...
71 KB (8,077 words) - 04:49, 11 November 2024
-> Vect m a -> Vect (n + m) a append Nil ys = ys append (x :: xs) ys = x :: append xs ys The function append appends a vector of m elements of type a...
10 KB (899 words) - 15:58, 6 November 2024
the line immediately following an XS record does not begin with ^ or X, that is considered a continuation of the XS record. All the fields in detail items...
20 KB (1,712 words) - 20:46, 21 August 2024
of a set of numbers subsets [] = [[]] subsets (x:xs) = [[x] ++ y | y <- ys] ++ ys where ys = subsets xs and this is a literate script for a function primes...
15 KB (1,733 words) - 06:28, 28 May 2024
filter :: (a -> Bool) -> [a] -> [a] filter _ [] = [] filter p (x:xs) = [x | p x] ++ filter p xs Here, [] denotes the empty list, ++ the list concatenation operation...
12 KB (600 words) - 00:49, 14 November 2024