HNHacker News
TopNewBestAskShowJobs

yassim

49 karma · joined April 8, 2011

submissionscomments
yassim··on Carbon footprint of homegrown food five times greater than conventional
If I was being paranoid, Id say this is ground softening/ giving cover for, the councils to sell off allotment land, to make up for shortfalls in their budgets.

Allotments are chunks of land set aside for housholds to grow their own fruit and veg. Its generally an older gen (plus some younger woke) that use them, so nobody who the telegraph readers will care about. The councils have had a very hard time of it from the party in power due to many factors, and some are on the verge of bankruptcy. [1]

So being able to sell land that is genrally in walking distance to other residental zones to devlopers would be a welcome shot of cash. With the thin justification of "Its better for the enviroment" to keep most the would be defenders busy arguing if it is, or isnt, untill the deals are done, and they are lost.

It almost funny when the UK also has a general, saying that "Britain must train citizen army" [2], and allotments were promoted so the UK could feed itself when being blockaded. [3]

[1] https://www.theguardian.com/society/2023/dec/06/english-town... [2] https://www.bbc.co.uk/news/uk-68086188 [3] https://www.telegraph.co.uk/news/earth/environment/9996180/H...

yassim··on The case for memory-mapped GPU assets
Thanks for the example code.
yassim··on SpaceX announces a mission to land on Mars by 2018
Thats also a Douglas Adams quote from HHGTTG.
yassim··on Games with creative copy protection (2013)
Spyro: Year of the Dragon also tried the game glitch copy protection route. http://www.gamasutra.com/view/feature/131439/keeping_the_pir...
yassim··on Small Memory Software: Patterns for systems with limited memory
I find C++ encourages more pointer use by default, which implies all things are in memory at all the time. C on the other hand has this less implicitly, so things such as handles, deferred messages vs straight method call, have less of a.. friction?

Now you can wrap them up in C++, but then making such things hidden I think defeats some of their usage.

A managed runtime should be handle this better, but I don't know of any Java or .NET runtime that is optimised for a small memory foot print, perhaps paging from a larger virtual space[1]. I'd be interested to hear of any really.

[1] I do know there have been versions of Smalltalk that did basically this, but nothing recently that I've heard of.

yassim··on Joint Allocations in C++
Hi, Another Game dev here. Firstly, neat article, thanks for writing it.

I'm curious as to the problem you're exploring/solving here?

"Concatenated struct's in single chunk" is a neat trick. The use case seems a bit broken[1], but I'm assuming that it's from the original video, and your c++-ifying it? Or at least trying to find a nicer way to write this style of code?

If you'r going this route, I'd be tempted not to use pointers at all, and just use offsets and accessors.[2]

  * Lack of pointers means you can load in 1 read. (endian needs to be watched, and assumes you can get the entire size elsewhere)
  * You can also shuffle it around in memory should you be doing something fancy. (defragging heaps might be useful if doing a sandbox)
  * Better encapsulation? maybe..
But the basic point I'd like to make is, there is no nice way to write this type of code, because c and c++ gives us no nice[3] way of expressing it.

[1] Verts and Indices are generally uploaded to a GPU then discarded, but this has the counts, which is needed CPU side for draw calls, in the same chunk so would need to be copied before freeing.

[2]

  struct Mesh 
  {
  	int32_t num_indices, 
  		num_verts;

  	// inline to this struct.. 
  	// assumes Vector3 is aligned 4 bytes.
  	// and that Mesh has been alloced to same alignment.
  	//
  	// Vector3 positions[num_verts];
  	// int32_t indices[num_indices];
  	// Vector2 uvs[num_verts];
  
	inline const Vector3* PositionsBegin() const { return reinterpret_cast<const Vector3*>(this + 1); }
  	inline const Vector3* PositionsEnd() const { return PositionsBegin() + num_verts; }
  	inline const int32_t* IndicesBegin() const { return reinterpret_cast<const int32_t*>(PositionsEnd()); }
  	inline const int32_t* IndicesEnd() const { return IndicesBegin() + num_indices; }
  	// etc
  };
[3] Maintainable, fast at runtime, low mental friction to people other than the author, etc
yassim··on Hoverboard? Still in the Future
Some interesting rewards in the Kickstarter. https://www.kickstarter.com/projects/142464853/hendo-hoverbo...

I do like the White box idea. I wonder though at the price where they start and if thats going to eat the profit generated. (I don't know, they could be very cheap to produce at scale.)

yassim··on Frequency
Thank you for the link. I wonder if Tinker Tots is now having a surge of traffic.
yassim··on Compilers in OpenBSD
Forgive my ignorance, but what does 'LTS' stand for?
yassim··on Go 1.1 performance improvements
Wonderful links. Thankyou.
yassim··on IBM's Watson Memorized 'Urban Dictionary,' Then His Overlords Had to Delete It
What was the query? I'd really like to know if it used bullshit correctly?

Sure could/should/must not be used to advertise the tech, but If I had a pocket watson, I'd have no problems with it calling it like it parses it.

yassim··on Compiiler Design
Thankyou.
yassim··on Flame is Lame
I'm curious.

>9. Latest research proves that Flame is indeed linked to Stuxnet....

Whats the chance that this "Resource 207" is some 3rd party module that more than 1 developer had access to? I concede that placing the same resource in the same resource location in 2 different unrelated applications is a bit of a long shot, but I dont see it as a smoking gun either.

yassim··on ‘Bird Man’ Hoaxster Comes Clean on Dutch Television
I did really want it to be real, but I now wondering how long till it is. There were enough very clue-y people say "yeah, the physics might actually work". I'm sure it has inspired a lot of people, who will probably now work even harder if they know they can be the first for real.
yassim··on Game Theory Explained: Why The Joker and Not Batman is Our Savior
There is also the possibility of a Joker pushing somebody (possibly multiple to be sure) else onto the grenade, thus saving their life and causing destruction. Which has 2 possible out comes in itself:

1) Joker pushed another Joker or Cooperator. Which might be uncomfortable for a time, but would pass.

2) Joker pushed a Defectors, in which case some Defectors would want some form justice.

I have no numbers to prove this, just my feeling for the archetypes.

yassim··on Our 3d printer is better than yours
There is plenty of fiction thats explored some side of the idea. Neal stephenson "the diamond age" is probably a good example.

To my mind though, this is only 1/2 of the problem. most fiction has focused on nano fabs + nano dissemblers. perfect recycling + perfect fabrication.

yassim··on VoiceBunny: Fast and professional voiceovers (with an API).
Okay, I'm loving the idea. I can see this being great for indi stuff. Probably less hassle than hiring VO talent and a studio.
yassim··on 14 years ago: the day Teller gave me the secret to my career in magic.
"A change in perspective is worth 80 IQ points." (Alan Kay and others)

Basicly I think its because they have different points of view on problems we can find similarities in.

yassim··on Game Developer Gives 7-Year-Old Best Birthday Present Ever
Thanks. I'm surprised that actually worked here since proxy information is also semi locked down. I shall have to remember this trick in future.
yassim··on Game Developer Gives 7-Year-Old Best Birthday Present Ever
Thanks. Work fine without logging in.
yassim··on Game Developer Gives 7-Year-Old Best Birthday Present Ever
Thankyou. I cant read the article from work as we block anything with the word games in the meta tags. But your post gave me most of the gist as well as making me smile with what you are doing. My hats off to you.
yassim··on Megaupload Takedown Questioned By Users, Lawyers
Did theirs? Can real numbers be shown of the money that was generated by piracy with this service vs money that was not?

My guess is from this point we will never know the real unbiased numbers, not matter who wins.

Edit: to clarify tone.

yassim··on Does Online Piracy Hurt The Economy? A Look At The Numbers
By percentage, no the fans that wait in line for a week is not huge. but the free advertising that the news gives them with the"wow look at the weirdos" spots I'm sure adds some weight to the number.
yassim··on Google's Anti-SOPA & PIPA Page
Thanks for that. At the moment I can't see it in AU. I still get the monkey king.
yassim··on Why is C faster than Java: git vs JGit
I would also expect them to know how it works _all_ the way down through the OS, which can also have an impact on performance. IE, they know how the supporting systems operate thus can make further assumptions/optimisations.
yassim··on Quotes from the NATO Software Engineering Conference in 1968
Any links you can share please? I love coming up with new ideas, only to find out that it has all been done well before my time.
yassim··on IOS App Store Submission Checklist - anything else to add?
Thanks for this. Double thanks for the fact I can subscribe to that page via RSS (the links at the bottom of the page).
yassim··on Apple's Supply Chain Secret
Seems to me to be an extension of the 'People who are really serious about software should make their own hardware.'.

Say 'People who are really serious about making and selling a product should make their own production, supply and store chains' or 'People who are serious about their product should take ownership of all stages of that product.'

yassim··on LtU on Dart
Dart (from what I've heard) is actually a form smalltalk. strongtalk[1] is also an optional typed system.

[1] : http://www.strongtalk.org/