News for hackers. Stuff that matters.

vbit

Re:If-statements in Smalltalk (2008) on Tuesday March 14, 2017 @06:09PM (#13871938)
I'm no expert (not even close), but I believe they'd have to run Pharo itself, yes. So you could redistribute the Pharo runtime along with your app code (similar to, say, Python).

You may be able to build web applications too (http://seaside.st/).

Re:If-statements in Smalltalk (2008) on Tuesday March 14, 2017 @02:49AM (#13865557)
This applies to loops as well. Numbers are objects that accept the `timesRepeat:` message:

    10 timesRepeat: [ n := n*2 ].
Not only that, you can send messages to blocks, to implement loops.

    [ n < 10 ] whileTrue: [ n := n + 1 ]
Re:If-statements in Smalltalk (2008) on Tuesday March 14, 2017 @02:41AM (#13865538)
Anyone interested in playing around with Smalltalk can use https://pharo.org - I recently tried it and was pretty amazed with the quality of documentation available. It is quite a different experience working in an interactive live environment.
Re:Problems with Android Studio on Thursday February 23, 2017 @05:01PM (#13718228)
There's also Kivy (http://kivy.org). Not with a sizeable sponsor like React or Xamarin, but it's Python :D
Re:Dafny – A programming language with a program verifier on Thursday January 19, 2017 @07:44PM (#13440847)
Would be nice to have a screenshot without the red squiggly underlines.
Re:Vue.js 2.1 Released on Wednesday November 23, 2016 @01:57PM (#13024854)
I have some projects in Mithril - is it worth it port to Vue?
Re:Stealth Cell Tower Disguised as Printer on Tuesday November 01, 2016 @02:20PM (#12848716)
> SMSs written to appear they are from someone that knows the recipient

I don't think this means they are sent from numbers known to the recipient. Only that the content is written such that it appears to be from someone who knows the recipient.

I don't know if actual spoofing is possible.

Re:How to make e-mail encrypted for everyone on Friday October 28, 2016 @05:49PM (#12821050)
> When you send an e-mail today it’s sent in plaintext. This means that when you connect to your local coffee shop’s WiFi they can intercept all e-mail that is sent through their router. This is probably not the relationship you have with your barista…

Um, how many users use native clients on unencrypted ports as opposed to https based web-clients or TLS?

Re:Why we chose Vue.js on Friday October 21, 2016 @01:19PM (#12762431)
Could you please elaborate more on mithril vs. vue? Was it ease-of-use, performance or something else that pulled you over?
Re:FreeBSD 11.0 Now Available on Monday October 10, 2016 @03:09PM (#12679128)
Often gets lost in the release notes - deploying on Google cloud is super easy:

    % gcloud compute instances create INSTANCE --image freebsd-11-0-release-p1-amd64 --image-project=freebsd-org-cloud-dev
    % gcloud compute ssh INSTANCE
Re:Textures.js – SVG patterns for Data Visualization on Wednesday August 31, 2016 @06:01PM (#12401817)
If you're familiar with Python, try the Jupyter notebook (jupyter.org) - very useful for quick visualizations while also allowing you to quickly transform the data when necessary. The big advantage is your interactive 'repl' session is persisted as well as editable so you can resume anytime.

You can use any one of a number of visualization libraries such as matplotlib, bokeh, and more. Here's a quick start for an idea of the code needed: http://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blo...

Re:Python Lists vs. Tuples on Friday August 19, 2016 @08:08PM (#12324372)
The article mentions this.

Also you can write this as `grid[1, 1] = True`

Re:LLVM Programmer’s Manual on Friday July 22, 2016 @01:14PM (#12144952)
Do LLVM have any support for coroutines?

If I wanted to implement a language with Lua-style coroutines, could I target LLVM?

Re:Native encryption added to ZFS on Linux on Wednesday July 20, 2016 @03:32PM (#12131793)
With this you can encrypt one dataset and leave another unencrypted, on the same block device, paying the cost only or the encrypted one.
Re:Kivy: Develop multi-touch enabled Python apps on Wednesday July 20, 2016 @03:31AM (#12127405)
Oh absolutely, I think Kivy is fantastic and the best option for UI in Python currently. I just wish the community was bigger.
Re:Kivy: Develop multi-touch enabled Python apps on Wednesday July 20, 2016 @03:06AM (#12127337)
Kivy seems well designed and easy to use - not just for multi-touch but general cross platform UI apps, and phone apps.

My only concern is that the community seems small and the site a little dated?

Re:HyperTerm – JS/HTML/CSS Terminal on Friday July 15, 2016 @04:33PM (#12103645)
Heh yes.

There was also a mozilla XUL based terminal many years ago - can't remember the name though.

Re:Consciousness: The Mind Messing with the Mind on Wednesday July 06, 2016 @01:03PM (#12044410)
The argument that we are machines made of meat and so machines made of any other substance may be conscious too is a remarkably weak one to me (a lay person, not a consciousness or AI researcher).

Isn't any arbitrary region in space a machine? Because it has physical inputs, physical outputs can some kind of physical computation within? An elevator is a machine but so is the building with many elevators. A city with many buildings, cars, people etc. (all the physical space and things in it withing the bounds of the city) is another machine. Is a city conscious? Clearly it is more complex than an individual brain?

From a slightly different angle - why does my consciousness stop at the limits of my body while the physical chain of reactions extends smoothly well beyond it, and infinitely into the universe?

Do you know if there are any updated benchmark results since the quoted ones are a bit outdated now.
Re:Ask HN: Where is the next Shenzhen? on Friday July 01, 2016 @01:08PM (#12017874)
> That will be tough since India is missing some absolutely fundamental pre-requisites to the kind of growth China has had.

Interested to hear what you think these are?

Re:Komodo X released – new version of Komodo IDE on Wednesday May 18, 2016 @01:59AM (#11720061)
There is also the reduced feature free version called Komodo Edit: http://komodoide.com/komodo-edit/
Re:HARC on Wednesday May 11, 2016 @06:49PM (#11680007)
Very exciting! How can I join? :D

Older »