Better HN
topnewbestaskshowjobs
Log inSign up

a-nikolaev

781 karma · joined Jun 20, 2012 (14y ago) · 328 submissions

https://github.com/a-nikolaev
Submissions

comment 1y ago · link · parent

It can answer: "I'm a language model and don't have the capacity to help with that" if the question is not detailed enough. But supplied with more context, it can be very helpful.

comment 2y ago · link · parent

I'm using gnuplot for plotting too (the actual gnuplot application not a library that uses gnuplot as its backend).

And I usually keep computation and plotting separate. Computation produces data files, and a gnuplot script generates plots. This separation of computation and plotting allows updating charts later if needed, collected data can be reused in other plots, and additional data analysis can be performed and charts can be augmented.

So I personally don't see many advantages from integrating chart generation into computational pipeline itself (except for computation monitoring or maybe when user response is needed to direct computation). Because of that, libraries that encourage charts generation from a computed array instead of dumping that data into persisted files feels like an anti-pattern to me.

comment 2y ago · link · parent

This is like an artificially created mass extinction event (e.g. https://en.wikipedia.org/wiki/Extinction_event ). Without it the ecosystem could maintain itself for very long time changing slowly and gradually. An extincting event wipes out most of the existing organisms, creating open niches to be populated with something new and maybe weird-looking.

comment 2y ago · link · parent

jq feels like a much more robust tool than yq. I understand that the task of processing YAML is much harder than JSON, but:

- yq changed its syntax between version 3 and 4 to be more like jq (but not quite the same for some reason)

- yq has no if-then-else https://github.com/mikefarah/yq/issues/95 which is a poor design (or omission) in my opinion

So yq works when you need to process YAML, it can even handle comments quite well. Buy for pure JSON processing jq is a better tool.

comment 3y ago · link · parent

A collection (e.g. an array or a hash map) that stores things. Maybe more than one collection like that, different for each type of entity: monsters, items, etc. (Separate code paths to handle these different types of things.)

Keeping indexes/keys for references, and loops over these collections can do a lot without any upfront complexity of an entity system.

comment 4y ago · link · parent

I think, Wiki fundraising message should be more informational, not an emotional cry for help and money. I myself don't want to be manipulated, give me the numbers and what you want to do with my money.

comment 4y ago · link · parent

I think, Wikimedia's fundraising message should include the amount of money they have, the expenses they expect for the coming years (with a basic breakdown of how it is going to be spent), as well as a link to a detailed report of how much money they got and how they were spent for the previous years. Basically be transparent, b/c someone might want to spend their money on a different web project they like.

comment 4y ago · link · parent

Just to add to this, I wrote additional lecture notes for the class on OCaml I taught, which was largely based on this book.

http://a-nikolaev.github.io/fp/ - if anyone is interested in more learning resources.

comment 4y ago · link · parent

No parentheses can be nice for cleaner pattern matching, e.g. something like this:

  match a, b with
  | 1, 2 -> x
  | _ -> y

comment 4y ago · link · parent

pretty much

comment 4y ago · link · parent

Yeah. Maybe enclosing a particular type of hole could give more points or something like that. Also, one could put wooden pegs with numbers or other tokens in the holes to specify points that can be gained, or those tokens that can be collected. Such modifications can make the game more replayable. (One could also use this game as a sort of fortune-telling device, since solving a game requires randomization, and a player may end up in one or the other configuration at the end of the game.)

comment 4y ago · link · parent

https://en.wikipedia.org/wiki/Icosian_game

comment 5y ago · link · parent

Dreaming is fine, but Musk has a track record of not delivering on his over-optimistic promises. And a dream is not enough to overpower gravity and the laws of thermodynamics. There are very hard physical limits on how efficient a rocket can be, even in the most optimistic scenarios.

comment 5y ago · link · parent

Here's a video that's making a basically the same argument (although with a more sarcastic tone) that electric batteries don't have a sufficiently high energy density to power an economically competitive plane https://www.youtube.com/watch?v=dMmaG_3NnGs

comment 5y ago · link · parent

Python is a kind of a new Fortran for this generation of scientists. (And Python makes things even easier, ofc, compared to Fortran.)

comment 5y ago · link · parent

As a person who lived in that dorm at the time, I don't think that the photo evidence is dangerous or incriminating for the author now. Maybe it could be ..somewhat.. incriminating at the time to share some of these details, but the existence of the network infrastructure was never a secret to the administration.

Let me try to explain, the network was quite organic for that place and time, I guess: The dorms administration really had no idea what internet is, and while the network wasn't officially sanctioned, it wasn't (very) actively prohibited either. It wasn't regulated, and obviously was a nuisance for the people managing the dorms. But at the same time I don't remember anyone being punished for maintaining it. It existed in a gray area so to speak: The network provided a utility to the students, but the school did not want to be responsible for it and also did not provide any alternatives. So the school administration turned a blind eye to the network for the most part, I think, until it was finally officially legalized.

Btw, I found a link to the dorms forum ("forum.local"): https://forumlocal.ru/ubbthreads.php it still exists, and its topics are going back to the times described in the article. Some old moderators are also still there (!).

comment 5y ago · link · parent

A pedantic comment. I think it should be saying "5000 GitHub stars" instead of "5000 Git stars". Similarly, "GitHub Link" instead of "Git Link". Git ≠ GitHub.

comment 5y ago · link · parent

Okay, yeah, I agree that the more important part in procedural generation is to be able to produce a large population of interesting artifacts. The means to get there can involve more or less randomness (it can be a small seed input, a set of parameters, or a random sequence of numbers).

Even something like Mandelbrot or Julia sets (or similar fractals) are fully deterministic algorithms, but the choice of the position and scale (quite a small initial input) is sufficient to generate a large variety of interesting results => procedural generation.

The procedure must be making some kind of sequence of choices that leads to a set of diverging final outcomes. The choices can be prescribed by some kind of input value, or determined by a PRNG of the generation procedure itself (also actually a deterministic sequence).

However, not everything made by a computed program should be called "procedurally generated". Word docs are not a result of procedural generation. Arithmetic operators and sorting algorithms are not procedural generation techniques by themselves (although they can be used in procedural generation as building blocks).

comment 5y ago · link · parent

Demos are fine without randomness, but what we see here is an algorithm or a numerical method to make a mesh.

comment 5y ago · link · parent

Very nice visuals, but "procedural generation" does not seem to be the right term for this code. Maybe it should be called an "algorithmic technique" instead, or something like that?

Procedural generation normally is a randomized process that does not try to get an optimal solution. Instead, it typically aims to be a generator for a large diverse population of "interesting" outcomes, where "interesting" is often a subjective metric, but does not really have to be.

comment 5y ago · link · parent

> “The ban has drawn the tea industry into complete disarray… If we go completely organic, we will lose 50 per cent of the crop, (but) we are not going to get 50 per cent higher prices,” he reportedly said.

To break even, you need to double prices (i.e. 100% higher), not 50% higher. Very strange expert.

comment 5y ago · link · parent

Emojis are normally used inlined in text. So, I think, they should demo theirs the same size as they would be when inlined in text. Otherwise hard to tell tell the emoji quality. I'm also a bit concerned with the thick black outlines, they may look not as good at the small scale (may look too noisy or may overpower small color details).

comment 5y ago · link · parent

Probably b/c Python abuses the same keywords way too much. (But that shouldn't be such a surprise already to oppose this particular case.)

24.

A programming game Dwarven Outpost(github.com ↗)

2 points · by a-nikolaev · 5y ago · discuss

comment 5y ago · link · parent

It's easier to gain reputation if you are fine with cutting corners here and there, or even make up things as long as no one can see that. And once you are at Harvard (or Duke for that matter), most people wouldn't even question your credibility.

EDIT: And to the point of not being able to fake that data well. Yeah, again, if we are in the business of getting credit points quickly, faking the data quickly makes sense too. No one would take a close look, right?

comment 5y ago · link · parent

Star Citizen becomes http://progressquest.com/ 2.0 ?

comment 5y ago · link · parent

Does Stable support polymorphic functions? What kinds of data abstractions are possible? (I.e. something like records / structs / classes / Lua-like tables?)

comment 5y ago · link · parent

The described way of increasing maximum velocity does not look realistic, it is not based in any kind of physics or bio-mechanics.

So, is it a suggestion to implement a broken game mechanic.. so that experienced players can transfer their skill to other FPS games? Nice..

comment 5y ago · link · parent

My guess us that for the Russian citizens, Putin wants to show that: 1) Lukashenko is the good guy fighting terrorists, 2) EU politicians have mistreated Belavia Belarusian airlines, so Russia had to step in and defend their allies, 3) generally trying to show that he is more powerful than EU politicians.

In terms of actual long-term goals, I think, he aims to replace Lukashenko with a new pro-Russia president, so he tries to keep Lukashenko happy in the process (also making him more dependent on Russia internationally), and proving that the two countries are still best allies...

12345
11