Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Facebook Introduces Hack: Statically Typed PHP

alokmenghrajani Re:Nope (230 comments)

We knew about the tradeoff between backwards compatibility vs adoption since day 1. The end result is not as bad as you make it sound: Each file in your codebase can be in one of many modes: php code, hack will ignore it Requires you to write your code in a subset we consider sane. You can start writing type annotations and they will be checked when present. Requires you to annotate your function parameters, return types & class properties. There are a few other modes, like decl, which lets the type checker "import" types.

about 4 months ago
top

Facebook Introduces Hack: Statically Typed PHP

alokmenghrajani Re:English? (230 comments)

Hack is more than turning PHP into Java or C. Java's type system is way different than C's (there are no objects in C). Hack's is different than Java's because it uses a type inference system. It also type checks incrementally, which allows the quick edit/save/reload cycles web developers are used to.

about 4 months ago
top

FAT12 filesystem driver in js

alokmenghrajani Re:Javascript... (2 comments)

This kind of project can lead to better coding projects for students/learning purpose, since you can focus on algorithms, not run into buffer overflows and can easily visualize things. E.g., in js (and most dynamic languages), you can easily json dump your data structures when debugging.

about a year and a half ago
top

Javascript Game of Tron In 226 Bytes

alokmenghrajani Re:Even Shorter (115 comments)

your are right, thanks! I'll update the code & give you credits.

i meant to write you are right. Thanks!

more than 2 years ago
top

Javascript Game of Tron In 226 Bytes

alokmenghrajani Re:Same thing in x86 asm (115 comments)

Are you referring to hugi (http://www.hugi.scene.org/compo/compoold.htm) ? I believe the x86 size optimization people were doing in the 80s and 90s required a different mindset. You needed to really understand the OS environment & memory layout (e.g. putting DOS in graphics mode using a single byte). When optimizing javascript you focus on the javascript language (e.g. what happens when you do things like undefined xor 1). But overall you can't really compare assembly to javascript. Some things in javascript (e.g. regexp) are almost free, while defining a function requires you to write "function(){}" when it's only 2 instructions in assembly.

more than 2 years ago
top

Javascript Game of Tron In 226 Bytes

alokmenghrajani Re:Even Shorter (115 comments)

your are right, thanks! I'll update the code & give you credits.

more than 2 years ago

Submissions

top

Ask Slashdot: what are some technologies which have gone extinct

alokmenghrajani alokmenghrajani writes  |  about a year ago

alokmenghrajani (2602135) writes "I'm trying to list various technologies which have gone extinct over the years (think Microsoft's Clippy, Swatch's .beat time, abusing imagemaps in web design, etc.). What do you think were the most interesting technologies which didn't survive the test of time?"

Journals

alokmenghrajani has no journal entries.

Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...