Whiley

Comments Off on Whiley

Whiley is a programming language designed for formal verification, and it emphasizes specifying what programs should do (as opposed to how they should be done). Below is an example of a simple program that prints “Hello World!” in Whiley. Note that Like many functional or strongly-typed languages, outputting text directly isn’t as straightforward as in some imperative languages.

function main() -> void:
    io.print("Hello World!")

To run this code:

  1. Make sure you have the Whiley compiler installed on your machine.
  2. Save the code into a file with a .wy extension, for example, hello_world.wy.
  3. Run the program using the Whiley interpreter or compiler by executing the command:
    whiley hello_world.wy

The function main() serves as an entry point to your program, similar to how main() functions in languages like C and Java. In this example, io.print is used for outputting text to the console. Whiley does not include native input/output libraries as part of its core functionality; instead, it uses external packages or relies on external tooling for such tasks.

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns Whiley programming language, beautiful background, magnificent scenery, Andy Warhol style, HD, sharp focus, stunningly beautiful, hyper-detailed, Op Art, optical illusion, abstract, geometric pattern, impression of movement, Op Art

Negative prompt
verybadimagenegative, bad_prompt_version2-neg, easynegative, FastNegativeV2, ugly, deformed, noisy, blurry, low contrast, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: phi4

Image model: DynaVisionXL