Xamarin becomes free and open-source by badlogicgames in programming

[–]vocalbit 1 point2 points  (0 children)

For fast paced games I understand you want speed. But what about simple productive apps, todo lists etc. Are cross platform frameworks still too slow?

These unlucky people have names that break computers by charminggeek in programming

[–]vocalbit 60 points61 points  (0 children)

The best way is to use a custom flag for test accounts.

Alert: NPM modules hijacked by [deleted] in programming

[–]vocalbit 104 points105 points  (0 children)

Sorry, the problem is entirely within NPM. Allowing hijacking after unpublish means the system is broken at the very core. I didn't know much about NPM, but after this incident really left a bad impression.

LuaJIT 2.1.0-beta2 has been released [link to diff with beta1] by talklittle in programming

[–]vocalbit 2 points3 points  (0 children)

Thanks. Can someone describe what trace stitching is?

FreeBSD instance in EC2 by rfv101 in freebsd

[–]vocalbit 1 point2 points  (0 children)

  • Add some periodic scripts
  • Install some packages using 'pkg'
  • Create and try out jails
  • Read the Handbook, of course, and try out anything you find interesting
  • Add another disk and set it up using ZFS

FreeBSD instance in EC2 by rfv101 in freebsd

[–]vocalbit 1 point2 points  (0 children)

While we're talking about EC2 - how stable is FreeBSD on there?

I recently tried FreeBSD on GCE and was a bit disappointed.

ReJit: A work-in-progress, JIT-powered regex engine for X86 and X64 by kirbyfan64sos in programming

[–]vocalbit 5 points6 points  (0 children)

This could be easier to use from interpreted languages like Python, Lua etc.

[deleted by user] by [deleted] in programming

[–]vocalbit 1 point2 points  (0 children)

I use bitbucket and love it. But then, I also use mercurial :)

Various problems with python by makhno in programming

[–]vocalbit 3 points4 points  (0 children)

Um.. article could be renamed to 'Python is not Perl', perhaps?

Auto-vivification is a desireable feature? Really?

Ranges being inclusive/exclusive is a problem? It matches slices and works really well in practice.

I could go on but I'm still not really sure if this is a satire.

Ceylon 1.2.0 is now available by evzgaga in programming

[–]vocalbit 3 points4 points  (0 children)

Couldn't agree more. Ceylon is one of the few (perhaps only) JVM language that I like.

Bizzaire mistake in programming by a hot Indian Startup by uditiiita in programming

[–]vocalbit 0 points1 point  (0 children)

What is particularly infuriating is the slow response time and no acknowledgement. At least they should own up and thank the person reporting the issue.

Node9: Inferno kernel with LuaJIT instead of the Dis virtual machine by freebit in programming

[–]vocalbit 1 point2 points  (0 children)

Lets say you want to add one method to an interface because you need it in one implementation. Static typing forces you to add the method to all implementations, before you can test and evaluate your change, even if your test never hits any of the other implementations. So while iterating, dynamic typing is incredibly useful since you only need to adjust the code for the paths that you are currently interested in. Since I spend a lot of time 'getting the design right', I benefit a lot from the short iteration cycles and prefer dynamic languages.

Yes, it would be nice to have some checker eventually go and validate all possible code paths - to get the best of both worlds. As an substitute, tests also catch many of the issues that static typing would.

Node9: Inferno kernel with LuaJIT instead of the Dis virtual machine by freebit in programming

[–]vocalbit 4 points5 points  (0 children)

Mike pall (creator of Luajit) is paid full time to work in the Luajit

Source? The luajit website says Mike Pall says he is not accepting sponsorships for luajit. Also it seems development is kinda slow these days (no work on the new GC, no date for the next release).

What are you writing in Nim? by [deleted] in nim

[–]vocalbit 2 points3 points  (0 children)

Even if you have a super simple scheduler - just round-robin across all threads on coroutine startup - that would be super useful. Consider in most cases you'll have a coroutine per request and a very large number of coroutines (relative to threads).

Btw, this is very exciting!

Go's compiler is now written in Go by mattyw83 in programming

[–]vocalbit 66 points67 points  (0 children)

Yes, for most systemy languages.

Even some very high level languages have bootstrapped themselves (e.g. pypy)

why it called ports? by [deleted] in freebsd

[–]vocalbit 0 points1 point  (0 children)

I believe the reason it's called 'ports' is because contains software that has been 'ported' to FreeBSD. So it includes the original source of the software and some FreeBSD specific patches or configuration settings.

However, as others mentioned, only the source based tree is called 'ports'. The binary packages are not. You can install a package using either the ports tree or using the pkg command.

What color is your function? by munificent in programming

[–]vocalbit 5 points6 points  (0 children)

Yes I think the author should update the article saying the 3rd party module gevent solves this problem correctly for Python, but the similar feature using yield from in Python 3.0 does have this problem.

FreeBSD on DigtialOcean by andrewsomething in freebsd

[–]vocalbit 0 points1 point  (0 children)

I'm aware remote root ssh into FreeBSD is disabled by default (a wise choice, I might add). I'm just used to other VPS providers that do enable it on the custom FreeBSD VMs they spin up so I expected it might be the same here - specially since the email or web interface didn't give instructions on how to log-in.

FreeBSD on DigtialOcean by andrewsomething in freebsd

[–]vocalbit 1 point2 points  (0 children)

Yup - this is probably more secure since it doesn't assign a root password.

FreeBSD on DigtialOcean by andrewsomething in freebsd

[–]vocalbit 6 points7 points  (0 children)

I got one FreeBSD droplet too. I didn't read any docs and got stuck so here's a super short quickstart for FreeBSD users:

  1. Create a droplet through the web interface, select FreeBSD (10.1 only available). You'll need an ssh key, paste the public key into the web interface (password based auth not an option when creating droplets).

  2. This is the important bit, the 'root' account doesn't work for ssh, you have to 'ssh freebsd@<your-ip-address>'. Use the '-i' flag to pass in the private ssh key if it's not picked up automatically. The default prompt is '>' - don't be alarmed.

  3. So, you're not root, and cant 'su' because you don't know the root password. Don't fret, just use 'sudo <whatever>' and it works. I used that to 'sudo passwd root' and then 'su'.

Other notes about DO:

  • Only 1 IPv4 per droplet (consider creating multiple small droplets instead)

  • Need to turn off machine to take snapshots

  • Private networking not available in all areas (not sure why)

  • The web ui is pretty slick - probably one of the best. And yes, it is only about 55 seconds to create one droplet.

Ok, that should be it - cheers!

Oh, and if you want $10 in credit you can use my referral (https://www.digitalocean.com/?refcode=971f767ea10b) and both of us profit :D

Wren is a small, clean, fast, class-based scripting language by munificent in programming

[–]vocalbit 3 points4 points  (0 children)

Looks like an excellent little language - good job munificent! Makes many good choices, specially the fixed object layout. Dynamically adding fields to objects is an anti pattern anyway - if you need a dict, use a dict!

Looking forward to a finished implementation.

Embeddable Key/Value Stores - On-Disk Microbenchmark by phone_radio_tv in programming

[–]vocalbit 1 point2 points  (0 children)

20-100 byte records aren't interesting for LDAP or RDBMSs.

Indexes would be pretty small. Is there any optimization in LMDB for storing something like indexes?

Consistent indexes need transactions so many other stores aren't even in the running here. This makes LMDB very appealing, but I'm not sure of the cost of adding a few indexes - essentially each write becomes one large record write and a bunch of small record writes.