Actually executing Hack code doesn't necessarily typecheck everything. You need to actually run a separate tool to enforce the type system, as described in the docs article linked here. When you do that, you'll get an error that looks something like this, depending on the exact version of HHVM you have:

File "shapes.php", line 10, characters 19-23:
Invalid argument (Typing[4110])
File "shapes.php", line 3, characters 41-43:
This is an int
File "shapes.php", line 10, characters 42-76:
It is incompatible with a string

Modern versions of HHVM will also yell at you if you aren't running the typechecker; I suspect you're running an older version, before we realized this was a point of confusion -- sorry!

What actually happens when you run type-incorrect code is undefined behavior. The answer by Ed Cottrell is correct for the current version of HHVM -- we do the same thing PHP does to coerce types -- but keep in mind it's undefined behavior and may change in future versions without notice.

Answer from Josh Watzman on Stack Overflow
🌐
Medium
medium.com › @mikeabelar › web-development-with-hhvm-and-hack-10-shapes-d8a56b067c2b
Web Development With HHVM and Hack 10: Shapes | by Mike Abelar | Medium
April 3, 2020 - Then, create a file to explore shapes: shapes.hack . Inside the file, paste the following contents: <<__EntryPoint>> function main(): noreturn { $user_one = shape('name' => "Joe", 'age' => 25); print("name: " . $user_one['name'] . "\n"); print("age " . $user_one['age'] .
Discussions

How to print this shape?
Any friends with a Cricket? This is simple. More on reddit.com
🌐 r/Printing
7
2
April 18, 2023
'Hack' or library or tool that lets you create shapes that you can copy on the rM2
This is what I use - a batch script for drawj2d.Once you get it set up, drag & drop your image onto the script file & it will automatically upload to your rM2. https://www.reddit.com/r/RemarkableTablet/comments/15trvjp/adding_png_to_a_pdf/ More on reddit.com
🌐 r/RemarkableTablet
8
6
February 5, 2024
How to print a shape in Python? - Stack Overflow
I'm trying to make a shape with Python using the console output. My code for printing shape with no spaces is as tri=int(input("enter size : ")) Which results in the output enter size : 6 ... More on stackoverflow.com
🌐 stackoverflow.com
Printing Unique Shapes
Probably better looking at something like sticker mule More on reddit.com
🌐 r/Printing
4
1
June 8, 2024
🌐
Hhvm
docs.hhvm.com › hack › reference › class › HH.Shapes
HH\Shapes - HHVM and Hack Documentation
::idx(shape(...) $shape, arraykey $index, mixed $default = NULL) Use Shapes::idx to retrieve a field value in a shape, when the key may or may not exist
🌐
Shinyprints
shinyprints.com › custom_sizes_shapes.php
Custom Shapes and Sizes - Shiny Prints
Using our CNC machine, we are able to cut our metal into any shape you can dream up. We work directly with artists for their custom shape projects so make sure you contact us so we can explain the process and what we need from you to get your custom die cut prints in the works for production.
🌐
Reddit
reddit.com › r/printing › how to print this shape?
r/Printing on Reddit: How to print this shape?
April 18, 2023 -

Hello, I need to print this specific shape on a piece of paper to put on a restaurant beeper. How can I print this shape without having to inaccurately cut it out a piece of paper with a pair of scissors? Can I do it on my own or are there any kind of places that do this? Thanks

🌐
Learn X in Y Minutes
learnxinyminutes.com › docs › hack
Learn Hack in Y Minutes
*/ /* ========================... float $hello_world = "Hello World!"; // string $null_string = null; // null // Create a `shape` with the shape keyword, with a series of field names and values....
🌐
PrintPal
printpal.io › home › resources › tips & tricks › viral 3d printing hacks tested: what actually works
printpal - Viral 3D Printing Hacks Tested: What Actually Works — PrintPal Resources | printpal.io
The heat mold trick: Printing a heat-resistant base in PETG or ABS, then pressing a heated PLA part onto it, lets you shape custom forms cleanly.
Published   2 weeks ago
Views   153
Find elsewhere
🌐
Reddit
reddit.com › r/remarkabletablet › 'hack' or library or tool that lets you create shapes that you can copy on the rm2
r/RemarkableTablet on Reddit: 'Hack' or library or tool that lets you create shapes that you can copy on the rM2
February 5, 2024 -

I distinctly recall seeing something like that but couldn't find it again when I searched: I want to make things like check boxes, check marks and other little symbols that I can copy and paste in my documents. If you manually make a PNG or PDF, those things are not copyable, but there was a tool that would let you make documents with shapes that you could copy, just as if you'd written/drawn them yourself. Anyone got a name or link for me ?

🌐
Hack Club
workshops.hackclub.com › drawing_shapes
Drawing Shapes with Turtle – Hack Club
Next, let's add a function for drawing shapes. At the bottom of the file, add: def drawItem(x, y): global itemNum if (itemNum == 0): circle(x, y) elif (itemNum == 1): square(x, y) elif (itemNum == 2): triangle(x, y) else: print(itemNum)
🌐
Big Acrylic
bigacrylic.com › home › custom shape prints
Custom Shape Printing | Personalized Wall Art Solutions
April 29, 2026 - To create a custom shaped print, we crop and cut your image into the exact shape of your choosing.
🌐
Print Safari
printsafari.com › home › special shapes
Special Shape Custom Printing | Printsafari.com
Special shaped custom prints with your design at printsafari.com ✓ Unique die-cuts ✓ Intricate shapes & much more ► Order now
🌐
Cards & Pockets
cardsandpockets.com › printing › custom-printed-laser-cut-shapes › choose-from-our-shapes › simple-shape-card-printing-arches-waves-or-circles
Simple Shape Card Printing - Arches, Waves, or Circles - Cards & Pockets
May 6, 2024 - Choose from six pre-designed shapes and we will print your design and laser cut it to shape. Available shapes include Arch, Circle, Double Arch, Half Arch, Long Arch, and Wave. Choose from over 170 paper colors in both cover weight cardstock ...
🌐
Printed
printed.com › shapes
Die Cutting & Custom Shape Print | Printed.com
Transform your ideas into reality with die cut print. From die cut Business Cards to Packaging, we can create custom shapes tailored to you.
🌐
Pinterest
pinterest.com › janhodgman › shapes-for-printing
81 SHAPES FOR PRINTING ideas
Art Print: Amethyst Moonlight by Jocelyn Benford : 12x9in · Art Exhibition Posters · Exhibition Poster · Art Exhibition · Art · MOBAK · Red Abstract Art · Abstract Art Diy · Soyut Sanat Tabloları · Sculture Artistiche · Abstract Art Inspiration · Abstract Expressionism Art · Southwest Art · Contemporary Abstract Art · Abstract Art Landscape · "Organic Shapes III" - Justus Fine Art Gallery ·
🌐
Pinterest
pinterest.com › explore › education › printable shapes
Printable Shapes
Discover Pinterest’s best ideas and inspiration for Printable shapes.
🌐
Psi
sbn.psi.edu › pds › support › tool-help › how-to-print-shape-models.html
How To Print A 3D Shape Model | PDS SBN Asteroid/Dust Subnode
PDS SBN archives lots of shape models, and we provide OBJ versions for many of them. ... NASA also makes available its own repository of 3D models, including spacecraft, solar system bodies, and digital terrain models. ... Now that you have a digital model, you need to create a G-code file that can tell a 3D printer how to print it.