forum.nim-lang.org Open in urlscan Pro
2606:4700:3034::ac43:84f2  Public Scan

URL: https://forum.nim-lang.org/t/8852
Submission: On January 18 via api from US — Scanned from DE

Form analysis 3 forms found in the DOM

<form id="login-form">
  <div class="form-group "><label class="form-label" for="username">Username</label><input class="form-input" type="text" name="username" placeholder=""></div>
  <div class="form-group "><label class="form-label" for="password">Password</label><input class="form-input" type="password" name="password" placeholder=""></div>
</form>

<form id="resetpassword-form">
  <div class="form-group "><label class="form-label" for="email">Enter your email or username and we will send you a password reset email.</label><input class="form-input" type="text" name="email" placeholder="Username or email"></div>
  <div id="recaptcha">
    <div class="g-recaptcha" data-sitekey="6LdQ3CAUAAAAAAFrUtYLZWqaSdGzVzL6lJNTYZre">
      <div style="width: 304px; height: 78px;">
        <div><iframe title="reCAPTCHA"
            src="https://www.google.com/recaptcha/api2/anchor?ar=1&amp;k=6LdQ3CAUAAAAAAFrUtYLZWqaSdGzVzL6lJNTYZre&amp;co=aHR0cHM6Ly9mb3J1bS5uaW0tbGFuZy5vcmc6NDQz&amp;hl=de&amp;v=u35fw2Dx4G0WsO6SztVYg4cV&amp;size=normal&amp;cb=2v7kcz9x7snj"
            width="304" height="78" role="presentation" name="a-drmr5psuvx87" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe>
        </div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response"
          style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
      </div>
    </div>
    <script src="https://www.google.com/recaptcha/api.js"></script>
  </div>
</form>

<form id="signup-form">
  <div class="form-group "><label class="form-label" for="email">Email</label><input class="form-input" type="email" name="email" placeholder=""></div>
  <div class="form-group "><label class="form-label" for="username">Username</label><input class="form-input" type="text" name="username" placeholder=""></div>
  <div class="form-group "><label class="form-label" for="password">Password</label><input class="form-input" type="password" name="password" placeholder=""></div>
  <div id="recaptcha">
    <div class="g-recaptcha" data-sitekey="6LdQ3CAUAAAAAAFrUtYLZWqaSdGzVzL6lJNTYZre">
      <div style="width: 304px; height: 78px;">
        <div><iframe title="reCAPTCHA"
            src="https://www.google.com/recaptcha/api2/anchor?ar=1&amp;k=6LdQ3CAUAAAAAAFrUtYLZWqaSdGzVzL6lJNTYZre&amp;co=aHR0cHM6Ly9mb3J1bS5uaW0tbGFuZy5vcmc6NDQz&amp;hl=de&amp;v=u35fw2Dx4G0WsO6SztVYg4cV&amp;size=normal&amp;cb=rzgxbznoioab"
            width="304" height="78" role="presentation" name="a-8cwb858qadfx" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe>
        </div><textarea id="g-recaptcha-response-1" name="g-recaptcha-response" class="g-recaptcha-response"
          style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
      </div><iframe style="display: none;"></iframe>
    </div>
    <script src="https://www.google.com/recaptcha/api.js"></script>
  </div>
</form>

Text Content

Sign up Log in
Log in
Username
Password
Reset your password
Log inCreate account
Reset your password
Enter your email or username and we will send you a password reset email.

Reset password
Create a new account
Email
Username
Password

Create accountLog in

By registering, you agree to the content license.

NimForum 2.2.0 - Fixes a big CVE!


Announcements
dom96
Jan 2022

give a man a feature and he'll take months to deploy it, show a man a CVE and
he'll fix it and deploy everything ASAP

A new deployment of the forum has been due for a while now, some wonderful bug
fixes and new features were introduced, but what really pushed things was a
brand new exploit that @nnsee has found. So NimForum 2.2.0 not only brings
stickied threads, but also many important fixes to Nim's RST parser, fixing both
potentially malicious links and the ability to include local files of the server
the forum is running on(!)

If you're running your own instance of the NimForum or are using Nim's rst
parser to render user-provided text then you will need to upgrade ASAP.
Hopefully my patch for the RST parser will be merged into devel soon. If anyone
needs the patch faster feel free to ask.

For a full list of changes check out:
https://github.com/nim-lang/nimforum/compare/v2.1.0...v2.2.0.

In addition, this release has been compiled with the latest and greatest Nim
compiler and related libraries (for example HttpBeast 0.4.0). As usual, please
keep an eye out for any weirdness and report it on the NimForum's issue tracker.

26

moigagoo
Jan 2022
Seems like this update broke Telegram integration somehow :-) The forum updater
stopped updating after this post.
1

Araq
Jan 2022
I resize the text field. I switch tabs. The text field is small again. This is
mildly annoying and it wasn't fixed. Any chance we could fix that?
5

cblake
1
Jan 2022
The random "logging people out" bug is also pretty annoying. { I get some
session timeout (EDIT: may be needed), but it's clearly not scheduled as
sometimes it takes many days and others only many seconds... ;-) I know it's not
just me since @mratsim mentioned it a very long time ago..so, at least 3, me +
him + who he mentioned it to. }
5

dom96
@Araq
Jan 2022
Pretty sure that's a Karax bug, fix welcome :)
2

Clonk
Jan 2022
Genuine question : why not switch for a superior solution like discourse who not
only has less bugs but more functionality (like the ability to research old
post) ?
2

dom96
@spip
Jan 2022
Did it work before I deployed the new version? Did something change to break old
iPad's?
1

dom96
@Clonk
1
Jan 2022
> why not switch for a superior solution like discourse who not only has less
bugs but more functionality (like the ability to research old post) ?
 * You can search this forum using the search bar at the top-right, or using
   Google (or another search engine).
   
 * The forum is a great showcase of what Nim can do and allows us to dogfood
   which makes Nim better for everyone.
   
 * This forum is actually older than Discourse. Maintaining a Discourse instance
   is probably more painful than the effort it takes to run this forum (does
   Discourse even support Nim syntax highlighting?).
   
 * We also have a subreddit, Quora spaces and Stack Overflow for questions.
   Whether they or Discourse are superior is subjective and you can freely
   choose to use those spaces for your discussion/questions.
   

3

Clonk
1
Jan 2022

> You can search this forum using the search bar at the top-right, or using
> Google (or another search engine).

The relevance of the result shown for any query is vastly superior on discourse
than on Nim forum. I can't even have access to more than my latest 10 thread /
comments on my profile. When I create a thread on discourse, it automatically
link related questions. Comparing the two is just arguing in bad faith.

> The forum is a great showcase of what Nim can do and allows us to dogfood
> which makes Nim better for everyone.

But it isn't a great showcase. It's very basic and lacks useful functionalities
of most other platform. Choosing something just because "you made it ourselves"
has never been a good argument.

> This forum is actually older than Discourse.

I find very ironic that you're arguing that to keep using a worse technical
solution because it's older. "We've always done it this way" says the guy who
wants to promote an new language...

> Maintaining a Discourse instance is probably more painful than the effort it
> takes to run this forum

Why would not reinventing the wheel yourself actually be more work ?

> (does Discourse even support Nim syntax highlighting?).

It's based on highlight.js who has a Nim module :

https://github.com/discourse/discourse/blob/904275a8f1a41ed356380e11ed1c28b8ad312030/vendor/assets/javascripts/highlightjs/languages/nim.min.js

> We also have a subreddit, Quora spaces and Stack Overflow for questions.
> Whether they or Discourse are superior is subjective and you can freely choose
> to use those spaces for your discussion/question.

That's a what-aboutism if I ever saw one. None of the community you cited are
advertised on the main website and none of them have intervention from the core
team.

Also, unless your main goal is to actively trying to split the community into
multiple platform, multiplying the way to interact with the community is a
really bad idea. So there needs to be one recommended solution.

If you don't have the time or ressources to dedicate to a proper discussion
platform, that is absolutely fine. It isn't the point of Nim anyway.

But refusing to use an objectively better solution because you're too
emotionnally invested in some code you wrote 14 years ago who may have been
relevant then is just stubbornness.

7

Load more posts (15)
SolitudeSF
Jan 2022

> Wow. I think turning to these kinds of ad hominem attacks really does your
> arguments a disservice. What a way to derail a nice discussion about the
> merits of NimForum vs. Discourse, like really, there is no need for this. If
> you have a problem with me then a better way to discuss it is in a DM. Let's
> have some semblance of professionalism here.

classic move.

4

j-james
Feb 2022
Well, hooray for redeployment-requiring CVEs, as I can finally join the forum.
;-)
2

jdf
Feb 2022
There seems to be quite a lot of Couldn't render historic post (e.g.). Would it
be possible to display these as (suitably escaped) plain text?
1

dom96
@jdf
Feb 2022
We can probably render these as raw rst, I implemented this quickly as the new
rst parser was failing to render a particular quirk of how some people write
their posts. But it's easily fixable by the mods by just editing the post, so
feel free to report these if you see them.


carterza
Feb 2022

> Pretty sure that's a Karax bug, fix welcome :)

Also, classic.

1

SolitudeSF
Feb 2022
why cant we delete our messages still?
1

jyapayne
Feb 2022

I would like to add my thoughts about my experience in contributing to the
forum.

Overall, I really liked adding features and would have liked to add much more,
including much of the basic functionality that is missing mentioned in this
thread. However, the review process was very very slow and painful (due to
limited reviewers and time that @dom96 has, which is not his fault). It was even
slower to get the changes deployed and I had to ask many times. This could be
fixed with some sort of automation around deployment, but again, dom is the only
one who knows how to deploy and his time is limited.

We can always say "PRs welcome" but they don't feel welcome when there is so
much friction. Again, no fault of anyone's, just lack of resources.

I was tempted many times to write a new forum because of this, but it would
never be used and is generally the wrong approach.

5

PMunch
Feb 2022

> why cant we delete our messages still?

This should've been fixed by https://github.com/nim-lang/nimforum/pull/240, but
I'm not sure if it's deployed yet.

And the forum is obviously not perfect, and as @jyapayne pointed out the review
and deploy processes could certainly be improved. But the fact of the matter
remains that the Nim forum is still one of the biggest showcases of Nim as a web
language (for better or worse). So if we as a community decides that it is too
hard to maintain our own forum it won't exactly look great for people
considering to use Nim on the web. All the criticisms against the forums aren't
really criticism against using Nim as a language, so the point about it being a
good showcase that it is possible to write stuff like this in Nim still stands.
That being said it would of course be great if more people wanted to volunteer
their time and efforts into improving it. After all it's an open source project
and while it's easy to sit around and complain about lacking features at the end
of the day someone has to spend their time implementing it. And why not make
that someone yourself?

So please, critique the forums, but let's create feature requests and PRs in the
repository instead of snide remarks on the internet. I would imagine that if the
forum got more developer attention it would be more pressing to create a proper
deployment and review pipeline. The more developers familiar with the code-base
also means more people actually capable of reviewing it. All in all it's quite
impressive that the forum works as well as it does with as little dev-time as it
receives.

5
6 months later
nya
@dom96
Aug 2022

I read many topics and often meet render error instead of first post (not
always, sometimes it happens with single posts). Can you fix it?

JSON request reply doesn't contains source rst post for read it as workaround
(maybe there are other requests exists like edit, I don't look forum source
code. but post history freely present).

Proof:
https://www.google.com/search?q=Couldn%27t+render+historic+post+site%3Anim-lang.org


5 months since last reply
Reply



Delete

Are you sure you want to delete this user account?

DeleteCancel