Guess the programming language
-
@dkf Spoiler time
-
@anonymous234 #5 = HQ9+
-
Did everyone forget about
-
Another slightly tricker one of things you might have seen in the wild if you were
unlucky enough:#1.
/ start slaves {value"\\q ",.z.x[1]," -p ",string x}each p:(value"\\p")+1+til"I"$.z.x 0; / unix (comment out for windows) \sleep 1 / connect to slaves h:neg hopen each p;h@\:".z.pc:{exit 0}";h!:() / fields queries. assign query to least busy slave .z.ps:{$[(w:neg .z.w)in key h;[h[w;0]x;h[w]:1_h w]; /response [h[a?:min a:count each h],:w;a("{(neg .z.w)@[value;x;`error]}";x)]]} /request
#2.
import Html exposing (..) import Html.App as App import Html.Attributes exposing (..) import Html.Events exposing (..) -- ... snip ... -- UPDATE type Msg = MorePlease | FetchSucceed String | FetchFail Http.Error update : Msg -> Model -> (Model, Cmd Msg) update msg model = case msg of MorePlease -> (model, getRandomGif model.topic) FetchSucceed newUrl -> (Model model.topic newUrl, Cmd.none) FetchFail _ -> (model, Cmd.none) -- VIEW view : Model -> Html Msg view model = div [] [ h2 [] [text model.topic] , button [ onClick MorePlease ] [ text "More Please!" ] , br [] [] , img [src model.gifUrl] [] ]
#3.
type CompletelyDisjointed = { foo: number, bar?: never } | { foo?: never, bar: string }; function myFunction(x: CompletelyDisjointed): string | number { if (typeof x.bar === 'string') { return x.bar; } else { return x.foo; } }
#4.
http(:/("what.eldrich.evil.is.this") >:+ { (headers, req) => headers("content-type").filter { _.contains("text/html") }.headOption.map { _ => req </> { nodes => (nodes \\ "h1").text } }.getOrElse { req >> { _ => "unknown content type" } } })
Answers
- Q - it's an APL-like ... 'nuough said.
- Elm - looks like Haskell, but only compiles to JavaScript
- TypeScript 2.0
- Scala (the symbol soup is from the Dispatch Classic library, but now you know why Scala has the reputation it has)
-
@dkf said in Guess the programming language:
If I'd been running the questionnaire,
I would have put all the possible answers under all the questions, to weed out guessing-by-elimination to some degree.
-
@svieira I'm not 100% sure (hell, not even half-sure!), but #2 looks like Haskell and #3 looks like Scala.
-
@anonymous234 #6: Just because you ran
cat /initrd.img
does not mean it's a valid program.
-
@masonwheeler No. We're the only one that uses this language, because this company invented it 30 years ago.
-
@anonymous234 said in Guess the programming language:
HQ9+
That could be HQ9+, HQ9++, or HQ9+-
Output is:
Hello world HQ9+ [insert 99 bottles of beer song lyrics]
At the end of the program execution, the accumulator would be incremented by 1, but there's no way to access that value.
-
@Gąska It's Haskell inspired, but Haskell's
type
keyword defines type synonyms, not concrete data types. Also, the Haskell "is a" symbol is::
, not:
. Also, it appears to have ViewPatterns on by default.I think it might be Idris or Frege or Curry or something. (Haskell was definitely a good guess, though)
-
@masonwheeler
Because it hides in the corner and covers its eyes any time you look at it?
-
-
-
@ben_lubar said in Guess the programming language:
That could be HQ9+, HQ9++, or HQ9+-
It could also be brainfuck, whitespace, etc. :P
-
@cvi said in Guess the programming language:
@PleegWat said in Guess the programming language:
current-decade hipster and esoteric languages
On the other hand, the avid WTDWTF reader will have been exposed to most of this menagerie of languages. Go from ben_lubar, ruby from our favourite forum software,
brainfuckJS from the current one, and Visual Basic from the original one.Was community server written in VB.NET? KILL IT WITH FIRE!!!
-
-
@dkf said in Guess the programming language:
No sir, I don't like it
Pffft. You're not even a real horse.
-
Guess this language:
io_needed start_of_module example_mod start_of_routine start io_write_to_console_the_string "Hello," sp "World!" end_of_routine start end_of_module example_mod thank_you_and_goodbye
-
@Bort KILLPEnDANTS WITHEXTRANEOUSwhitespace?