Re: Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread Evgeniy Ginzburg
Forgot the JetBrains mentioned here

On Thu, Mar 21, 2019 at 4:55 PM Evgeniy Ginzburg  wrote:

> Hello Josh.
> I'll try to answer the question that you not really asked.
>
> The problem with lightweight editors (best ones are variants of Vim or
> Emacs) that making them work "good" for Java coding is a very non-trivial
> task.
> Especially if you want any debugging, code navigation and/or snippets.
> (Also if anybody can point me to a good configuration example for
> Java/Scala in Vim or Emacs I'll be eternally grateful.)
>
> C/C++ is easier in this case.
> Still, making ctags(or equivalent) and GDB to work under Vim or Emacs is
> not the 5 minutes task.
> And one will need to integrate some kind of build system make, cmake,
> etc...
> Whoever is going to do this will need to know exactly what he wants, and
> this is not expected from the first year student.
>
> And also I assume that you'd prefer a solution that "Just works (TM)".
>
> Then your choices are limited to full-fledged IDEs, and those are not in
> any way lightweight.
> From my point of view, Netbeans is just a little bit lighter than Eclipse
> on resources, but this is just a matter of personal taste.
>
> Best regards Evgeniy.
>
> On Thu, Mar 21, 2019 at 10:53 AM Josh Roden  wrote:
>
>> Hi everyone,
>> Happy Purim!
>> We're looking for a Linux editor for first year CS students
>> that is light on resources.
>> Thanks,
>> Josh
>>
>> ___
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>
>
> --
> So long, and thanks for all the fish.
>


-- 
So long, and thanks for all the fish.
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread dannyl L
Atom

On Thu, 21 Mar 2019, 11:53 AM Josh Roden,  wrote:

> Hi everyone,
> Happy Purim!
> We're looking for a Linux editor for first year CS students
> that is light on resources.
> Thanks,
> Josh
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread Evgeniy Ginzburg
Hello Josh.
I'll try to answer the question that you not really asked.

The problem with lightweight editors (best ones are variants of Vim or
Emacs) that making them work "good" for Java coding is a very non-trivial
task.
Especially if you want any debugging, code navigation and/or snippets.
(Also if anybody can point me to a good configuration example for
Java/Scala in Vim or Emacs I'll be eternally grateful.)

C/C++ is easier in this case.
Still, making ctags(or equivalent) and GDB to work under Vim or Emacs is
not the 5 minutes task.
And one will need to integrate some kind of build system make, cmake, etc...
Whoever is going to do this will need to know exactly what he wants, and
this is not expected from the first year student.

And also I assume that you'd prefer a solution that "Just works (TM)".

Then your choices are limited to full-fledged IDEs, and those are not in
any way lightweight.
>From my point of view, Netbeans is just a little bit lighter than Eclipse
on resources, but this is just a matter of personal taste.

Best regards Evgeniy.

On Thu, Mar 21, 2019 at 10:53 AM Josh Roden  wrote:

> Hi everyone,
> Happy Purim!
> We're looking for a Linux editor for first year CS students
> that is light on resources.
> Thanks,
> Josh
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>


-- 
So long, and thanks for all the fish.
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread Ely Levy
We give jetbrains to our first year students. We used to let then use emacs
but I think jetbrains was more comfortable for them.

Ely

On Thu, Mar 21, 2019, 12:41 Shay Gover  wrote:

> As far as I know only eclipse support both.
>
> On Thu, Mar 21, 2019 at 12:26 PM Shlomi Fish  wrote:
>
>> Hi Josh!
>>
>> On Thu, Mar 21, 2019 at 11:53 AM Josh Roden  wrote:
>>
>>> Hi everyone,
>>> Happy Purim!
>>> We're looking for a Linux editor for first year CS students
>>> that is light on resources.
>>>
>>
>> How much light? People used to complain about emacs needing more than 8
>> megabytes of RAM...
>> Anyway, see
>> https://www.shlomifish.org/open-source/resources/editors-and-IDEs/ .
>>
>>
>>> Thanks,
>>> Josh
>>>
>>> ___
>>> Linux-il mailing list
>>> Linux-il@cs.huji.ac.il
>>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>>
>>
>>
>> --
>> Shlomi Fish http://www.shlomifish.org/
>>
>> Buddha has the Chuck Norris nature.
>>
>> Please reply to list if it's a mailing list post - http://shlom.in/reply
>> .
>> ___
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread Shay Gover
As far as I know only eclipse support both.

On Thu, Mar 21, 2019 at 12:26 PM Shlomi Fish  wrote:

> Hi Josh!
>
> On Thu, Mar 21, 2019 at 11:53 AM Josh Roden  wrote:
>
>> Hi everyone,
>> Happy Purim!
>> We're looking for a Linux editor for first year CS students
>> that is light on resources.
>>
>
> How much light? People used to complain about emacs needing more than 8
> megabytes of RAM...
> Anyway, see
> https://www.shlomifish.org/open-source/resources/editors-and-IDEs/ .
>
>
>> Thanks,
>> Josh
>>
>> ___
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>
>
> --
> Shlomi Fish http://www.shlomifish.org/
>
> Buddha has the Chuck Norris nature.
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply .
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread Shlomi Fish
Hi Josh!

On Thu, Mar 21, 2019 at 11:53 AM Josh Roden  wrote:

> Hi everyone,
> Happy Purim!
> We're looking for a Linux editor for first year CS students
> that is light on resources.
>

How much light? People used to complain about emacs needing more than 8
megabytes of RAM...
Anyway, see
https://www.shlomifish.org/open-source/resources/editors-and-IDEs/ .


> Thanks,
> Josh
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>


-- 
Shlomi Fish http://www.shlomifish.org/

Buddha has the Chuck Norris nature.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: What will happen if 2 processes map same physical page

2019-03-21 Thread Lev Olshvang
Hi Vaaldis,

Thanks for answer,
I still wondering whether the kernel will allow write to a read-only page of 
shared library while it has mapped to several processes? Kernel knows that 
page's reference count >1,  will it allow mmap/mprotect to change page 
protection ? Or will it allow direct right by physical address?
I suppose that CPU should raise page fault when write is made to read only 
page, 

What is the sequence  CPU raises page faul before write to page of after data 
is written
Will  CPU wait until kernel will consider what to do , whether agree and change 
PTE  "writable " bit to 1 ?
Or kernel may disagree and raise SEGFAULT?

I checked in the handle_mm_fault()  calls for arch_vma_access_permitted() which 
just returns true on most architectures which is very strange and  contradicts 
my prediction of SEFFAULT.
arch_vma_access_permitted() retutus true when is sees that access is made from 
foreign process?
https://elixir.bootlin.com/linux/latest/ident/arch_vma_access_permitted

I am totally confused.

What do you think ?

Regards,
Lev



20.03.2019, 20:08, "Valdis Klētnieks" :
> On Wed, 20 Mar 2019 16:42:39 +0300, Lev Olshvang said:
>>  The question is it ipossiblle in Linux/MMU/TLB that 2 processes map to
>>  the same physical address?
>
> Totally possible. That's how mmap shared memory works, and why shared
> libraries are possible.
>
>>  Will CPU or TLB discover that second process tries to reach occupied 
>> physical page?
>
> Well, the hardware won't discover it as a "second" process, it only knows it's
> processing *this* memory access.
>
>>  What if first process set page permission to read and second whats to write 
>> to this page ?
>
> Perfectly OK - the two processes have separate page table mappings, with
> separate permission bits. So (for example) physical page 0x17F000 is mapped to
> virtual address 0x2034D000 with read-only permission n process 1's page 
> tables,
> and to virtual address 0x98FF3000 with read-write permission in process 2's
> page tables. No problem.
>
> (And before you ask, yes it's possible for process 2 to running on one core
> doing a write to the page at the exact same time that process 1 is doing a 
> read
> on another core. Depending on the hardware cache design, this may or may not
> get process 1 updated data. This is why locking and memory barriers are
> important. See Documentation/memory-barriers.txt for more details)
>
> "And then there's the Alpha" - a processor design that got much of its speed 
> by
> being weird about this stuff. :)
>
>>  Perhaps during context switch all page access permissions of first process 
>> is
>>  flashed out from MMU ?
>
> Actually, the kernel just points the MMU at a new set of page table entries 
> and lets
> the TLB reload as needed. In particular, on most architectures, the kernel 
> tries really
> hard to ensure that all processes share at least part of their page table 
> mappings so
> the kernel is always mapped at the same place, meaning that there's a better 
> chance
> that on a syscall, the TLB already has hot entries for large parts of the 
> kernel so no
> TLB reloads are needed.

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Suggestion for java/c++ editor with compile, run and debug capabilities.

2019-03-21 Thread Josh Roden
Hi everyone,
Happy Purim!
We're looking for a Linux editor for first year CS students
that is light on resources.
Thanks,
Josh
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il